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 |
The Insight Diagnostics service can be controlled with the following commands:
start—starts the service
stop—stops the service
restart—restarts the service
status—reports the status of the service, running or not running.
These commands should be executed from the /etc/init.d directory, or the path should be included in the command.
Run diagnostics service:
/etc/init.d/hpdiags start
Stop diagnostics service:
/etc/init.d/hpdiags stop
Check if diagnostics service is running:
/etc/init.d/hpdiags status
To see other command line options:
cd /usr/share/diagnostics/
./hpdiags -?
Automatically start diagnostics service on reboot:
Redhat Linux and
UnitedLinux
chkconfig --add hpdiags
SuSE Linux - specific
insserv -r /etc/init.d/hpdiags
Run diagnostics service:
cd C:\compaq\hpdiags
hpdiags -w
Stop diagnostics service:
cd C:\compaq\hpdiags
hpdiags -k
Check if diagnostics service is running:
Use the Windows Service Manager and look for HP Insight Diagnostics to see if it is started.
To see other command line options:
cd C:\compaq\hpdiags
hpdiags -?
Automatically start diagnostics service on reboot:
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.
Disable diagnostics during reboot:
Use the Windows Service Manager and look for HP Insight Diagnostics. Set it to disabled.