- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: wtmp file shows incorrect dates
Operating System - HP-UX
1753427
Members
4766
Online
108793
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-30-2008 08:30 AM
тАО07-30-2008 08:30 AM
wtmp file shows incorrect dates
I am running HP-UX 11iv2 (11.23) on several Itanium boxes. I have a job that runs on a daily basis to trim the wtmp and btmp files to keep only the last 30 days. The script has always run fine on the PA-RISC systems and on most of the Itanium systems. Just these half-dozen or so. Output from "last" looks fine, but when I convert wtmp to ASCII using /usr/sbin/acct/fwtmp, the dates for the entries are all "Dec 31 18:00:00 1969" with a bogus IP address for the connection. Anyone know why the epoch date is showing up instead of the current dates? It kind of messes with the script that trims by dates, KWIM?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 08:43 AM
тАО07-30-2008 08:43 AM
Re: wtmp file shows incorrect dates
Hi Karen:
If this is one of the servers on which you trimmed the file, I would guess that your trimming corrupted the file. You might want to empty the file and start again:
# cat /dev/null > /var/adm/wtmp
You might also provide more details (a script) that shows *how* you trim.
Regards!
...JRF...
If this is one of the servers on which you trimmed the file, I would guess that your trimming corrupted the file. You might want to empty the file and start again:
# cat /dev/null > /var/adm/wtmp
You might also provide more details (a script) that shows *how* you trim.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 09:00 AM
тАО07-30-2008 09:00 AM
Re: wtmp file shows incorrect dates
I've already zero-ed out the wtmp file and when I checked it again, it was set to the epoch:
root >last
user pts/1 Wed Jul 30 11:22 still logged in
WTMPS_FILE begins at Wed Jul 30 11:22:03
root >/usr/sbin/acct/fwtmp < /var/adm/wtmp
user 1 pts/1 1961 7 0000 0000 0 Dec 31 18:00:00 1969 99.112.115.45
root >last
user pts/1 Wed Jul 30 11:22 still logged in
WTMPS_FILE begins at Wed Jul 30 11:22:03
root >/usr/sbin/acct/fwtmp < /var/adm/wtmp
user 1 pts/1 1961 7 0000 0000 0 Dec 31 18:00:00 1969 99.112.115.45
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 08:04 PM
тАО07-30-2008 08:04 PM
Re: wtmp file shows incorrect dates
>I've already zero-ed out the wtmp file and when I checked it again
You may have to kill utmpd(1m), trim then restart it.
You may have to kill utmpd(1m), trim then restart it.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP