<?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 Re: uptime script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345600#M191585</link>
    <description>How about:&lt;BR /&gt;&lt;BR /&gt;last |grep reboot&lt;BR /&gt;&lt;BR /&gt;What would work nicely is Big Brother:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.bb4.org/" target="_blank"&gt;http://www.bb4.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has built in availability reports that are generated in a nice web view.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Jul 2004 07:44:23 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-07-30T07:44:23Z</dc:date>
    <item>
      <title>uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345596#M191581</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I didn't find in forum exactly What i want. Can you help me out?&lt;BR /&gt;&lt;BR /&gt;I don't have any tool to calculate uptime report for server.&lt;BR /&gt;I am using HP-ux 11.00 on 9000/800/L2000-5X. We have more than 6&lt;BR /&gt;hp-ux servers.&lt;BR /&gt;&lt;BR /&gt;If anybody can give me any script or tell me how to calculate server &lt;BR /&gt;uptime then it would be better for me. Can i get six months back uptime?&lt;BR /&gt;If yes how?&lt;BR /&gt;&lt;BR /&gt;Will be Highly obliged for any suggestion and help.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
      <pubDate>Fri, 30 Jul 2004 07:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345596#M191581</guid>
      <dc:creator>Tapas Jha</dc:creator>
      <dc:date>2004-07-30T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345597#M191582</link>
      <description>Try the uptime command!  man uptime&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 30 Jul 2004 07:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345597#M191582</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-07-30T07:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345598#M191583</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use "uptime" and "ruptime" commands. Also you need to start rwhod daemon.&lt;BR /&gt;&lt;BR /&gt;See man uptime.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2004 07:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345598#M191583</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-07-30T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345599#M191584</link>
      <description>It depends on what level up uptime information you want.&lt;BR /&gt;&lt;BR /&gt;For the current value, just use the uptime command.&lt;BR /&gt;&lt;BR /&gt;Some historical data can be found in /etc/shutdownlog (but this won't tell you how long your server was down for).&lt;BR /&gt;&lt;BR /&gt;What you probably need to do is to set up a script in /sbin/init.d which will be called at startup and shutdown, which creates a log entry indicating when the server state changed (this won't capture crash information though).&lt;BR /&gt;&lt;BR /&gt;You also need to consider if you want your report to availability details of the applications on your servers (in my experience, you're more likely to see application downtime than server downtime).  In order to do this, you'd need to extract the relevant details from your application log files.</description>
      <pubDate>Fri, 30 Jul 2004 07:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345599#M191584</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-07-30T07:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345600#M191585</link>
      <description>How about:&lt;BR /&gt;&lt;BR /&gt;last |grep reboot&lt;BR /&gt;&lt;BR /&gt;What would work nicely is Big Brother:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.bb4.org/" target="_blank"&gt;http://www.bb4.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has built in availability reports that are generated in a nice web view.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2004 07:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345600#M191585</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-30T07:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345601#M191586</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Use w&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;topaz:/root # w&lt;BR /&gt;  3:11pm  up 53 days,  6:21,  11 users,  load average: 0.02, 0.03, 0.03&lt;BR /&gt;User     tty           login@  idle   JCPU   PCPU  what&lt;BR /&gt;root     console       2:10pm576:53  15:48  15:48  -sh&lt;BR /&gt;steves   pts/1        10:54am    17                -sh&lt;BR /&gt;root     pts/2         9:03am 27:21      7      7  -sh&lt;BR /&gt;root     pts/3         3:28pm 46:27      2      2  -sh&lt;BR /&gt;root     pts/4        12:19pm573:09      5      5  -sh&lt;BR /&gt;root     pts/5         3:38pm 22:25                -sh&lt;BR /&gt;root     pts/6        11:49am  3:20                -sh&lt;BR /&gt;root     pts/7         1:06pm    26                rlogin wilson&lt;BR /&gt;root     pts/10        3:11pm                      w&lt;BR /&gt;root     pts/11        2:48pm    23                telnet wilsongsp&lt;BR /&gt;root     pts/5         2:50pm 22:25                -sh&lt;BR /&gt;topaz:/root #&lt;BR /&gt;&lt;BR /&gt;Gives a useful snapshot&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    Steve Steel</description>
      <pubDate>Fri, 30 Jul 2004 08:13:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345601#M191586</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-07-30T08:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345602#M191587</link>
      <description>We can get the systems uptime using uptime command or with w ( it include uptime + currectly logged users)&lt;BR /&gt;&lt;BR /&gt;If you want to calculate server's uptime on the whole local network ruptime. But rwhod(eamon) must be running on all systems in the network&lt;BR /&gt;&lt;BR /&gt; If you want get uptime sometime back, change the time and date settings using date command and check the uptime command.&lt;BR /&gt;&lt;BR /&gt;&lt;NODE&gt; uptime&lt;BR /&gt;  2:51am  up  4:43,  3 users,  load average: 0.00, 0.00, 0.00&lt;BR /&gt;&lt;NODE&gt; date 08030151&lt;BR /&gt;date: do you really want to run time backwards?[yes/no]yes&lt;BR /&gt;unable to write utmps record to wtmps database&lt;BR /&gt;unable to write utmps record to wtmps database&lt;BR /&gt;Tue Aug  3 01:51:00 PDT 2004&lt;BR /&gt;&lt;NODE&gt; uptime&lt;BR /&gt;  1:51am  up  4:43,  3 users,  load average: 0.00, 0.00, 0.00&lt;BR /&gt;&lt;BR /&gt; It will do that.&lt;/NODE&gt;&lt;/NODE&gt;&lt;/NODE&gt;</description>
      <pubDate>Fri, 30 Jul 2004 08:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345602#M191587</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-30T08:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345603#M191588</link>
      <description>Muthukumar,&lt;BR /&gt;&lt;BR /&gt;I (and hopefully many others) would say that you should never reset the date on a server just to get the uptime reading at that time.  &lt;BR /&gt;&lt;BR /&gt;Depending on what applications you're running, you could create a serious problem for yourself with duplicate timestamps etc.</description>
      <pubDate>Fri, 30 Jul 2004 08:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345603#M191588</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-07-30T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345604#M191589</link>
      <description>hit submit too early then.&lt;BR /&gt;&lt;BR /&gt;Meant to say that in fact, changing the time won't even give you that;&lt;BR /&gt;&lt;BR /&gt;2:51am up 4:43, 3 users, load average: 0.00, 0.00, 0.00&lt;BR /&gt;&lt;NODE&gt; date 08030151&lt;BR /&gt;date: do you really want to run time backwards?[yes/no]yes&lt;BR /&gt;unable to write utmps record to wtmps database&lt;BR /&gt;unable to write utmps record to wtmps database&lt;BR /&gt;Tue Aug 3 01:51:00 PDT 2004&lt;BR /&gt;&lt;NODE&gt; uptime&lt;BR /&gt;1:51am up 4:43, 3 users, load average: 0.00, 0.00, 0.00&lt;BR /&gt;&lt;BR /&gt;As you can see, in both cases, your uptime value is 4:43&lt;/NODE&gt;&lt;/NODE&gt;</description>
      <pubDate>Fri, 30 Jul 2004 08:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345604#M191589</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-07-30T08:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345605#M191590</link>
      <description>hai Chris Wilshaw . Thanks for making me to know the problem and nice explanation.</description>
      <pubDate>Fri, 30 Jul 2004 12:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345605#M191590</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-30T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: uptime script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345606#M191591</link>
      <description>Thanx all. &lt;BR /&gt;Chris: Yes you are right. Actually i want something which will report me previous months uptime report also(i mean the duration of shutdown). &lt;BR /&gt;&lt;BR /&gt;Geoff: I have not tried bigbrother yet. Just downloaded. Don't knwo how to use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BTW, if do anyone of you have any good script which calculates uptime&lt;BR /&gt;based on server shutdowndown log and uptime then it will be great.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
      <pubDate>Mon, 02 Aug 2004 04:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uptime-script/m-p/3345606#M191591</guid>
      <dc:creator>Tapas Jha</dc:creator>
      <dc:date>2004-08-02T04:51:50Z</dc:date>
    </item>
  </channel>
</rss>

