- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: last command 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
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-10-2002 06:56 AM
06-10-2002 06:56 AM
last command error
iam getting the following error when i issue the last command. but lastb working fine. wtmp file exists in /var/adm. what could be the reason. it is hp-ux 11.0 system.
Memory fault(corddump)
thanks in advance
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 07:02 AM
06-10-2002 07:02 AM
Re: last command error
Suspect the wtmp file is corrupt.
last checks it whereas lastb checks the btmp file.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 07:04 AM
06-10-2002 07:04 AM
Re: last command error
Hi
Please check up the permission and owner of /var/adm/wtmp file.
It should be 664 adm adm. If still problem follow this
#cd /var/adm
#cp wtmp wtmp.org
#>wtmp
#last
Now U see whether it is giving any error or not.. If still problem , then something wrong with /usr/bin/last command.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 07:04 AM
06-10-2002 07:04 AM
Re: last command error
Do this ..
# cd /var/adm
# mv wtmp wtmp.old
# touch wtmp
==> retain the same permission/ownership as wtmp.old
# last
If it's ok, then it's confirmed "wtmp" is corrupted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 07:06 AM
06-10-2002 07:06 AM
Re: last command error
The wtmp file is corrupt , please recreate it using :
to read wtmp file, that now seems to be corrupted ,do like this:
the following will convert it to ASCII file
#/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/file
then you can either edit the file or read it.
Then you can convert it back to binary form:
##/usr/sbin/acct/fwtmp -ic < /tmp/file > /var/adm/wtmp
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 07:49 AM
06-10-2002 07:49 AM
Re: last command error
regds
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 08:17 AM
06-10-2002 08:17 AM
Re: last command error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2002 08:57 AM
06-10-2002 08:57 AM
Re: last command error
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058668889