Enable FlexNet Publisher Debug Logs
This section describes how to enable FlexNet Publisher debug logs. It is crucial to understand the differences found in the debug log based upon the enable method. These differences will dictate how Monitor will be configured to import data from the logs.
To enable the debug log in FlexNet Publisher, use one of the following methods.
Static Debug Log
A static debug log is one that captures both the lmgrd and vendor daemon output. The lmgrd daemon contributes date stamps, while the vendor daemon contributes all license activity.
At license server startup time, pass the -l </path/to/debug/log> option to lmgrd. This will create a debug log that will contain all of the information necessary for Monitor to properly analyze the log contents. However, this file is not rotatable, and will require a restart of the server to rotate the log. This type of log will grow over time, the rate at which is determined by the amount of activity on the license server. If disk space is a concern, the rotating method below should be considered.
Rotating Debug Log
- In the options file for FlexNet Publisher, use the
DEBUGLOG </path/to/debug/log>
directive. So that Monitor can appropriately handle FlexNet Publisher server restarts, the debug log name specified in this directive must be in the format of <file>.startup. This will indicate that a restart has occurred. - In a triad environment, the DEBUGLOG directive may specify the same physical file since the MASTER server in the triad is the only one that writes to the log file at any given time. The log files may also be kept separate for each server as long as they are all specified in the Monitor configuration.
- For UNIX, use cron
- Example cron
task:
# FlexNet Publisher debug log cron tasks for Monitor. # Make sure to keep each cron job on one line and either use full paths for each file # or change into the directory where the file exists. # To suppress cron mail from being sent, add > /dev/null 2>&1 after each command. ## If the server is restarted for any reason, switch the debug log to the current day # so it can be parsed, then remove the startup log. # LINE SPLIT IN THIS EXAMPLE: SHOULD NOT BE SPLIT IN THE REAL CONFIG FILE. * * * * * [ -f debug.startup ] && lmswitch -c license.dat vendord debug.`date +\%Y\%m\%d`.log && rm -f debug.startup ## Rotate the log every night at midnight 0 0 * * * lmswitch -c license.dat vendord debug.`date +%Y%m%d`.log
- For Windows, use the Task Scheduler:
- To perform rotation on Windows, the Task Scheduler application must be
used in conjunction with a batch script as follows:
- Use the following example to create a batch script (modify the rotation time to the desired time).
- Create a scheduled task in Task Scheduler by pointing to the batch script and selecting it as the application to run. Set it to run every day.
- After the task is created, open the Advanced Properties for the task and set it to repeat every one minute. The batch script itself will make sure the appropriate action is taken at the right time.
Once the debug log has been configured and is being generated by the license manager, Monitor must be configured to parse the log. This can be done jointly with a sampling monitor, or a debug log can be monitored in a stand-alone fashion.