- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reduce size of /var/adm/utmps
Operating System - HP-UX
1753973
Members
8022
Online
108811
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
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
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
09-08-2010 06:46 AM
09-08-2010 06:46 AM
reduce size of /var/adm/utmps
Some one please suggest the proper way to reduce the size of /var/adm/utmps ?
HP-UX B.11.23 U ia64
Thanks,
Phil
HP-UX B.11.23 U ia64
Thanks,
Phil
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2010 09:27 AM
09-09-2010 09:27 AM
Re: reduce size of /var/adm/utmps
Hi Phil:
I presume that you mean '/var/adm/wtmps' --- the repository for login activity as read by 'last()'. The 'utmps' file contains accounting information for users currently logged on to the server (as for viewing with 'who -u'. It is replicated to 'wtmps' upon logoff.
If you don't wish to login session data, simply truncate the file:
# cat /dev/null > /var/adm/wtmps
(or):
# > /var/adm/wtmps
If you wish to retain part of the file, convert the binary data to ASCII text; edit the ASCII text and convert that back to the binary format:
# /usr/sbin/acct/fwtmp -X < /var/adm/wtmps > /tmp/wtmps
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmps > /var/adm/wtmps
Regards!
...JRF...
I presume that you mean '/var/adm/wtmps' --- the repository for login activity as read by 'last()'. The 'utmps' file contains accounting information for users currently logged on to the server (as for viewing with 'who -u'. It is replicated to 'wtmps' upon logoff.
If you don't wish to login session data, simply truncate the file:
# cat /dev/null > /var/adm/wtmps
(or):
# > /var/adm/wtmps
If you wish to retain part of the file, convert the binary data to ASCII text; edit the ASCII text and convert that back to the binary format:
# /usr/sbin/acct/fwtmp -X < /var/adm/wtmps > /tmp/wtmps
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmps > /var/adm/wtmps
Regards!
...JRF...
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