- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- restore wtmp file to view
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
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
тАО02-21-2006 04:15 AM
тАО02-21-2006 04:15 AM
I have restored an old wtmp file to another directory because we have to view it. I used the following command to view it and got this error. Is there something I am missing? Do I have to restore more than that file?
last -R -f /home/name/restore/var/adm/wtmp
pid exceeds MAXPID: wtmp file corrupted
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:18 AM
тАО02-21-2006 04:18 AM
Re: restore wtmp file to view
fwtmp is your huckleberry.
It'll write an ASCII file that you can view with any editor.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:20 AM
тАО02-21-2006 04:20 AM
Re: restore wtmp file to view
Never heard that one, Schuss. Midwestern slang?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:21 AM
тАО02-21-2006 04:21 AM
Re: restore wtmp file to view
/usr/sbin/acct/wtmpfix /home/pf10396/restore/var/adm/wtmp
Bad file at offset 2117280
pts/ta 942946352 Thu Nov 18 11:32:32 1999
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:23 AM
тАО02-21-2006 04:23 AM
Re: restore wtmp file to view
cat /home/name/restore/var/adm/wtmp | /usr/sbin/acct/fwtmp
The first half of the file was fine and the rest was all full of ascii chars.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:31 AM
тАО02-21-2006 04:31 AM
Re: restore wtmp file to view
Try this instead:
# fwtmp < /home/name/restore/var/adm/wtmp > /home/name/restore/var/adm/wtmp.ascii
and see if you have any better luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:33 AM
тАО02-21-2006 04:33 AM
Re: restore wtmp file to view
What???
Never seen Tombstone?
The seen where Doc Holliday intervenes in Wyatt's gunplay with Ringo???
And yes, it's kinda MW slang....just because huckleberrys are SO good, but they only grow above 3K feet - which kinda rules us out.
So we have to import 'em from the Rockies.
OK - my lesson's done,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:35 AM
тАО02-21-2006 04:35 AM
Re: restore wtmp file to view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 04:36 AM
тАО02-21-2006 04:36 AM
Re: restore wtmp file to view
seen != scene
Tells me just what part of my brain I type from &~))
Embarrasingly,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 05:16 AM
тАО02-21-2006 05:16 AM
Re: restore wtmp file to view
***********************************
Pete... the line is when Ringo is looking for someone to pick a fight with:
Ringo: Wretched slugs, don't any of you have the guts to play for blood?
Doc: I'm your huckleberry.
You can even hear him say it here:
http://www.moviesoundscentral.com/sounds/tombstone/huckleberry.wav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 05:24 AM
тАО02-21-2006 05:24 AM
SolutionCorruption of a 'wtmp' file does occur. If you are of that opinion, your best recourse is to convert the binary 'wtmp' file to ASCII with 'fwtmp' as has already been suggested. If you encounter a clearly bad record, disregard and/or delete it.
This is the technique needed if you want to fix and restore a corrupt 'wtmp' (or 'btmp') file:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
...edit...
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...