I have set up log rotation to roate almost every log file in var/adm/CSCOpx/log and I set it to keep zero archive. It was working until last week. I have noticed that my log rotation is now keeping several version of the log file and filling var/adm/CSCOpx/log utpo 88%.
Please post your /opt/CSCOpx/objects/logrot/logrot.conf file. If you have configured logrot to maintain multiple versions of archived logs, then what you're seeing is expected. You have two choices: either specify an archive directory in which logrot can store these archives, or disable archiving old log files.
Some of these numbered files are created by the log4j subsystem which is independent from logrot. In order to disable that, you would have to edit the numerous log4j properties files used by LMS, and set MaxBackupIndex to 0. Alternatively, you can configure a cron job (or add something to your logrot cron job) which purges all *.[0-9] files from /var/adm/CSCOpx/log.
There are several files that are not numbered and in my logrot list but still not being rotated as they used to be? Secondly,I haven't seen those numbered files until now, what you think may have broken, I haven't made any updates to the OS or the CiscoWorks in several months. Can I manually delete those log file? Do I have to have casuser password to do that? I saw log4j under opt/CSCOpx/object but I couldn't find its properties file.
Yes, you can manually delete the numbered archives as root. As I said, you can add a cron job to do it automatically.
The various LMS applications have different log4j settings, but in general, the archived log files get created when the main log file reaches as certain size.
Some log files cannot be rotated properly while dmgtd is running. That is, they will get truncated to 0 bytes, but due to the way they are opened, they will immediately jump back to their previous size as soon as they are written to again. The only workaround for this is to perform an offline rotation (i.e. run logrot.pl with the -s flag).
[toc:faq]The ProblemOn traditional switches whenever we have a trunk
interface we use the VLAN tag to demultiplex the VLANs. The switch needs
to determine which MAC Address table to look in for a forwarding
decision. To do this we require the switch to do...
[toc:faq]Introduction:Netdr is a tool available on a RSP720, Sup720 or
Sup32 that allows one to capture packets on the RP or SP inband. The
netdr command can be used to capture both Tx and Rx packets in the
software switching path. This is not a substitut...
IntroductionOSPF, being a link-state protocol, allows for every router
in the network to know of every link and OSPF speaker in the entire
network. From this picture each router independently runs the Shortest
Path First (SPF) algorithm to determine the b...