Monday, November 26, 2012

TSM: Enabling logging of TSM server service on Windows

Question

Is there any logging to check what the server is doing when starting the server as a service?

Cause

When starting the Tivoli Storage Manager server in the foreground using dsmserv command, there are logging information in the command windows to see what actions the server is taking. However, if the server is started using the Windows service, there is no logging information. This is especially helpful when debuging problems in regard to the service failing to start.


Answer

By default, the service logging is off. You can enable the service logging by modifying the registry. Assuming the server instance is Server1, Issue the following Windows command to update this registry value:

reg add HKLM\SOFTWARE\IBM\ADSM\CurrentVersion\Server\Server1\Service /v LogOutputToFile /d 1 /t reg_dword /f

The location of the service log is specified in the registry HKLM\SOFTWARE\IBM\ADSM\CurrentVersion\Server\Server1\Service\LogFile

When you are done with your debugging, disable the service logging so the log file will stop growing. To disable service logging, issue the following command (again assuming the server instance is Server1):
reg add HKLM\SOFTWARE\IBM\ADSM\CurrentVersion\Server\Server1\Service /v LogOutputToFile /d 0 /t reg_dword

Source:

IBM Technote
http://www-01.ibm.com/support/docview.wss?uid=swg21618065&myns=swgtiv&mynp=OCSSGSG7&mync=E

No comments:

Post a Comment