- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create a report on user login information
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
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
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
01-20-2014 07:27 PM - edited 01-20-2014 07:40 PM
01-20-2014 07:27 PM - edited 01-20-2014 07:40 PM
create a report on user login information
I need to creat a report on the user login information for the last 30-60 days. I tried using the last command to access the /var/adm/wtmp file, but it is corrupted.
Any help would be greatly appreciated...
thanks,
- Tags:
- wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2014 07:44 PM
01-20-2014 07:44 PM
Re: create a report on user login information
>> using the last command to access the /var/adm/wtmp file, but it is corrupted.
Is that an error message from the last command or did you try to view the file?
The wtmp is all binary data so it will appear to be jibberish if you use vi or just cat the file.
If the last command reports that wtmp is corrupted then you'll have to restore and older copy from your backups.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2014 07:50 PM
01-20-2014 07:50 PM
Re: create a report on user login information
# last
pid exceeds MAXPID: wtmp file corrupted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2014 09:11 PM
01-20-2014 09:11 PM
Re: create a report on user login information
>/var/adm/wtmp file, but it is corrupted.
What HP-UX version do you have?
How important is getting the info out of the wtmp file?
See these other topics and KB entries:
http://h30499.www3.hp.com/t5/HP-UX-Knowledge-Base/Decoding-contents-of-wtmp-file/ta-p/5582753
http://h30499.www3.hp.com/t5/System-Administration/last-returns-no-login-info/m-p/5269768
http://h30499.www3.hp.com/t5/System-Administration/decode-contents-of-wtmp-file/m-p/5569517
>If the last command reports that wtmp is corrupted then you'll have to restore and older copy from your backups.
Unless you want to try my techniques. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2014 10:59 PM
01-20-2014 10:59 PM
Re: create a report on user login information
11.11
I have to generate a report of users who logged in to this system for the past 30-60 days. using the last command to access the /var/adm/wtmp file is the only way i know how.
Of course I'm open to suggestions...what'd you have in mind?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014 12:13 PM - edited 01-21-2014 12:23 PM
01-21-2014 12:13 PM - edited 01-21-2014 12:23 PM
Re: create a report on user login information
>I have to generate a report of users who logged in to this system for the past 30-60 days.
Did you read the the links I provided? Basically if you don't try the tips listed there, the official answer is you are out of luck, your wtmp file is corrupted and you can't get that info back.
>Of course I'm open to suggestions
The links tell you how to do the data recovery operation. How much time and effort have you budgeted for this?
What does this show:
ll /var/adm/wtmp*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2014 07:36 PM
01-24-2014 07:36 PM
Re: create a report on user login information
# ll /var/adm/wtmp*
-rw-rw-r-- 1 adm adm 360 Jan 24 22:34 /var/adm/wtmp
-rw-r--r-- 1 root sys 0 Jan 31 2002 /var/adm/wtmpx
subsequently, i found out that any time this file, or files associated with logins become 2gb in size, they become corrupted.
I have zeroed out the file, deleted it, and created a new one. logins have started recording..