- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who -b does not return anything
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
01-06-2003 08:30 AM
01-06-2003 08:30 AM
who -b does not return anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:33 AM
01-06-2003 08:33 AM
Re: who -b does not return anything
Check the size of /usr/bin/who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:36 AM
01-06-2003 08:36 AM
Re: who -b does not return anything
Looks like reboot entry is missing from your *tmp files.
What does your last -R |grep reboot give?.
If it doesn't give anything, then it could be the reason.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:37 AM
01-06-2003 08:37 AM
Re: who -b does not return anything
check
# what who
and
# ls -l /usr/bin/who
Think you have lost your command.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:37 AM
01-06-2003 08:37 AM
Re: who -b does not return anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 08:44 AM
01-06-2003 08:44 AM
Re: who -b does not return anything
It will happen if you recycled your wtmp files and that might have missed the reboot entries. If your "last -R |grep reboot" does not give any output, that means your last reboot entry has been deleted from your wtmp. You won't see any output from who -b and who -r as both need to get the last reboot details.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 09:15 AM
01-06-2003 09:15 AM
Re: who -b does not return anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:31 PM
01-06-2003 01:31 PM
Re: who -b does not return anything
Quote
I didn't get any replies for this question but HP support gave me one
alternative. Reboot may fix the problem. Well that didn't sit real well as a
solution so I went off on my own to solve the problem. Here is a synopsis:
symptom:
The command "who -b" doesn't return the system boot time.
It should look like this
# who -b
. system boot Dec 15 08:46
#
When corrupt it looks like this
# who -b
#
To fix:
Perform as root:
1) Create the ASCII version of utmp
# /usr/sbin/acct/fwtmp < /etc/utmp > /etc/utmp.ASCII
2) Edit the ASCII version
# vi /etc/utmp.ASCII
search for the system boot line (which probably isn't there) so add it!
duplicate the run-level line for the system boot line
ie. copy
run-level 3 0 1 0063 0123 850661195 Dec 15 08:46:35 1996
to look like
system boot 0 2 0000 0000 850661195 Dec 15 08:46:35 1996
3) Convert the ASCII back to BINARY
# /usr/sbin/acct/fwtmp -ic < /etc/utmp.ASCII > /etc/utmp.BIN
4) Save the original
# cp /etc/utmp /etc/utmp.SAVE
5) Make the new file active
# cp /etc/utmp.BIN /etc/utmp
6) Verify dates and who command
# who -b
I hope this helps if anyone has this problem. I haven't tried the reboot
solution but imagine since the /etc/utmp file is recreated is probably would
work also.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 01:49 PM
01-06-2003 01:49 PM
Re: who -b does not return anything
I did the same thing whatever you specified, still it is not working. HP suggested to reboot the box :)