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
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
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-11-2002 12:56 PM
тАО04-11-2002 12:56 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 12:59 PM
тАО04-11-2002 12:59 PM
Re: wtmp
Check the output of 'last'. This searches /var/adm/wtmp file and you can find out the issue.
# man last
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 01:01 PM
тАО04-11-2002 01:01 PM
Re: wtmp
# cd /var/adm
# /usr/sbin/acct/fwtmp < wtmp
That should give you some idea what's filling up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 01:10 PM
тАО04-11-2002 01:10 PM
SolutionIf present, this file will grow indefinitely.
If you merely want to "zero" the file after examining it (with 'last') then the proper way is to direct /dev/null into it so that the file descriptor to the file remains the same:
# cat /dev/null > /var/adm/wtmp
If you never care about last logins, you can remove the file entirely. This will stop its creation and any I/O to it. Then, if you want to use it later, touch it (or direct /dev/null to it); set its ownership to "root" and make its permissions 644.
If you wish to retain a portion of the file, you can do this:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
This converts the binary file to an ASCII formatted one which you may edit and convert back to binary:
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
You can perform similar manipulations with the 'btmp' data for "bad" logins.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 01:10 PM
тАО04-11-2002 01:10 PM
Re: wtmp
#! /bin/sh
>/var/adm/wmtp 1>&- 2>&-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 07:07 PM
тАО04-11-2002 07:07 PM
Re: wtmp
But you must manage all the logfiles all the time, a job for cron. First decide what information you must retain, then based on the rate at which the logfiles grow, a cron script will extract needed info, then copy the logfile, compress it and then zero the current logfile. You may want to keep 3 to 9 weeks of old logfiles for security and troubleshooting.
Logfiles you need to monitor in /var/adm:
wtmp btmp nettl.LOG00
and in /var/adm/syslog:
mail.log syslog.log
There are many others but their growth depends on what you are running on your system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2002 09:00 PM
тАО04-11-2002 09:00 PM
Re: wtmp
i regularly use SAM to manage my system logfiles.
->SAM Areas->Routine Tasks->System Log Files
Also, i have regular cronjobs that verify and trim some of them.
All you need is to identify these files and devise a strategy for verification and purging(automated or manual).
Best Regards
yogeeraj