- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- utmp file cleaning
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
02-20-2009 07:30 AM
02-20-2009 07:30 AM
utmp file cleaning
i have in /etc/ the file utmp
with the command who -u i can see that in this
file there are processes which in fact do not
exist anymore
what is the best way to clean that utmp
file , so that i have the correct who -u display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 07:35 AM
02-20-2009 07:35 AM
Re: utmp file cleaning
# cat /dev/null > /var/adm/wtmp
If you want to preserve :
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp_data
Edit & make changes, then
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp_data > /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 07:36 AM
02-20-2009 07:36 AM
Re: utmp file cleaning
A reboot is the simplest, cleanest choice.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 07:40 AM
02-20-2009 07:40 AM
Re: utmp file cleaning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 08:13 AM
02-20-2009 08:13 AM
Re: utmp file cleaning
I have never tried fwtmp with utmp, but should follow the procedure to fix it. Make sure you backup the current file before any changes.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2009 07:03 PM
02-20-2009 07:03 PM
Re: utmp file cleaning
It seems to work fine for me:
$ /usr/sbin/acct/fwtmp < /etc/utmp > utmp_t
$ /usr/sbin/acct/fwtmp -ic < utmp_t > utmp_t.bin
$ cmp -l utmp_t.bin /etc/utmp
1055 0 162
1056 0 162
But it depends on the OS since utmpd(1m) is being used on 11.23. And that uses /etc/utmpx.
- Tags:
- fwtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2009 01:52 AM
02-22-2009 01:52 AM
Re: utmp file cleaning
reboot is in my case not possible
the "lost processesnumcbers " is see i
in my utmp are mainly processes with
the name gold -- which is in fact goglobalux version 2.2.6 -- maybe one of you have same programm with the same troubles -
by troubles i mean - that if i have these many "ghost processes" new users cannot start
the apllication any more -- only stopping and starting of goglobalux solves my problems
-- maybe these gold processes are execeeding also som kernelparameters --
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2009 02:01 AM
02-22-2009 02:01 AM
Re: utmp file cleaning
i forgot to post my hp ux version
B.11.11 U 9000/800
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2009 10:27 AM
02-22-2009 10:27 AM
Re: utmp file cleaning
Then try using fwtmp to remove these phantom processes.