- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Server shutdown time in hpux 11.0, 10.20
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
Forums
Discussions
Discussions
Discussions
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
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-29-2004 02:14 AM
11-29-2004 02:14 AM
Server shutdown time in hpux 11.0, 10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:19 AM
11-29-2004 02:19 AM
Re: Server shutdown time in hpux 11.0, 10.20
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:21 AM
11-29-2004 02:21 AM
Re: Server shutdown time in hpux 11.0, 10.20
I'm not sure if you can estimate from that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:26 AM
11-29-2004 02:26 AM
Re: Server shutdown time in hpux 11.0, 10.20
[root@vpart1 /sbin/init.d]# cat /sbin/init.d/notifyme
#!/sbin/sh
#
unset UNIX95
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
NOTIFYLIST="USERNAMEGOESHERE@YOURDOMAIN.com"
case $1 in
start_msg)
echo "Send an email to notifyme that system is being broght backup"
;;
stop_msg)
echo "Send an email to notifyme that system is being shutdown"
;;
start)
echo "System (`hostname`) coming back up @ (`date`)"|mailx -s"System `hostname` booting" ${NOTIFYLIST}
;;
stop)
echo "System (`hostname`) going down @ (`date`)"|mailx -s"System `hostname` shutting down" ${NOTIFYLIST}
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
exit
-----------------------------------------------
Then make some symbolic links as shown below:
[root@vpart1 /sbin/init.d]# ls -l /sbin/rc*/* | grep notify
lrwxrwxrwx 1 root sys 21 Jun 15 09:55 /sbin/rc2.d/K090notifyme -> /sbin/init.d/notifyme
lrwxrwxrwx 1 root sys 21 Jun 15 09:55 /sbin/rc2.d/S090notifyme -> /sbin/init.d/notifyme
[root@vpart1 /sbin/init.d]#
Look at ALL of your syslog's and look to see when processes like syslogd where stopped.
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:28 AM
11-29-2004 02:28 AM
Re: Server shutdown time in hpux 11.0, 10.20
You can check the /var/adm/syslog/OLDsyslog.log files which gets created every time a rebot happens.The other place to look is shutdown.log but it will not give the duration.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:49 AM
11-29-2004 02:49 AM
Re: Server shutdown time in hpux 11.0, 10.20
mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log
to
mv /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.'date +%Y%m%d`
You could gzip it after it's created or better yet, send the syslog data to a log server.
Remember that if you use the "date" line above it'll move the syslog and add the date to the end of it. If you reboot the box more than once in 24hrs then it will get over written. If you think that may happen then add the hour and min to the "date" line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 02:49 AM
11-29-2004 02:49 AM
Re: Server shutdown time in hpux 11.0, 10.20
root@host:/>last | grep -i reboo
reboot system boot Sun Nov 28 23:59 still logged in
reboot system boot Sun Nov 21 23:59 - 23:59 (7+00:00)
reboot system boot Sun Nov 14 23:59 - 23:59 (7+00:00)
The other part is the shutdownlog already mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 03:13 AM
11-29-2004 03:13 AM
Re: Server shutdown time in hpux 11.0, 10.20
Unless you save the information by customization, all you will have is the last downtime:
tail /etc/rc.log.old
and head /etc/rc.log
e.g.
testbox:/etc tail rc.log.old
**************************************************
HP-UX run-level transition completed
Wed Nov 17 18:33:50 MET 2004
**************************************************
testbox:/etc $ head -5 rc.log
Old /etc/rc.log moved to /etc/rc.log.old
**************************************************
HP-UX Start-up in progress
Wed Nov 17 18:40:21 MET 2004
#
Difference 18:33:40 till 18:40:21 which is reboot starting
but I would consider the following time:
testbox:/etc $ tail -5 rc.log
**************************************************
HP-UX run-level transition completed
Wed Nov 17 18:42:18 MET 2004
**************************************************
So downtime between reboot is almost 10 minutes...
All the best
Victor
testbox:/etc $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 03:34 AM
11-29-2004 03:34 AM
Re: Server shutdown time in hpux 11.0, 10.20
But that tells you the reboot time - if you want uptime, you will have to approximate the time it took server to boot plus how long it was down (IE for maintenance).
If you really want to track uptime, why not install something like Big Brother (or Big Sister).
http://www.bb4.org/
http://bigsister.graeff.com/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2004 04:57 AM
11-29-2004 04:57 AM
Re: Server shutdown time in hpux 11.0, 10.20
Of course you need to check it each day to see if you went down overnight and see how long you were down.
Best regards,
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 01:47 AM
11-30-2004 01:47 AM