Using Insight Diagnostics Commands

Command Line Options

To use the command line parameters, change directories to /usr/share/diagnostics.

./hpdiags [command line parameter]

The optional command line parameters are listed in the following table:

-lLanguageCode

Options are: en, fr, it, de, sp, 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 3

-s "mmhhddMMDD"

Schedule automatic execution. 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: This command simply adds an entry to your crontab. For more Information on crontab type 'man crontab'.

-u

Unschedule of Insight Diagnostics running.

NOTE: This command will remove all entries in your crontab that refer to Insight Diagnostics.

-c FILE1 [FILE2]

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

-t

Output to the terminal.

NOTE: -t and -o cannot be used together

-o FILE

Specify name of the output 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).

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.

-r [q|c]

Runs an unattended quick or complete test.

-w

Starts the Insight Diagnostics Web Management service. This is necessary in order to browse to the Insight Diagnostics.

-k

Kills the Insight Diagnostics Web Management service.

-? , -h

Display help

 

Controlling Insight Diagnostics Online Service

The Insight Diagnostics service can be controlled with the following commands:

HP Insight Diagnostics Commands for Linux

These commands should be executed from the /etc/init.d directory, or the path should be included in the command.

/etc/init.d/hpdiags start

/etc/init.d/hpdiags stop

/etc/init.d/hpdiags status

cd /usr/share/diagnostics/
./hpdiags -?

Redhat Linux  and UnitedLinux
chkconfig --add hpdiags

SuSE Linux - specific
insserv -r /etc/init.d/hpdiags

HP Insight Diagnostics Commands for Windows

cd C:\compaq\hpdiags
hpdiags -w

cd C:\compaq\hpdiags
hpdiags -k

Use the Windows Service Manager and look for HP Insight Diagnostics to see if it is started.

cd C:\compaq\hpdiags
hpdiags -?

Use the Windows Service Manager and look for HP Insight Diagnostics. Check to see if it is set to automatic, this is the default mode of operation when the service is created using the -w command line.

Use the Windows Service Manager and look for HP Insight Diagnostics. Set it to disabled.