Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Zero-ing out log files in RME 3.5 on Solaris

Will the commands below work to zero out all log files and make a

backup of them to the /tmp directory on Solaris?

/etc/init.d/dmgtd stop

$NMSROOT/cgi-bin/admin/logBackup.pl -dir /tmp

/etc/init.d/dmgtd start

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Zero-ing out log files in RME 3.5 on Solaris

If you use logrot.pl, you will have to configure it by first using logrot.pl -c. Once the log files are known to logrot, then simply running logrot.pl without any arguments will zero out all of the log files in its config.

4 REPLIES
Community Member

Re: Zero-ing out log files in RME 3.5 on Solaris

If I don't even want to make a backup of the log files, can I just run the command:

$NMSROOT/cgi-bin/admin/logBackup.pl

Cisco Employee

Re: Zero-ing out log files in RME 3.5 on Solaris

You should just use logrot.pl. It was shipped with RME 3.5 starting in IDU 6.0. If you just want to quickly zero out a file, you can also run NMSROOT/bin/logrot_trunc on the file. You don't even need to restart dmgtd for most log files.

Community Member

Re: Zero-ing out log files in RME 3.5 on Solaris

So I can just run logrot.pl with no arguments and the perl script will zero out the log files without making a backup. Correct? That's exactly what I want to do.

Cisco Employee

Re: Zero-ing out log files in RME 3.5 on Solaris

If you use logrot.pl, you will have to configure it by first using logrot.pl -c. Once the log files are known to logrot, then simply running logrot.pl without any arguments will zero out all of the log files in its config.

308
Views
5
Helpful
4
Replies
CreatePlease to create content