User guide

20-69
Using OpenVera Assertions
Setting and Retrieving Category and Severity Attributes
You can use the following system tasks to set the category and
severity attributes of assertions:
$ova_set_severity("assertion_full_hier_name",
severity)
Sets the severity level attributes of an assertion. The severity level
is an unsigned integer from 0 to 255.
$ova_set_category("assertion_full_hier_name",
category)
Sets the category level attributes of an assertion. The category
level is an unsigned integer from 0 to 2
24
- 1.
You can use the following system functions to retrieve the category
and severity attributes of assertions:
$ova_get_severity("assertion_full_hier_name")
Returns unsigned integer.
$ova_get_category("assertion_full_hier_name")
Returns unsigned integer.
After specifying these system tasks and functions, you can start or
stop the monitoring of assertions based upon their specified category
or severity. For details on starting and stopping assertions based on
their category specification, see Category and Severity-Based
Monitoring on page 15-40. For details on starting and stopping
assertions based on their severity specification, see “Starting and
Stopping the Monitoring of Assertions” on page 20-70.