Using Insight Diagnostics Commands

Command Line Options

Switch Description
-l LanguageCode Options are: en, fr, it, de, es, and ja. The default is en.
-v [Level] Verbosity of output where Level is an integer between 1 and 5. Level 1 is the most filtered level, 5 is the most verbose. The default value is set to 5
-s "mmhhddMMDD" Schedule automatic execution of Insight Diagnostics. mm=minute (0-59), hh=hour (0-23), dd=day (1-31), MM=month (1-12), DD=Day of Week (0-6). All fields must be two digits ( 02 instead of 2). Use a single * for don't care fields.

NOTE: If you use * you must quote the date/time value ( -s "0023***"). If no * are used the quotes are optional.
NOTE: All other command-line options specified will apply to the scheduled execution. This means Insight Diagnostics may be scheduled to run in a variety of ways.
-u Remove scheduled automatic execution of Insight Diagnostics.
-c FILE1 [FILE2] Compare a survey file to the current configuration. Or, if two files are specified, compare the files.
-t Output to the terminal.

NOTE: -t and -o cannot be used together
-p Specify output file format as plain text, instead of XML.

NOTE: This only applies to Survey captures and comparisons. The default is XML format.
-o FILE Output to a file. Default is formed using the current date in this format: surveyCCYY-MM-DD-HH-mm-ss.xml (CC=Century,YY=Year, MM=Month, DD=Day, HH=Hour, mm=minute, ss=second).

If a survey compare is being performed the default filename is the same as above except "surveycompareCCYY-....".

NOTE: -t and -o cannot be used together
-f Overwrite the output file if it already exists.

NOTE: If no -o option is specified this option is ignored.
-a Append the output file if it already exists.

NOTE: If no -o option is specified this option is ignored.
The -a option may only be used with plain text (-p).
This is because appending to XML files would result in XML parsing errors.
-rd Run a diagnosis of all diagnosable devices.

NOTE: Results are posted to the Diagnosis Log (diagnosislog.xml).
-? , -h Display help

HP Insight Diagnostics Commands for Linux

To use the command line switches in Linux:

  1. If necessary, open a Terminal window.
  2. Change to the /opt/hp/hpdiags directory.
  3. Issue the hpdiags command with the desired switch. Examples:
    # ./hpdiags -t
    This example will perform a survey capture and output the resulting XML to the terminal.

    # ./hpdiags -s "0005**01" -c surveybase.xml -p -o /mnt/remoteserver/surveycompare.txt
    This example will schedule Insight Diagnostics to compare the original Survey configuration file to the current configuration after performing a fresh Survey capture, running every Monday at 5:00 AM, saving the result to the specified remote file in plain-text format.
  4. Alternate method: # /opt/hp/hpdiags/hpdiags -t

Performing other tasks in Linux: