12-10-2008 03:40 PM
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.
12-10-2008 03:49 PM
This file is handled by the log4j subsystem. You can modify the rotation parameters for license.log in NMSROOT/objects/licenses/log4-license.properties.
12-11-2008 05:52 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide