cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
480
Views
0
Helpful
2
Replies

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

pblanc
Level 1
Level 1

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 2

Joe Clarke
Cisco Employee
Cisco Employee

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

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.