To use the command line switches in Windows:
Open the Command Prompt window.
Change the directory path to
c:\hp\hpdiags
.Run the command
hpdiags
with the required switch as shown in the following examples:C:\hp\hpdiags> hpdiags -t
This command 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 command schedules Insight Diagnostics to compare the original Survey configuration file to the current configuration after performing a fresh Survey capture, which runs every Monday at 5:00 AM, and saves the result to the specified remote file in a plain-text format.
C:\hp\hpdiags> hpdiags -s "0005**01" -c surveybase.xml -p -o \\myserver\myshare\surveycompare.txt
This command schedules Insight Diagnostics to compare the original Survey configuration file to the current configuration after performing a fresh Survey capture, which runs every Monday at 5:00 AM, and saves the result to the specified remote file in a plain-text format.
You can use the following alternate method:
# /opt/hp/hpdiags/hpdiags -t
.