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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

LMS 3.1 - license.log file - rotates but not defined in logrot

I discovered the the license.log file, in /var/adm/CSCOpx/log, rotates to a new version on its own. This creates an issue with a script I have that allows remote users to check if a device is present in RME. The script, using the CLI, apparently causes the license file to be updated. To make this work, I needed to modify the permissions on the file to -rw-rw----, but when LMS rotates the file, it restores it to the default -rw-r-----. Is there a way to modify or control this behavior? I have not defined this file in logrot.

2 REPLIES
Cisco Employee

Re: LMS 3.1 - license.log file - rotates but not defined in logr

This file is handled by the log4j subsystem. You can modify the rotation parameters for license.log in NMSROOT/objects/licenses/log4-license.properties.

New Member

Re: LMS 3.1 - license.log file - rotates but not defined in logr

Thank you very much. I can see how to control the number of backups and the size of the file. Is there a way to turn this logging off altogether? I don't see what purpose it serves other than adding overhead to any processing.

181
Views
0
Helpful
2
Replies