- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- System uptime
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 02:40 AM
тАО11-30-2004 02:40 AM
I'm relatively new to VMS platforms and have been given a little project by my seniors, of which one of the task is to show the up time of our cluster (VMS V7.3-2 ). I'm at a total loss. Does anyone have any advice. Thaks for your help.
Andr
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 02:55 AM
тАО11-30-2004 02:55 AM
Re: System uptime
Andre,
$ cf = F$GETSYI("CLUSTER_FTIME")
gives you the time the cluster was formed in symbol cf.
$ ct = F$TIME()
gives you the current time in symbol ct.
$ ut = F$DELTA_TIME(cf,ct)
gives you the difference in symbol ut.
Greetz,
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 02:56 AM
тАО11-30-2004 02:56 AM
Re: System uptime
From DCL you simply do the next command:
$ WRITE SYS$OUTPUT F$GETSYI("CLUSTER_FTIME")
Boj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 03:05 AM
тАО11-30-2004 03:05 AM
Re: System uptime
I thought i had answered my own question for a momemt by using "show system" as on the top line this displays a uptime message but on cross reference appears to be incorrect. is that the case??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 03:12 AM
тАО11-30-2004 03:12 AM
SolutionThe SHOW SYSTEM command gives you the system uptime which can be different for each cluster node. You can add /NOPROCESS to the SHOW SYSTEM
to avoid displaying all processes. The cluster_ftime gives you the cluster formation time. After that some nodes in the cluster can be rebooted but this time will remain the same since all cluster nodes are shut down.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 03:17 AM
тАО11-30-2004 03:17 AM
Re: System uptime
Forgot to say that at the end of Kris commands you can do:
$ SHOW SYMBOL ut
or
$ WRITE SYS$OUTPUT ut
to see the cluster uptime. This gives you the delta time (uptime) of the cluster. My command gives you the date and time when the first system in the cluster was booted.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 05:07 AM
тАО11-30-2004 05:07 AM
Re: System uptime
... and just out of curiosity, what DOES your cluster uptime show?
.. and what is the reaction of your Micro$oft minded collegeas on that?
Cheers.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 08:27 PM
тАО11-30-2004 08:27 PM
Re: System uptime
I get a result from this command unlike the others (not sure if it's me or the system).
Of course you get a result from Bojan's suggestion. That's because of the WRITE SYS$OUTPUT.
To have the results of my commands displayed, you could put them in a little command procedure like this:
$ cf = F$GETSYI("CLUSTER_FTIME")
$ ct = F$TIME()
$ ut = F$DELTA_TIME(cf,ct)
$ write sys$output "My cluster has an uptime of: " + ut
Call it e.g. UT.COM. And when you execute it (@UT), you 'll get something like:
My cluster has an uptime of: 50 17:10:37.62
Note: This is real data from the newest cluster I installed here on October 11, 2004.
Greetz,
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 09:16 PM
тАО11-30-2004 09:16 PM
Re: System uptime
another way is
$ SHOW CLUSTER /CONTINUOUS
and then (typing the first character without a prompt):
ADD TRANSITION_TIME
ADD FORMED
The former will give you the date each member entered the cluster, the last will give you the date the cluster was formed.
However, all of this only gives you dates, not delta times.
You can finish the command by Ctrl-Z or EXIT.
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 06:25 AM
тАО12-02-2004 06:25 AM
Re: System uptime
First, let me correct an omission be myself & colleagues:
WELCOME TO VMS!!
... and getting the uptimes of all nodes in the cluster:
$ show system/cluster/noprocess
... and I sincerely hope that you already found out about the HELP command. If not, just type
$ HELP
which will give further instructions.
It is a VERY good friend, even for those with double-digit years of experience!
hth,
Cheers.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 09:19 PM
тАО12-02-2004 09:19 PM
Re: System uptime
- I had not noticed that one before - I really do learn things here every day :-)
Note that this command shows the up time of each system in the cluster. (only 200 days for the system I looked at :-)
The cluster uptime can be longer and is given by the commands given in an earlier reply.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2004 09:19 PM
тАО12-05-2004 09:19 PM
Re: System uptime
Andr├Г
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2004 03:09 AM
тАО12-06-2004 03:09 AM
Re: System uptime
You can get this also in any VMS language, by calling apropriate system services. There is a C example:
#include
#include
#include
#include
int main ()
{
__int64 ftime;
__int64 now;
struct
{
unsigned short len;
unsigned short code;
__int64 * buff;
void * rlen;
unsigned long end;
} itmlst = {8,SYI$_CLUSTER_FTIME,&ftime,0,0};
unsigned short timlen;
char asctim[21];
struct dsc$descriptor timbuf = {20,DSC$K_DTYPE_T,DSC$K_CLASS_S,asctim};
int stat;
stat = sys$getsyiw (0,0,0,&itmlst,0,0,0);
if (!(stat & 1)) return stat;
stat = sys$gettim (&now);
if (!(stat & 1)) return stat;
ftime -= now;
stat = sys$asctim (&timlen , &timbuf , &ftime , 0);
if (!(stat & 1)) return stat;
asctim[timlen] = 0;
printf ("Cluster uptime is %s\n" , asctim);
return 1;
}
(Also atached as file)
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2004 03:42 AM
тАО12-06-2004 03:42 AM
Re: System uptime
Now I expect examples in perl, python, and other favorite programming languages :-)
Purely Personal Opinion