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

CVDeviceSelector.log not rotating

Hi Joe,

CVDeviceSelector.log is not rotating after specifying file path and name after execuiting below command:

NMSROOT\bin\perl NMSROOT\bin\logrot.pl -c

for rotation:running logrot

D:\progra~1\cscopx\bin\perl D:\progra~1\cscopx\bin\logrot.pl -s

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: CVDeviceSelector.log not rotating

You would also need to reduce the maximum size of the file in logrot's config. Right now it's set to 1 MB. Therefore, the file will be rotated when it gets to 1 MB in size.

9 REPLIES
Cisco Employee

Re: CVDeviceSelector.log not rotating

Post your NMSROOT/objects/logrot/logrot.conf file, and the output of logrot.pl -v.

Community Member

Re: CVDeviceSelector.log not rotating

Hey Joe,

Here are the logs attached,

appreciate ur help

Thanks

Cisco Employee

Re: CVDeviceSelector.log not rotating

I meant to run logrot.pl with the -v flag. That is:

NMSROOT/bin/perl NMSROOT/bin/logrot.pl -v

Community Member

Re: CVDeviceSelector.log not rotating

Hi,

Here is the attaached.

Thanks Joe

Cisco Employee

Re: CVDeviceSelector.log not rotating

The file isn't large enough to rotate yet:

Thu Nov 12 00:42:42 2009: INFO: Not archiving D:\program files\\cscopx\log\CVDev

iceSelector.log because it is not big enough.

file size = 737724, conf size = 1048576

It needs to get to 1 MB before it gets rotated.

Community Member

Re: CVDeviceSelector.log not rotating

Hey Joe,

Here is the attached print screen which is highlighting the log exceeded alert.

Thanks.

Cisco Employee

Re: CVDeviceSelector.log not rotating

This means nothing. These sizes are arbitrary, and set in NMSROOT/conf/logstat.conf. You can change those sizes if you want. Logrot uses its own config file.

Community Member

Re: CVDeviceSelector.log not rotating

Hi Joe

As per ur previous mail i can change the size from NMSROOT/conf/logstat.conf but what about when it get full and shows red alert,same as now.I mean to say how i should rotate them,

Untill now i was rotating log file's as per my 1st mail procedure.

Thanks.

Cisco Employee

Re: CVDeviceSelector.log not rotating

You would also need to reduce the maximum size of the file in logrot's config. Right now it's set to 1 MB. Therefore, the file will be rotated when it gets to 1 MB in size.

177
Views
0
Helpful
9
Replies
CreatePlease to create content