QTP/(U)FT Support Tip: Why is the License usage not longer logged?
How are you? I hope you are fine
Most of you know, that with the lsusage.exe the access to the licenses stored on the License Server can be logged. However, it can happen, that this logging stops at some point although no changes are made to the system and variables. What might be the cause and how to re-enable the logging?
The License Manager writes records to the log file until it reaches its maximum size. The default value for maximum size is 1 MegaByte, but this can be changed using the -z option in the LSERVOPTS environment variable or at the command-line. The size can be specified in Bytes, KiloBytes, or MegaBytes. For instance, -z 2000 means 2000 Bytes, -z 2k means 2 KiloBytes, -z 2m means 2 MegaBytes.
Once the maximum size is reached, the contents of the current log file will be saved into a backup file unless the no-backup -x option has been used in the LSERVOPTS environment variable or at the command line, or the maximum amount of log files has been used (99 files with the extension *.txt.00 to *.txt.99).
In order to fix such an issue, please check whether either of these points are valid:
- -x option is added to the Environmental Variable LSERVOPTS - solution: remove it
- 99 backup files are already used - solution: copy them to a different location, increase the size of the log files (see above)
I hope these information helped.
Functional Testing Support Engineer
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]