- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lastb error
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
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
06-24-2002 11:09 PM
06-24-2002 11:09 PM
lastb error
Getting the following error while trying to execute "lastb" command . Pl suggest a remedy.:-
dbnode:toor-/>lastb
console Thu Jan 1 05:00 pid exceeds MAXPID: wtmp file corrupted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:15 PM
06-24-2002 11:15 PM
Re: lastb error
the message tells you your problem: A corrupted wtmp- file. You could try to fix the problem with the wtmpfix- command. More information in:
man wtmp
man utmp
Do you use ITO/OVO? Then call your support, they made a tool to repair these files....
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:18 PM
06-24-2002 11:18 PM
Re: lastb error
what I suggest is either try using wtmpfix or else flush the current wtmp. take a copy of the current wtmp say move it to wtmp.old then flush the file using " cat /dev/null > /var/adm/wtmp "
do not delete the file and re-create manually. IT will not work.
to read the contents of the old file i.e. wtmp.old try
#/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/outfile then read the file
Good luck
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:20 PM
06-24-2002 11:20 PM
Re: lastb error
Have a look at the man page for 'fwtmp'
You have a corrupted wtmp file.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:26 PM
06-24-2002 11:26 PM
Re: lastb error
Have done follwoing things but didn't help.
1] wtmpfix /var/adm/wtmp
2] > /var/adm/wtmp
Still facing the same prob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:34 PM
06-24-2002 11:34 PM
Re: lastb error
as i know the command lastb refers to /var/adm/btmp (not wtmp).
The error message to wtmp may be wrong.
Try to fix the btmp file.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 11:34 PM
06-24-2002 11:34 PM
Re: lastb error
in relation to your 'nproc' not being
able to create new processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 12:33 PM
06-27-2002 12:33 PM
Re: lastb error
I face the same problem on one of our machines.
If I use commands that seems to do a lookup in the wtmp file - it hangs or return an error message.
uptime and w - cause hang
last - cause "pid exceeds MAXPID: wtmp file corrupted"
BTW: when you tried the wtmpfix command, did you tried to output the result into the same file that you tried to fix ...???
Have anyone tried
1) create a fixed copy of wtmp
wtmpfix -c /var/adm/wtmp > /var/adm/wtmp.fix
2) backup the old wtmp
cpio -p /var/adm/wtmp /var/adm/wtmp.old
Then 3a) or 3b)
3a) put the fixed version into wtmp
cp /var/adm/wtmp.fix /var/adm/wtmp
3b) empty the bad versionrm /var/adm/wtmp
cat /dev/null >/var/adm/wtmp
/Tor-Arne