- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: System uptime
Operating System - OpenVMS
1752795
Members
5947
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО12-02-2004 09:19 PM
тАО12-02-2004 09:19 PM
Re: System uptime
"SHOW SYSTEM/CLUSTER/NOPROC"
- 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.
- 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
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
Thanks to you you all for your responses. For all those interested "My cluster has an uptime of: 177 21:40:12.26"
Andr├Г
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
Andre,
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
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
minor point - iosb should always be included and checked in system calls when they can be. In the case of this getsyiw it probably does not matter as its just reading a system data cell but you never know.
Now I expect examples in perl, python, and other favorite programming languages :-)
Now I expect examples in perl, python, and other favorite programming languages :-)
____________________
Purely Personal Opinion
Purely Personal Opinion
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP