beautypg.com

Using hp insight diagnostics commands in linux – HP Insight Diagnostics Software User Manual

Page 12

background image

Table 1 Optional command line parameters (continued)

Description

Parameter

This command adds an entry to your crontab for Linux-based systems, or to the
Windows Scheduled Tasks list for Windows-based systems. For more information on
crontab, enter man crontab at a Linux command prompt.

Remove scheduled automatic execution of Insight Diagnostics.

–u

This command removes all entries that refer to HP Insight Diagnostics in your crontab.
For a Windows system, this command removes the entries in the Windows Scheduled
Tasks list.

Compare a file to the current output, or if two files are specified, compare the files
without generating a new report.

-c

Run a new HP Survey Utility snapshot and output to the terminal.

-t

This option is ignored if -o is specified.

HP Survey Utility captures and comparisons can be to a file as plain text. The default
is XML format.

-p

Run a new HP Survey Utility snapshot and output to a file. The 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, and ss=second).

—o

-t

and -o cannot be used together.

Overwrite the output file if it already exists.

-f

If the -o parameter is not specified this option is ignored.

Append the output to an existing output file.

-a

If no -o option is specified, this option is ignored. To avoid XML parsing errors, use
this option with the plain text (-p).

Run a diagnosis of all diagnosable devices. The test results are posted to the Diagnosis
Log (diagnosislog.xml).

–rd

Display help.

-? , -h

Using HP Insight Diagnostics commands in Linux

To use the command line switches in Linux:
1.

Open a terminal window if necessary.

2.

Change to the /opt/hp/hpdiags directory.

3.

Enter the command with the preferred switch.

12

Getting started