217
comparison
Use comparison to specify a Boolean comparison type for the sampled value and the reference
value.
Use undo comparison to restore the default.
Syntax
comparison { equal | greater | greaterorequal | less | lessorequal | unequal }
undo comparison
Default
The Boolean comparison type is unequal.
Views
Trigger-Boolean view
Predefined user roles
network-admin
Parameters
equal: Specifies the Boolean comparison type as equal. When the sampled value equals the
reference value, the trigger condition is met.
greater: Specifies the Boolean comparison type as greater than. When the sampled value is greater
than the reference value, the trigger condition is met.
greaterorequal: Specifies the Boolean comparison type as greater than or equal to. When the
sampled value is greater than or equal to the reference value, the trigger condition is met.
less: Specifies the Boolean comparison type as smaller than. When the sampled value is smaller
than the reference value, the trigger condition is met.
lessorequal: Specifies the Boolean comparison type as smaller than or equal to. When the sampled
value is smaller than or equal to the reference value, the trigger condition is met.
unequal: Specifies the Boolean comparison type as unequal. When the sampled value is unequal to
the reference value, the trigger condition is met.
Usage guidelines
If the sampled value meets the trigger condition at two or more samplings in succession, an event is
triggered only at the first sampling.
For an event to be triggered at the first sampling, execute the startup enable command.
Examples
# Specify the Boolean comparison type as unequal.
<Sysname> system-view
[Sysname] snmp mib event trigger owner owner1 name triggerA
[Sysname-trigger-owner1-triggerA] test boolean
[Sysname-trigger-owner1-triggerA-boolean] comparison unequal
Related commands
snmp mib event trigger
test