HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get LAST command output - Error: Invalid record size. Unable to continue

 
arunaphcl
Advisor

Unable to get LAST command output - Error: Invalid record size. Unable to continue

Unable to get LAST command output - Error: Invalid record size. Unable to continue

2 REPLIES
Bill Hassell
Honored Contributor

Re: Unable to get LAST command output - Error: Invalid record size. Unable to continue

The last command reads the login/logout records from /var/adm/wtmps (wtmp for older versions of HP-UX).  This is a binary file and cannot be edited without corrupting the contents. You'll need to create a new, empty wtmps file or restore the file from previous backups.



Bill Hassell, sysadmin

Re: Unable to get last(1) command output - Error: Invalid record size. Unable to continue

How important is this info?  If not, just scratch the file.

 

>This is a binary file and cannot be edited without corrupting the contents.

 

Unless you know what you're doing.  :-)  See:

http://community.hpe.com/t5/System-Administration/last-returns-no-login-info/m-p/5269768