Defining an Alarm for an SNMP Monitor That Compares Object Values (SRC CLI)
You can configure a monitor to compare a sample value to a specified value or range of values by using one of the following types of comparisons:
- equal
- unequal
- less
- less-or-equal
- greater
- greater-or-equal
![]() |
Note: Configure only one monitor test at a time. |
Before you define an alarm type, configure the associated SNMP alarm.
See Configuring an SNMP Alarm on a C-series Controller (SRC CLI).
To configure a monitor to compare a sample to a specified value or range of values:
- From configuration mode, access the configuration statements
that configure SNMP monitoring for a boolean test. For example:
- [edit]
- user@host# edit snmp monitor alarm saeHeapUsage boolean-test
where saeHeapUsage is the name of the alarm.
- Specify the type of boolean test. For example:
- [edit snmp monitor alarm saeHeapUsage boolean-test]
- user@host# set comparison greater
- Define the value that the test uses. For example:
- [edit snmp monitor saeHeapUsage boolean-test]
- user@host# value 14000000

