- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem executing "last" 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
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
04-20-2005 10:29 PM
04-20-2005 10:29 PM
Problem executing "last" command
I get the following error when i execute "last" command.
Invalid record size. Unable to continue ...
What could be the possible cause? I am unable to figure out..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 10:39 PM
04-20-2005 10:39 PM
Re: Problem executing "last" command
file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 10:57 PM
04-20-2005 10:57 PM
Re: Problem executing "last" command
-rw-rw-r-- 1 adm adm 2455620 Apr 20 17:01 /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:07 PM
04-20-2005 11:07 PM
Re: Problem executing "last" command
Try wtmpfix to fix the /var/adm/wtmp file.
If the last command still doesn't work, create a copy of wtmp file and then do a echo > /var/adm/wtmp to null the file.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:09 AM
04-21-2005 01:09 AM
Re: Problem executing "last" command
Any suffestions would be appreciated..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:22 AM
04-21-2005 01:22 AM
Re: Problem executing "last" command
just an idea :
is the file in use ?
# fuser /var/adm/wtmp
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:25 AM
04-21-2005 01:25 AM
Re: Problem executing "last" command
Have you also checked /var/adm/btmp, same scenario as /var/adm/wtmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:37 AM
04-21-2005 01:37 AM
Re: Problem executing "last" command
I am able to get the o/p from "lastb" command, but "last" command always gives me the same error (Invalid recird size. Unable to continue...)
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:39 AM
04-21-2005 01:39 AM
Re: Problem executing "last" command
"fuser /var/adm/wtmp" does not show any o/p.
And i am running these commands as superuser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2005 10:48 PM
04-23-2005 10:48 PM
Re: Problem executing "last" command
While searching for this I found this important document. Which says there may be corruption in /var/adm/btmp also which may cause last to give some error. Alltough error do not exactly match with yours but still have a look.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068499910
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 10:34 PM
04-24-2005 10:34 PM
Re: Problem executing "last" command
I had to truncate both "/var/adm/wtmps" & "/var/adm/btmps" files (AND NOT /var/adm/wtmp & /var/adm/btmp )...
Regards,
SUraj