IT dragons tamed since 2006 (with 760 solutions and growing)

[login]
[join]

your IP[54.221.93.187]




If you thought this solution was helpfull, please login and vote. Not a member? click here

ID742
TitleSolaris 10 rotate the wtmp file
Byjohn
Keywordswtmp logadm
CategorySolaris 10
Votes0
Views53
Score53
Date2017-04-20
Body
Solaris 10 rotate the wtmp file

dracko: logadm -C 4 -c -s 300m -w /var/adm/wtmpx

where:

-C count     Delete the oldest versions until there are not more than count files left.
-p period    Rotate a  log  file  after  the  specified  time  period  (period) .
-c           Rotate the log file by copying it and truncating the original  logfile to zero length,
rather than renaming the file. -w entryname Write an entry into the config file (that is, /etc/logadm.conf) -s size Rotate the log file only if its size is greater than or equal to size. -z count Compress old log files after all other commands have been executed. There it is: dracko: grep wtmpx /etc/logadm.conf /var/adm/wtmpx -C 4 -c -s 300m dracko: logadm -v # loading /etc/logadm.conf # processing logname: /var/log/syslog # using default rotate rules: -s1b -p1w # using default template: $file.$n # processing logname: /var/adm/messages # using default rotate rules: -s1b -p1w # using default template: $file.$n # processing logname: /var/cron/log # using default expire rule: -C10 # processing logname: /var/lp/logs/lpsched # using default rotate rules: -s1b -p1w # processing logname: /var/fm/fmd/errlog # using default expire rule: -C10 # using default template: $file.$n # processing logname: /var/fm/fmd/fltlog # using default template: $file.$n # processing logname: smf_logs # using default template: $file.$n # processing logname: /var/adm/pacct # using default template: $file.$n # processing logname: /var/log/pool/poold # using default expire rule: -C10 # using default template: $file.$n # processing logname: /var/adm/wtmpx # using default template: $file.$n # /etc/logadm.conf and /var/logadm/timestamps unchanged dracko:
SharediggDigg this solutiondel.icio.usPost to del.icio.usSlashdotSlashdot it!email to a friend
PrintPrint This Solution Print
If you thought this solution was helpfull, please login and vote. Not a member? click here


Latest News

Thanks to Dave for hosting this site!

Registered User Area

[login]
[new user]


Paying the Rent



Advanced Search:

Choose body, keywords, title, or all to include in search 
words to include in search 
and(+)

Choose body, keywords, title, or all to include in search 
additional words to include in search 
not(-)

Choose body, keywords, title, or all to exclude in search 
words to exclude from search 


catagory
order by






diggDigg Dracko
del.icio.usPost to del.icio.us
SlashdotSlashdot us!




Don't forget to vote!
Powered by John Core
Bye!

Dracko by John Core

me

View John Core's profile on LinkedIn


Certifications
security logo saber ccsa logo ccna-logo hbss veritas

Technologies
oracle_logo
solaris_logo linux-logo openstack_logo vbox_logo splunk storagetek_logo sun_logo oraclevm_logo brocade_logo bsd_logo

Languages
c-logo bash-logo php-logo

Employers
PlanetPayment Medecision AWi PennStateHershey DISA DLA cim Sun

Consulting
KMBS PNC FBI CCS PTD Sentinel