cancel
Showing results for 
Search instead for 
Did you mean: 

BIG wtmp file

Rajib_1
Advisor

BIG wtmp file

Can anybody suggest , how to trim wtmp file on running system.
TRU64 - V4
wtmp file size more than 800mb.

Thanks in advance...
Points to be given.
Regards
Rajib
Don't cry because it's over, smile because it happened
4 REPLIES
Venkatesh BL
Honored Contributor

Re: BIG wtmp file

did u check the manpage of 'wtmp'?
Han Pilmeyer
Esteemed Contributor

Re: BIG wtmp file

Typically this is done by the logclean command in crontab every Sunday.

However this involves taking a copy of the current log file and compressing it. Considering the size of the file, you might want to use the /usr/sbin/acct/nulladm command instead.

If you want to be really safe, then you could turn off accounting first, e.g.:

/sbin/init.d/acct stop
/usr/sbin/acct/nulladm /var/adm/wtmp
/sbin/init.d/acct start


Re: BIG wtmp file

Copy existing to new file and compress it

run "/usr/sbin/acct/nulladm /var/adm/wtmp"

to Clear /var/adm/wtmp
you can insert this command it to crontab
Rajib_1
Advisor

Re: BIG wtmp file

Thanks to everyone.

Don't cry because it's over, smile because it happened