cprop_healthtest.1 (2011 09)

cprop_healthtest(1) cprop_healthtest(1)
-cleartestlog -d
component_name
:HashId -a
Clears the log of all the tests performed on the component’s specific instance except for any
that are currently running. The instance is denoted by the hash ID.
-cleartestlog -d
component_name
:HashId -t test
Clears the log of the mentioned test performed on the component’s specific instance except for
any that are currently running. The instance is denoted by the hash ID.
-version
Displays the version of the cprop command.
-help
Provides usage information for the
cprop command.
EXAMPLES
Run the basic test for the
Memory component:
/opt/propplus/bin/cprop -runtest -c Memory
Run a configurable HP:MempkgDiag test for the
Memory component:
/opt/propplus/bin/cprop -runtest -c Memory -t HP:MempkgDiag -loop 2
-error 3 -timer 3 -log 1 -stress 1
Display the results of all basic tests for the Processors component:
/opt/propplus/bin/cprop -viewtest -c Processors
Clear the log of basic test results on the device that is denoted by Processors:1919477241
,except
for any that are currently running.
/opt/propplus/bin/cprop -cleartestlog -d Processors:1919477241
Script shell to run the basic test and display test results for components whose status is "Normal":
#!/bin/sh
CPROP=/opt/propplus/bin/cprop
TMP_FILE=/tmp/test_cprop.tmp$$
${CPROP} list | grep Normal| awk -F"|" ’{print $2}’ > ${TMP_FILE}
while read line
do
${CPROP} -runtest -c "${line}" > ${TMP_FILE}
${CPROP} viewtest -c "${line}"
done < ${TMP_FILE}
Script shell to run configurable health tests for the default test on components whose status is "Normal":
#!/bin/sh
CPROP=/opt/propplus/bin/cprop
TMP_FILE=/tmp/test_cprop.tmp$$
${CPROP} -list | grep Normal| awk -F"|" ’{print $2}’ > ${TMP_FILE}
while read line
do
testname=‘${CPROP} -listtest -c "${line}" |
grep "Test Name"| awk -F"]: " ’{print $2}’‘
#echo "$testname"
if [ -z "$testname" ]; then
echo "testname is null."
continue
fi
${CPROP} -runtest -c "${line}" -t $testname -loop 2 -error 3
-timer 5 -log 2 > ${TMP_FILE}
${CPROP} -viewtest -c "${line}"
done < ${TMP_FILE}
AUTHOR
healthtest was developed by HP.
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2011