sample (event trigger)
To specify the type of object sampling to use for an event, use the sample command in event trigger configuration mode. To disable teh configured settings, use the no form of this command.
sample {absolute | delta | changed}
no sample {absolute | delta | changed}
Syntax Description
absolute |
Uses the present value of the MIB object while sampling. |
delta |
Uses the difference between the present value and the previous value sampled at the previous interval for sampling. |
changed |
Uses the Boolean condition to check if the present value is different from the previous value. |
Command Default
The default sampling method is absolute.
Command Modes
Event trigger configuration (config-event-trigger)
Command History
Release |
Modification |
---|---|
12.4(20)T |
This command was introduced. |
12.2(33)SRE |
This command was integrated into Cisco IOS Release 12.2(33)SRE. |
Usage Guidelines
The sample command enables the specified sampling method for the object. You can specify the following sampling methods.
-
Absolute
-
Delta
-
Changed
Absolute sampling uses the value of the MIB object during sampling. The default sampling method is absolute.
Delta sampling uses the last sampling value maintained in the application. This method requires applications to do continuous sampling.
The changed sampling method uses the changed value of the object since the last sample.
Examples
The following example shows how to specify the sampling method as absolute:
Router(config)# snmp mib event trigger owner owner1 name triggerA
Router(config-event-trigger)# sample absolute