- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Managing /var space
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
01-17-2006 09:13 AM
01-17-2006 09:13 AM
How do control /var/adm/wtmp file. it seems the file size is grown to 103444800. please help me.
cheers
indrajit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 09:18 AM
01-17-2006 09:18 AM
Re: Managing /var space
cp -p /var/adm/wtmp /var/adm/wtmp.old
> /var/adm/wtmp
gzip /var/adm/wtmp.old
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 09:28 AM
01-17-2006 09:28 AM
SolutionThe file 'var/adm/wtmp' and its cousin '/var/adm/btmp' for logging successful and unsuccessful logins, respectively, grown without bounds.
If you don't want to log the activity, remove the file. That disables the logging.
Otherwise you can null the file:
# cat /dev/null > /var/adm/wtmp
...or trim it by first converting the binary data to ASCII; trimming what you don't want; and then converting the ASCII version back to the binary form:
# # /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
[ trim the ASCII file as necessary ]
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 09:36 AM
01-17-2006 09:36 AM
Re: Managing /var space
Once a week, I have a script that does this:
cp /var/adm/syslog/wtmp /copytotape
cp /var/adm/syslog/btmp /copytotape
> /var/adm/syslog/wtmp
> /var/adm/syslog/btmp
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2006 11:25 AM
01-17-2006 11:25 AM
Re: Managing /var space
Thanks a lot for ur kind support. /var has reduced to 77%.
Thanks James R..
cheers
indrajit