search cancel

How to enable trace logging for Task management (task server) on a site server

book

Article ID: 154621

calendar_today

Updated On:

Products

Task Server

Issue/Introduction

Enable trace logging to troubleshoot advanced task issues that involve the task services on a site server.

Environment

ITMS 8.x

Resolution

Task Service
To enable trace logging for task do the following:

  1. Execute the Registry file attached to this KB on the task server, or the commands below.
  2. Modify the 'Severity' key under 'HKLM\software\altiris\Altiris Agent\Event logging\logfile' to a decimal value of '255'.
    Note: See "Symantec Management Agent (Altiris Agent) 7.5  and later Troubleshooting" KB under "Verbose Agent Logs" section for additional Agent logging registry keys such as 'MaxSize'.
  3. Restart these services
    1. Altiris Object Host Service (AtrsHost)
    2. Altiris Client Task Data Loader (CTDataLoad)
    3. World Wide Web Publishing Service (w3p)
    4. Symantec Management Agent

NOTE: The tasks on this page are included in KB 181029 Altiris Diagnostic Tasks 

Alternatively, execute the attached commands in a Run Script task targeting the desired servers:

Enable Verbose logging of Task Server and Altiris Agent:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v MaxSize  /d 2000 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v MaxFiles /d 200 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v Severity /d 255 /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v TaskStatusReporting /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v BaseClientTaskReporting /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v ClientRegistration /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v RemoteClientTaskQueue /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v TaskExecution /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v General /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v Caching /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v SocketWatchThread /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v ClientTaskServer /d 3 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v Tickle /d 3 /f

 

Put logging levels back to normal:


reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v MaxSize  /d 100 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v MaxFiles /d 20 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Event Logging\LogFile" /t REG_DWORD /v Severity /d 7 /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v TaskStatusReporting /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v BaseClientTaskReporting /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v ClientRegistration /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v RemoteClientTaskQueue /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v TaskExecution /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v General /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v Caching /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v SocketWatchThread /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v ClientTaskServer /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\TaskManagement\Logging"  /t REG_DWORD /v Tickle /d 0 /f

Additional Information

Also See KB 181029 "Altiris Diagnostic Tasks" to automate running this task against Task Servers.

Attachments

EnableExtendedLogging .reg get_app