Mac Management Group

 View Only

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

Aug 15, 2014 11:21 AM

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 appropriateoptions set in the main window and the advanced window tabs.

5. Run the attached shell script, getinvdata.sh, to automatatically 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: HOWTO32547. 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 followingfilestoSymantec 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: 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.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Oct 02, 2014 05:52 PM

Funny, I dug and dug and found those a little while ago. Thanks for the quick reply!!

 

 

Oct 02, 2014 05:28 PM

Not sure why the attachment isn't there. Please see either of these kb articles which do have the link. 

http://www.symantec.com/docs/HOWTO35960

http://www.symantec.com/docs/HOWTO36035

 

Also, here's the text of the script: 

# bash available on linux, darwin, sunos and aix; it is not available on hp-ux
 
### this script requires sudo or root priviliges
### run with sh or another appropriate shell
 
# cd to the correct directory for running individual shell scripts.
cd /opt/altiris/notification/inventory/var/repo/providers/CltInv_Common/aex-shellprovider/scripts
#
# remove temp file that will contain output data
outfile="/tmp/syminvdata.out"
if [ -e $outfile ]; then
  rm $outfile
fi
 
# find the current OS
#
# Test for OS/Platform. Case-sensitive values used in script names are: AIX, Darwin, HPUX, Linux, Solaris.
CurOS=`uname -s`
#if [ "$CurOS" = "Linux" ]; then
#  filemask="*$CurOS*.sh"
#fi
case "$CurOS" in
  Linux)  filemask="*Linux*.sh" ;;
  Darwin) filemask="*Darwin*.sh" ;;
  SunOS)  filemask="*Solaris*.sh" ;;
  HP-UX)  filemask="*HPUX*.sh" ;;
  AIX)    filemask="*AIX*.sh" ;;
esac
 
# loop thru specific list of directories; run each shell script for appropriate OS
# redirect shell script output to the outfile
#
for dir in CltInv_HW CltInv_OS CltInv_SW CltInv_UG SrvInv_DB  SrvInv_OS  SrvInv_VM  SrvInv_WEB
do
  for file in $dir/$filemask
  do
    echo "Processing script: $file"
    echo "Processing script: $file" >> $outfile
    ./$file >> $outfile 2>&1
    echo >> $outfile
    echo >> $outfile
  done
done

 

 

Oct 02, 2014 04:15 PM

This article says download the attached getinvdata.sh script. I havent been able to find where it is attached.

Please provide a link. (or show me the one I am missing)

Related Entries and Links

No Related Resource entered.