- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to refresh the output of "who" command
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-23-2010 08:10 PM
тАО03-23-2010 08:10 PM
how to refresh the output of "who" command
Also, i noticed taht using fwtmp, i get proper ASCII output of the utmp file but its not the case with utmpx. The output is not very readable.
/usr/sbin/acct/fwtmp < utmpx >/tmp/newutmpx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 10:26 PM
тАО03-23-2010 10:26 PM
Re: how to refresh the output of "who" command
>cleared the utmp and utmpx files since the who command accesses those
You have nullified the /etc/utmp and /etc/utmpx and you still get the same multiple logins in who output?
Did you do a:
> /etc/utmp
> /etc/utmpx
Both files must be updated (nullified) simultaneously.
This should clear all utmp data.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 10:36 PM
тАО03-23-2010 10:36 PM
Re: how to refresh the output of "who" command
Or this would go after reboot.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 11:04 PM
тАО03-23-2010 11:04 PM
Re: how to refresh the output of "who" command
First nullify the files then stop/start utmpd:
/sbin/init.d/utmpd stop
/sbin/init.d/utmpd start
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 12:57 AM
тАО03-24-2010 12:57 AM
Re: how to refresh the output of "who" command
/usr/sbin/acct/fwtmp < utmpx
The -X flag works for utmps(4) but there is no option to work for utmpx(4) format.