System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

last command issue - Invalid record size. Unable to continue ...

SOLVED
Go to solution
AhmedHussien
Occasional Visitor

last command issue - Invalid record size. Unable to continue ...

Hello everone.

I have an issue when running last command in my hp-ux system:

#last
Invalid record size. Unable to continue ...
#

OS Version: B.11.23

 

5 REPLIES
AhmedHussien
Occasional Visitor

Re: last command issue - Invalid record size. Unable to continue ...

Hi Dennis,

Thank you for your reply.

The contents of the file are not important.

I ran the following to scratch the file:

#echo > /var/adm/wtmp

Then:

#last
Invalid record size. Unable to continue ...

#ls -ltr /var/adm/wtmp
-rwxrwxr-x 1 adm adm 1 Jul 6 09:19 /var/adm/wtmp

#file /var/adm/wtmp
/var/adm/wtmp: commands text

same issue still exist.  

Duncan Edmonstone
Honored Contributor
Solution

Re: last command issue - Invalid record size. Unable to continue ...

Should you not be clearing down the wtmps file, not wtmp?

> /var/adm/wtmps

 


HTH

Duncan
AhmedHussien
Occasional Visitor

Re: last command issue - Invalid record size. Unable to continue ...

It works now.

Thank you  Duncan, and Dennis. 

Dennis Handly
Acclaimed Contributor

Re: last command issue - Invalid record size. Unable to continue ...

>  # echo > /var/adm/wtmp

 

Ack!  You should not be using echo, that's an example of how the file gets corrupted.