cprop_healthtest(1)cprop_healthtest(1)NAME
cprop: cprop_healthtest - perform health tests on targeted devices
SYNOPSIS
command [option]
Remarks
These health test options to the command are enabled for devices that
have a associated with them. See cprop(1) for a description of without
the feature.
DESCRIPTION
The feature provides additional options to perform health tests on cer‐
tain devices.
A device is one of the instances of a component. Therefore, specifying
a component denotes the device instances of the component.HashId iden‐
tifies an instance of device and can be listed by -summary command.
Health tests are only associated with some components. Use the command
to see if a health test is associated with a particular component.
Command Options
Displays the basic test available for all of the instances of all
of the components and the list of instances that the basic test
supports.
Displays all the tests available for all the instances of all
the components and the list of instances that the tests support.
Displays the basic test available for all the instances of the speci‐
fied
component.
Displays all the tests available for all the instances of the specified
component.
Displays the basic test available for the component's specific instance
which is denoted by the hash ID.
Displays all the tests available for the component's specific instance
which is denoted by the hash ID.
The command is used to perform the available on the system.
By default the runtest command waits until the invoked tests are com‐
pleted. With the option,the runtest command quits immediately after
invoking the requested test and the test will be executed in the back‐
ground.
Each invoked test will result in a jobID which identifies a unique
invoked test.
Runs the basic test on all the instances of all of the supported
components.
Runs all the tests on all the instances of all the supported
components.
Runs the basic test on all the instances of the specified component.
Runs all the tests on all the instances of the specified component
Runs the specified configurable test on all the instances of the
component, where:
specifies the component,
specifies the test; for example:
If the options, such as and are not specified, the basic test
runs on all the instances of the specified component with
default settings.
The options function as follows:
specifies how many times the health test must be executed, 1 by
default
specifies the number of errors permitted before the test is ter‐
minated, 0 by default
specifies how long the test must be executed before it is termi‐
nated, 0 by default
specifies the severity of errors that must be logged; as fol‐
lows:
0 error only
1 errors and warnings (default)
2 errors, warnings and information.
specifies the level of impact on system, as follows:
0 minimum
1 medium (default)
2 maximum.
Runs the basic test on the component's specific instance which
is denoted by the hash ID.
Runs all the tests on the component's specific instance which
is denoted by the hash ID.
Runs the configurable test on the component's specific instance,
which is denoted by the hash ID, where:
specifies the instance of the component, such as:
specifies the test.
If the options such as and are not specified, the basic test
runs on the specified instance with default settings.
The options function as follows:
specifies how many times the health test must be executed, 1 by
default
specifies the number of errors permitted before the test is ter‐
minated,0 by default
specifies how long the test must be executed before it is termi‐
nated, 0 by default
specifies the severity of errors that must be logged, as fol‐
lows:
0 error only
1 errors and warnings (default)
2 errors, warnings and information.
specifies the level of impact on system, as follows:
0 minimum
1 medium (default)
2 maximum.
Displays the results of the basic test performed on all the instances
of
all the supported components.
Displays the results of all the tests performed on all the instances of
all the supported components.
Displays the test results of the specified job ID.
Displays the results of the basic test performed on all the instances
of the specified component.
Displays the results of all the tests performed on all the instances
of the specified component.
Displays the results of the specified
test performed on all the instances of the specified component.
Displays the results of the basic test performed on the component's
specific instance which is denoted by the hash ID.
Displays the results of all the tests performed on the component's spe‐
cific
instance which is denoted by the hash ID.
Displays the results of the specified
test performed on the component's specific instance which is
denoted by the hash ID.
Aborts the test with the specified job ID.
Views the test log of the specified job ID.
Clears the log of the basic test performed on all the instances of
all the supported components except for any that are currently
running.
Clears the log of all the tests performed on all the instances of
all the supported components except for any that are currently
running.
Clears the log of the basic test performed on all the instances of the
specified component except for any that are currently running.
Clears the log of all the tests performed on all the instances of the
specified component except for any that are currently running.
Clears the log of the specified
test performed on all the instances of the specified component
except for any that are currently running.
Clears the log of the basic test performed on a component's specific
instance except for any that are currently running. The
instance is denoted by the hash ID.
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.
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.
Displays the version of the
command.
Provides usage information for the
command.
EXAMPLES
Run the basic test for the component:
Run a configurable HP:MempkgDiag test for the component:
Display the results of all basic tests for the component:
Clear the log of basic test results on the device that is denoted by
except for any that are currently running.
Script shell to run the basic test and display test results for compo‐
nents 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
was developed by HP.
SEE ALSOcprop(1).
cprop_healthtest(1)