How to gather troubleshooting information for the Unix, Linux and Mac SMP Agent and Inventory Solution
search cancel

How to gather troubleshooting information for the Unix, Linux and Mac SMP Agent and Inventory Solution

book

Article ID: 179983

calendar_today

Updated On:

Products

Client Management Suite IT Management Suite

Issue/Introduction

How to gather troubleshooting information for the Unix, Linux and Mac SMP Agent and Inventory Solution

Environment

ITMS 8.x

Resolution

To collect all available data from ULM machine for Inventory troubleshooting please do the following:

1. Collect information about agent and plug-ins:

  • Run:aex-helper list all -f > /tmp/agent.info

2. Gather output for all inventory solution commands issued and their results. To do so, insert the following lines to the /opt/altiris/notification/nsagent/bin/aex-env file:

AEX_LAUNCHER_HOST="sys://localhost?mode=sys&cache=/tmp/cache.out"
export AEX_LAUNCHER_HOST

3. Set DEVNOTE log level, unset log file limits, set backup dir for all NSE files, restart agent, empty client log

  • Run: aex-helper agent -s "Configuration" debug_level DEVNOTE
  • Run: aex-helper agent -s "Configuration" debug_file_size 0
  • Run: aex-helper agent -s "Event Queue" backup_dir /tmp
  • Run: aex-helper agent restart
  • Run: sudo rm /opt/altiris/notification/nsagent/var/*log*

4. Run an inventory task with appropriate options set in the main window and the advanced window tabs.

5. Run the attached shell script, getinvdata.sh, to automatically run the individual inventory scripts. The output is gathered in the /tmp/syminvdata.out file, by default. It is also possible to run individual scripts for individual data classes, as explained in knowledge base article: How to run individual scripts to view data gathered by Inventory Solution for Unix, Linux and Macintosh 8.x

. In case of running individual scripts, collect the data from the on-screen output, as there will be no file generated. 

6. Collect files and send the following files to Symantec Technical Support or other representative for review:

  • /tmp/agent.info
  • /tmp/cache.out
  • /tmp/*.nse
  • /tmp/syminvdata.out
  • /opt/altiris/notification/nsagent/var/aex-client.log
  • /opt/altiris/notification/inventory/var/log/<datetime>.log, if any exist.

7. Undo the above settings to prevent unnecessary file accumulation.

  • Remove the AEX_LAUNCHER_HOST lines from the aex-env file
  • Run: aex-helper agent -s "Configuration" debug_level ERROR
  • Run: aex-helper agent -s "Configuration" debug_file_size 1024
  • Run: aex-helper agent -s "Event Queue" backup_dir ""
  • Run: aex-helper agent restart

Note: Setting a value to "" (empty double quotes) will set a client.conf value to null/blank. 

 

To use the script named getinvdata.sh, please do the following:

  • Download the script file to the client computer, which should be a Unix, Linux or mac computer
  • Run the following command (or use an alternate method of your choice) to change to the Unix line endings: perl -p -e ’s/\r$//’ < getinvdata.sh.txt > getinvdata.sh
  • Run the following command to make the script executable: chmod 755 getinvdata.sh
  • Run the script: ./getinvdata.sh
  • Gather the output file, which is hard-coded to be: /tmp/syminvdata.out.

Attachments

getinvdata.sh.txt get_app