Operating System - HP-UX
1748175 Members
4409 Online
108758 Solutions
New Discussion юеВ

`who -b ` does not produce any information

 
Kennedy G. Doss
Regular Advisor

`who -b ` does not produce any information

Fellow SAs:

Has anybody seen this, before. Is there a patch or something which is need to fix this? I run the who -b command and it comes back to the prompt without any results. More detals pasted below:

# who -b
# uptime
12:04pm up 138 days, 19:56, 6 users, load average: 0.19, 0.18, 0.18
# uname -a
HP-UX newhostit B.11.11 U 9000/800 1611884041 unlimited-user license
# ls -lrt /etc/ut*
-rw-r--r-- 1 root root 660 Oct 3 12:05 /etc/utmp
-rw-r--r-- 1 root root 1540 Oct 3 12:05 /etc/utmpx
#

16 REPLIES 16
Tim Nelson
Honored Contributor

Re: `who -b ` does not produce any information

11.11 is getting close to desupport.

If you do not have the last ( latest ) bundle then it should be put on as it may just be the last.

Problem may just go away.

Are you at anything close to current ?
The latest is June '08.

swlist -l bundle|grep GOLDBASE



Tim Nelson
Honored Contributor

Re: `who -b ` does not produce any information

Another possibility is /etc/utmp or /var/adm/wtmp are corrupt.

Does the last command work ?
How about who -a ?

Kennedy G. Doss
Regular Advisor

Re: `who -b ` does not produce any information

who -a and who -u along with other switches for who work without an issue.

Is here a way to find out if my /etc/utmp and /var/adm/wtmp are corrupt?
Tim Nelson
Honored Contributor

Re: `who -b ` does not produce any information

I would have expected the other who commands to barf..as well as login messages complaining it cannot make an entry.

Where are you at with a patch bundle rev ?

or better yet.

# what /usr/bin/who
/usr/bin/who:
$Revision: B.11.11_LR
Fri Oct 27 00:32:29 PDT 2000 $

Looks like the who command has not changed in quite awhile. So probably not a patch issue.



Pete Randall
Outstanding Contributor

Re: `who -b ` does not produce any information

Tim,

A minor point but I would tend to disagree with your characterization that "11.11 is getting close to desupport". End of support is still 4 years and 2 months away:

http://www.hp.com/softwarereleases/releases-media2/history/slide2.html


Pete

Pete
OldSchool
Honored Contributor

Re: `who -b ` does not produce any information

well, its entirely possible that utmp / wtmp were "cleaned up" (emptied) at some point. which might clear the boot info.

emptying the files will not corrupt them, merely make the previous information unavailable, although if users are logged in at the time, they may get some ugly messages when they log out.

Dennis Handly
Acclaimed Contributor

Re: `who -b ` does not produce any information

>OldSchool: it's entirely possible that wtmp were "cleaned up" (emptied) at some point. which might clear the boot info.

Right. "last reboot" should also show the last reboot time, if the data is in wtmp.

Are all of the /var/adm/wtmp* files emptied?
Otherwise you can use last with -x and/or -f to select the others.
SKR_1
Trusted Contributor

Re: `who -b ` does not produce any information

Check with last reboot command. Is it working?

Thanks
SKR
Kennedy G. Doss
Regular Advisor

Re: `who -b ` does not produce any information

Here is an output of the last reboot. I am pasting only the first 10 entries.
ressnxp2(nm93572):/home/nm93572:$ last reboot | head -10
reboot system boot Sat May 17 16:10 still logged in
reboot system boot Sat May 17 15:23 - 16:10 (00:46)
reboot system boot Thu Nov 15 00:08 - 15:23 (184+14:15)
reboot system boot Mon Mar 19 15:15 - 00:08 (240+09:52)
reboot system boot Mon Mar 19 13:04 - 15:15 (02:11)
reboot system boot Mon Mar 19 12:13 - 13:04 (00:50)
reboot system boot Mon Mar 19 05:19 - 12:13 (06:53)
reboot system boot Sun Jun 11 02:09 - 05:19 (281+03:10)
reboot system boot Sun Jun 11 01:38 - 02:09 (00:30)
reboot system boot Sun Jun 11 00:13 - 01:38 (01:24)
ressnxp2(nm93572):/home/nm93572:$ who -b
ressnxp2(nm93572):/home/nm93572:$

-Kennedy