Operating System - HP-UX
1834149 Members
2179 Online
110064 Solutions
New Discussion

Need to find how to report server uptime to management

 
SOLVED
Go to solution
wvsa
Regular Advisor

Need to find how to report server uptime to management

Greetings all, my management would like to report to our user groups the amount of uptime for each of our servers. My question is there anyway I can create a report on our HP9000 servers which would report server uptime on a weekly or monthly basis? Thankyou in advance for your input!
5 REPLIES 5
Jeremy_7
Frequent Advisor

Re: Need to find how to report server uptime to management

setup a sendmail alias on one of your servers ore. a gateway and have add a cron entry to send a syslog message grep for last boot or reboot. If you need specific intruc. Let me know


JERM
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Need to find how to report server uptime to management

The easist method though not the most secure would simply to use ruptime. It will do exactly what you want and all the data can be gathered on 1 server. You will need to enable rwhod on each box that you wish to monitor.
Man rwhod for details on how to set it up and man ruptime for your reporting needs. Ruptime + a little perl, awk, or sed will give you the data.

Regards, Clay
If it ain't broke, I can fix that.
Jeremy_7
Frequent Advisor

Re: Need to find how to report server uptime to management

Clay is right this would be th easiest method.
Michael Tully
Honored Contributor

Re: Need to find how to report server uptime to management

Hi,

There are couple of ways to get the information. You could start with the output of the 'uptime' command output.

There is also the usage of the /etc/shutdownlog file.

From the output of these you could write a script for the presentation to management.

HTH
-Michael
Anyone for a Mutiny ?
Santosh Nair_1
Honored Contributor

Re: Need to find how to report server uptime to management

It might be a little more (okay, a lot more) than what you're asking for, but consider using BigBrother. Its a great management tool, it allows you to monitor all of your machines through a web page. It also give you information about uptime, load average, memory usage, disk usage, etc. on a 5 minute interval. If you combine this with the LARRD (Load Average Round Robin Database...a mouthful), then you can also store historical data on the above and display a graphical usage chart on the web.
This way, you just have to point management to a web site and they can see what's going on the machine, at any given point in time or even in the past.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans