- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Last Command - No Records for Reboot
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
05-09-2002 07:32 AM
05-09-2002 07:32 AM
Last Command - No Records for Reboot
We have a number of HP-UX V10.20 and V11.00 servers on which the 'last reboot' produces no data. This despite having done reboots on these servers lately.
However on two of out V11.00 servers it does work correctly giving the server reboot details.
Are there missing patches on the other servers or does something need to be set-up for this to work correctly ?
Thanks in advance.
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 07:36 AM
05-09-2002 07:36 AM
Re: Last Command - No Records for Reboot
There will be a file called
/etc/shutdownlog which contains entries about last reboots.
You can get the information from there too.
-Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 07:39 AM
05-09-2002 07:39 AM
Re: Last Command - No Records for Reboot
Two files to check for finding out the reboot/shutdown details:
1) /etc/shutdownlog - this will give you the time, reason and the user name
2) /etc/rc.log.old - rc script logs
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 07:44 AM
05-09-2002 07:44 AM
Re: Last Command - No Records for Reboot
Altarenatively, the file may have become corrupted:
man fwtmp
for info on fixing
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 07:45 AM
05-09-2002 07:45 AM
Re: Last Command - No Records for Reboot
# /usr/sbin/acct/fwtmp < /etc/wtmp | grep boot
do you get anything back. If not then by running ..
# last rebooot
or
# last -2 reboot
will not give you any information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 07:48 AM
05-09-2002 07:48 AM
Re: Last Command - No Records for Reboot
"last" gets its information from /var/adm/wtmp. Has that file been truncated? "who -b /var/adm/wtmp" is another way to see the reboot dates and times.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 08:00 AM
05-09-2002 08:00 AM
Re: Last Command - No Records for Reboot
Does those reboot/shutdown were invoked by SAM ? I think the reboot invoked by SAM will not be listed in the wtmp file and thereby in the last reboot command. But you can find it out from the /etc/shutdownlog file. Compare these two.
Also try this:
# last | grep reboot
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:42 PM
05-09-2002 11:42 PM
Re: Last Command - No Records for Reboot
Thanks for all your responses.
1. The wtmp file is not truncated or corrupt since records of all the other logins can be extracted. Also this is happening on 10 servers. On 2 servers it is working correctly.
It seems to be related more to the reboot pseudo-user not logging entries into wtmp at each shutdown and reboot.
I have tried all your suggestions and there are no boot records in wtmp.
2. The shutdown log does not record abnormal server shutdowns but only the reboot upon startup after such failures.
That is why the wtmp seems to be more accurate for reboot information.
Any other suggestions will be most welcome
Mano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2002 11:47 PM
05-09-2002 11:47 PM
Re: Last Command - No Records for Reboot
The /etc/shutdownlog does show entries other than for 'reboot'. Here is a sample from one of my systems.
20:22 Sat Jan 12, 2002. Reboot:
20:24 Sat Jan 19, 2002. Reboot:
20:23 Sat Jan 26, 2002. Reboot:
13:53 Thu Jan 31 2002. Reboot after panic: Data page fault
20:22 Sat Feb 2, 2002. Reboot:
20:24 Sat Feb 9, 2002. Reboot:
20:26 Sat Feb 16, 2002. Reboot:
20:23 Sat Mar 2, 2002. Reboot:
16:35 Sat Mar 9, 2002. Halt: (by jumbo!tully)
20:25 Sat Mar 16, 2002. Reboot:
20:23 Sat Mar 23, 2002. Reboot:
20:26 Sat Mar 30, 2002. Reboot:
20:24 Sat Apr 6, 2002. Reboot:
20:26 Sat Apr 13, 2002. Reboot:
19:20 Sat Apr 20, 2002. Reboot: (by jumbo!tully)
20:24 Sat Apr 20, 2002. Reboot:
20:23 Sat Apr 27, 2002. Reboot:
20:25 Sat May 4, 2002. Reboot:
Suggest you have a look at some of the patches on some of your systems. This extract was done on a HPUX 11 system with June 2001 patching.
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 12:03 AM
05-10-2002 12:03 AM
Re: Last Command - No Records for Reboot
The shutdownlog does not seem to record entries for power failures, unless as you suggested this is because of missing patches.
But the wtmp does seem to have accurate records as the 'reboot user' logoff is recorded at failures.
Manoj