Collecting diagnostic file from CLI using diagnostic.sh
search cancel

Collecting diagnostic file from CLI using diagnostic.sh

book

Article ID: 304642

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Broadcom Technical Support team will often request diagnostics for the environment to troubleshoot various issues. The Diagnostic file will include logs and configuration files that will provide insight in to the configuration and operation of the environment.

Environment

Watch4net/MnR - 7.x

Resolution

The APG-DiagnosticFiles that gets generated tends to be fairly large. If Broadcom Support has requested these, please attach the files to your Service Request opened on https://supportftp.broadcom.com/<SITE ID>/<CASE ID>/
 

To collect diagnostic, run the following command: 

<APG_Base>/bin/diagnostic.sh

This will create the file DiagnosticFiles.tar.gz within the /tmp directory by default.


If unable to save the diagnostics file to the tmp directory due to lack of disk space, you can change the destination by doing the following: 

  • Log into the host in question.
  • Edit <APG_Base>/Tools/APG-Diagnostic-Tools/Default/bin/diagnostics.sh
  • Look for the entry in the file TARFILE="/tmp/DiagnosticFiles.tar"
  • Replace the tmp directory with the directory location you wish to save the DiagnosticFiles.tar
  • Rerun the script <APG_Base>/bin/diagnostic.sh and the DiagnosticFiles.tar will be placed in the new location when it completes.