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
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
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
12-27-2007 11:06 AM
12-27-2007 11:06 AM
The wtmps file on 1 of our servers is very large (11.23). Is there a way of decreasing the size of this file?
Thanks
Joe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 01:16 PM
12-27-2007 01:16 PM
Re: wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 01:56 PM
12-27-2007 01:56 PM
Re: wtmps
The 'wtmps' file is a binary file and hence cannot be directly editted. This leaves you two choices:
(1) completely truncate the file:
# cat /dev/null > /var/adm/wtmps
or (2), convert the binary file to an Ascii one; edit the Ascii copy to remove all but the most recent contents; and convert the editted file from Ascii to binary:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /var/tmp/wtmp
# vi /var/tmp/wtmp
# /usr/sbin/acct/fwtmp -ic < /var/tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2007 11:55 AM
12-28-2007 11:55 AM
Re: wtmps
I'd suggest you first to check what's the reason for such a big wtmpx file.
You should be able to see more information about this with
/usr/sbin/acct/fwtmp
Usually it's caused by scripts started from inittab, when the script start and stop it's logged in wtpmx. So if you have scripts which exits you will have very fast growing wtmpx.