- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who -r not working
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
Discussions
Discussions
Forums
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
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
тАО03-20-2009 02:44 PM
тАО03-20-2009 02:44 PM
i have a hp-ux B.11.11 machine here where the command who -r gives an empty output, return value is zero.
the who command itself does work, the /etc/inittab and /sbin/init seem OK.
where could i start to search for the problem?
is there another way to see the current runlevel?
Solved! Go to Solution.
- Tags:
- who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 03:40 PM
тАО03-20-2009 03:40 PM
Re: who -r not working
Can you post the output of:
whence who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 03:43 PM
тАО03-20-2009 03:43 PM
Re: who -r not working
/usr/bin/who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 03:44 PM
тАО03-20-2009 03:44 PM
Re: who -r not working
the last 100 entries '/etc/rc.log' are:
AxInitLocale: Error occurred during locale and conversion initialization.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 03:55 PM
тАО03-20-2009 03:55 PM
Re: who -r not working
See these other threads about runlevel:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1239710
INIT_STATE=s
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238202
who -r not working in single user mode.
It also mentions the command getrunlvl.
- Tags:
- utmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 04:17 PM
тАО03-20-2009 04:17 PM
Re: who -r not working
(note: i won't be able to reboot / change runlevels of the machine because it's a customer's server)
getrunlvl doesn't give me any output either, the machine wasn't rebooted for 200 days now and /etc/utmp isn't empty.
'strings /etc/utmp' gives me:
root@asbd4z :/root/home/root :strings /etc/utmp
root
consconsole
B<
p
B<
ts/7pts/7
ermclnt
B
pts/1
I8S5
LOGIN
pts/2
i replaced every ip with
maybe it has something to do with that storm of:
AxInitLocale: Error occurred during locale and conversion initialization.
in the /etc/rc.log? (although that file was last modified over 3 months ago)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 04:41 PM
тАО03-20-2009 04:41 PM
Re: who -r not working
Since the machine is up, your runlevel is fine. Is your problem some script that insists on checking the runlevel and that's failing?
>getrunlvl doesn't give me any output either
Hmm, I forgot what that looks at. You could use tusc to check.
>the machine wasn't rebooted for 200 days now and /etc/utmp isn't empty.
It could be corrupted.
What does this show:
/usr/sbin/acct/fwtmp < /etc/utmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 05:09 PM
тАО03-20-2009 05:09 PM
Re: who -r not working
here the output of '/usr/sbin/acct/fwtmp < /etc/utmp':
root cons console 8064 7 0000 0001 1219995548 Aug 29 09:39:08 2008
ermclnt 22780 8 0000 0000 1237569841 Mar 20 18:24:01 2009
LOGIN ta pts/ta 1910 8 0000 0000 1233141984 Jan 28 12:26:24 2009
LOGIN 2 pts/2 25517 8 0000 0000 1233140892 Jan 28 12:08:12 2009
i replaced the usernames by
i've attached the output of 'tusc who -r' as well. (i've X'd out the usernames).
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 06:01 PM
тАО03-20-2009 06:01 PM
Re: who -r not working
# /sbin/init.d/pwgr stop
# who -r
If you want to restart it:
# /sbin/init.d/pwgr start
You could then try the 'who -r' again and see if just stopping and restarting pwgr "fixed" the problem.
No, stopping pwgr will not prevent anyone from logging in and should not have any other adverse effects.
I never run this on any of my servers. From what I have read it is really only useful if there are a lot of users logging in and out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 06:06 PM
тАО03-20-2009 06:06 PM
Re: who -r not working
root@xxxxxx :/root/home/root :/sbin/init.d/pwgr stop
pwgrd stopped
root@xxxxxx :/root/home/root :who -r
root@xxxxxx :/root/home/root :/sbin/init.d/pwgr start
pwgrd started
root@xxxxxx :/root/home/root :who -r
root@xxxxxx :/root/home/root :
no change :(