<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic System uptime in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433116#M4299</link>
    <description>Firstly apologies for the brief question, secondly hello all.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Andr</description>
    <pubDate>Tue, 30 Nov 2004 10:40:11 GMT</pubDate>
    <dc:creator>André_12</dc:creator>
    <dc:date>2004-11-30T10:40:11Z</dc:date>
    <item>
      <title>System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433116#M4299</link>
      <description>Firstly apologies for the brief question, secondly hello all.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Andr</description>
      <pubDate>Tue, 30 Nov 2004 10:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433116#M4299</guid>
      <dc:creator>André_12</dc:creator>
      <dc:date>2004-11-30T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433117#M4300</link>
      <description>&lt;BR /&gt;Andre,&lt;BR /&gt;&lt;BR /&gt;$ cf = F$GETSYI("CLUSTER_FTIME")&lt;BR /&gt;gives you the time the cluster was formed in symbol cf.&lt;BR /&gt;$ ct = F$TIME()&lt;BR /&gt;gives you the current time in symbol ct.&lt;BR /&gt;$ ut = F$DELTA_TIME(cf,ct)&lt;BR /&gt;gives you the difference in symbol ut.&lt;BR /&gt;&lt;BR /&gt;Greetz,&lt;BR /&gt;&lt;BR /&gt;Kris&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2004 10:55:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433117#M4300</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2004-11-30T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433118#M4301</link>
      <description>AndrÃ©,&lt;BR /&gt;&lt;BR /&gt;From DCL you simply do the next command:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT F$GETSYI("CLUSTER_FTIME")&lt;BR /&gt;&lt;BR /&gt;Boj</description>
      <pubDate>Tue, 30 Nov 2004 10:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433118#M4301</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-30T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433119#M4302</link>
      <description>thanks for all your prompt answers. espically boj. I get a result from this command unlike the others (not sure if it's me or the system).&lt;BR /&gt;&lt;BR /&gt;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??</description>
      <pubDate>Tue, 30 Nov 2004 11:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433119#M4302</guid>
      <dc:creator>André_12</dc:creator>
      <dc:date>2004-11-30T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433120#M4303</link>
      <description>Andre,&lt;BR /&gt;&lt;BR /&gt;The SHOW SYSTEM command gives you the system uptime which can be different for each cluster node. You can add /NOPROCESS to the SHOW SYSTEM&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 30 Nov 2004 11:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433120#M4303</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-30T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433121#M4304</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;Forgot to say that at the end of Kris commands you can do:&lt;BR /&gt;$ SHOW SYMBOL ut&lt;BR /&gt;or&lt;BR /&gt;$ WRITE SYS$OUTPUT ut&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 30 Nov 2004 11:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433121#M4304</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-30T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433122#M4305</link>
      <description>Andre,&lt;BR /&gt;&lt;BR /&gt;... and just out of curiosity, what DOES your cluster uptime show?&lt;BR /&gt;&lt;BR /&gt;.. and what is the reaction of your Micro$oft minded collegeas on that?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Tue, 30 Nov 2004 13:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433122#M4305</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-11-30T13:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433123#M4306</link>
      <description>Andre,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I get a result from this command unlike the others (not sure if it's me or the system).&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Of course you get a result from Bojan's suggestion. That's because of the WRITE SYS$OUTPUT.&lt;BR /&gt;To have the results of my commands displayed, you could put them in a little command procedure like this:&lt;BR /&gt;&lt;BR /&gt;$ cf = F$GETSYI("CLUSTER_FTIME")&lt;BR /&gt;$ ct = F$TIME()&lt;BR /&gt;$ ut = F$DELTA_TIME(cf,ct)&lt;BR /&gt;$ write sys$output "My cluster has an uptime of: " + ut&lt;BR /&gt;&lt;BR /&gt;Call it e.g. UT.COM. And when you execute it (@UT), you 'll get something like:&lt;BR /&gt;&lt;BR /&gt;My cluster has an uptime of:   50 17:10:37.62&lt;BR /&gt;&lt;BR /&gt;Note: This is real data from the newest cluster I installed here on October 11, 2004.&lt;BR /&gt;&lt;BR /&gt;Greetz,&lt;BR /&gt;&lt;BR /&gt;Kris</description>
      <pubDate>Wed, 01 Dec 2004 04:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433123#M4306</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2004-12-01T04:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433124#M4307</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;another way is&lt;BR /&gt;&lt;BR /&gt;  $ SHOW CLUSTER /CONTINUOUS&lt;BR /&gt;&lt;BR /&gt;and then (typing the first character without a prompt):&lt;BR /&gt;&lt;BR /&gt;  ADD TRANSITION_TIME&lt;BR /&gt;  ADD FORMED&lt;BR /&gt;&lt;BR /&gt;The former will give you the date each member entered the cluster, the last will give you the date the cluster was formed.&lt;BR /&gt;&lt;BR /&gt;However, all of this only gives you dates, not delta times.&lt;BR /&gt;&lt;BR /&gt;You can finish the command by Ctrl-Z or EXIT.&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Wed, 01 Dec 2004 05:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433124#M4307</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-12-01T05:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433125#M4308</link>
      <description>Andre,&lt;BR /&gt;&lt;BR /&gt;First, let me correct an omission be myself &amp;amp; colleagues:&lt;BR /&gt;&lt;BR /&gt;WELCOME TO VMS!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;... and getting the uptimes of all nodes in the cluster:&lt;BR /&gt;&lt;BR /&gt;$ show system/cluster/noprocess&lt;BR /&gt;&lt;BR /&gt;...  and I sincerely hope that you already found out about the HELP command. If not, just type&lt;BR /&gt;$ HELP&lt;BR /&gt;which will give further instructions.&lt;BR /&gt; &lt;BR /&gt;It is a VERY good friend, even for those with double-digit years of experience!&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Thu, 02 Dec 2004 14:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433125#M4308</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-12-02T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433126#M4309</link>
      <description>"SHOW SYSTEM/CLUSTER/NOPROC" &lt;BR /&gt;- I had not noticed that one before - I really do learn things here every day :-)&lt;BR /&gt;&lt;BR /&gt;Note that this command shows the up time of each system in the cluster. (only 200 days for the system I looked at :-)&lt;BR /&gt;The cluster uptime can be longer and is given by the commands given in an earlier reply.</description>
      <pubDate>Fri, 03 Dec 2004 05:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433126#M4309</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-12-03T05:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433127#M4310</link>
      <description>Thanks to you you all for your responses. For all those interested "My cluster has an uptime of:  177 21:40:12.26"&lt;BR /&gt;&lt;BR /&gt;AndrÃ</description>
      <pubDate>Mon, 06 Dec 2004 05:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433127#M4310</guid>
      <dc:creator>André_12</dc:creator>
      <dc:date>2004-12-06T05:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433128#M4311</link>
      <description>Andre,&lt;BR /&gt;&lt;BR /&gt;You can get this also in any VMS language, by calling apropriate system services. There is a C example:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STARLET.H&gt;&lt;BR /&gt;#include &lt;SYIDEF.H&gt;&lt;BR /&gt;#include &lt;DESCRIP.H&gt;&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt;   __int64 ftime;&lt;BR /&gt;   __int64 now;&lt;BR /&gt;   struct&lt;BR /&gt;   {&lt;BR /&gt;     unsigned short len;&lt;BR /&gt;     unsigned short code;&lt;BR /&gt;     __int64 * buff;&lt;BR /&gt;     void * rlen;&lt;BR /&gt;     unsigned long end;&lt;BR /&gt;   } itmlst = {8,SYI$_CLUSTER_FTIME,&amp;amp;ftime,0,0};&lt;BR /&gt;   unsigned short timlen;&lt;BR /&gt;   char asctim[21];&lt;BR /&gt;   struct dsc$descriptor timbuf = {20,DSC$K_DTYPE_T,DSC$K_CLASS_S,asctim};&lt;BR /&gt;   int stat;&lt;BR /&gt;   stat = sys$getsyiw (0,0,0,&amp;amp;itmlst,0,0,0);&lt;BR /&gt;   if (!(stat &amp;amp; 1)) return stat;&lt;BR /&gt;   stat = sys$gettim (&amp;amp;now);&lt;BR /&gt;   if (!(stat &amp;amp; 1)) return stat;&lt;BR /&gt;   ftime -= now;&lt;BR /&gt;   stat = sys$asctim (&amp;amp;timlen , &amp;amp;timbuf , &amp;amp;ftime , 0);&lt;BR /&gt;   if (!(stat &amp;amp; 1)) return stat;&lt;BR /&gt;   asctim[timlen] = 0;&lt;BR /&gt;   printf ("Cluster uptime is %s\n" , asctim);&lt;BR /&gt;   return 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;(Also atached as file)&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;/STDIO.H&gt;&lt;/DESCRIP.H&gt;&lt;/SYIDEF.H&gt;&lt;/STARLET.H&gt;</description>
      <pubDate>Mon, 06 Dec 2004 11:09:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433128#M4311</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-12-06T11:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: System uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433129#M4312</link>
      <description>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.&lt;BR /&gt;&lt;BR /&gt;Now I expect examples in perl, python, and other favorite programming languages :-)&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Dec 2004 11:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-uptime/m-p/3433129#M4312</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-12-06T11:42:58Z</dc:date>
    </item>
  </channel>
</rss>

