- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var/adm/wtmps and /var/adm/wtmp
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
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
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-22-2009 09:34 AM
тАО04-22-2009 09:34 AM
It appears that no new logins have been logged since Dec 2007. /var/adm/wtmps file is huge. I'm assuming its size is the problem.
-rw------- 1 root other 0 Apr 21 14:12 btmp
-rw------- 1 root other 1053726540 Apr 22 10:23 btmps
-rw-rw-r-- 1 adm adm 240 Apr 22 09:11 wtmp
-rw-rw-r-- 1 adm adm 2147483647 Dec 12 2007 wtmps
-rw-r--r-- 1 root sys 280 Feb 8 01:39 wtmpx
Can I fix by just cat /dev/null > /var/adm/wtmps?
What is the /var/adm/wtmp file?
What is the best way to archive these files - just a copy command and then tar up the copy?
Can I assume whatever you say is also true for btmps and btmp respectively?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:40 AM
тАО04-22-2009 09:40 AM
Re: /var/adm/wtmps and /var/adm/wtmp
> /var/adm/wtmps
Save recent entries first if you wish.
A quick perusal of the man page (man 4 wtmp) will identify the usage for these files.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:40 AM
тАО04-22-2009 09:40 AM
Re: /var/adm/wtmps and /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:48 AM
тАО04-22-2009 09:48 AM
Re: /var/adm/wtmps and /var/adm/wtmp
I have read the man pages for wtmps and btmps and understand their usage.
I was curious about the wtmp and btmp (no s suffix) as the entry in the man page seems to say that these are obsolete. But I have them on the system and they have recent dates and tiny sizes. Hence my question about their use when wtmps and btmps seem to be the actual logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 10:12 AM
тАО04-22-2009 10:12 AM
SolutionTry this thread:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1240423854272+28353475&threadId=1140449
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 10:43 AM
тАО04-22-2009 10:43 AM