F3215-HP Load Balancing Module System Maintenance Command Reference-6PW101

98
obtain the variation value of the variable during the sampling interval when the sampling time is reached.
Change ratio sampling is not supported at present.
rising-threshold threshold-value1 event-entry1: Sets the rising threshold, where the threshold-value1
argument represents the rising threshold, in the range –2,147,483,648 to +2,147,483,647, and the
event-entry1 argument represents the index of the event triggered when the rising threshold is reached.
The event-entry1 argument ranges from 0 to 65,535, where 0 means no corresponding event is triggered
and no event action is taken when an alarm is triggered.
falling-threshold threshold-value2 event-entry2: Sets the falling threshold, where the threshold-value2
argument represents the falling threshold, in the range –2,147,483,648 to +2,147,483,647 and the
event-entry2 argument represents the index of the event triggered when the falling threshold is reached.
The event-entry2 argument ranges from 1 to 65,535.
forever: Indicates that the lifetime of the private alarm entry is infinite.
cycle cycle-period: Sets the lifetime period of the private alarm entry, in the range of 0 to 2147483647
seconds.
owner text: Specifies the entry owner, a case-sensitive string of 1 to 127 characters that can contain
spaces.
Usage guidelines
Before creating an alarm entry, use the rmon event command to define the events to be referenced in the
event table.
You cannot create an entry that has the same alarm variable formula (prialarm-formula), sampling type
(absolute changeratio or delta), rising threshold (threshold-value1), and falling threshold
(threshold-value2) as an existing private alarm entry.
You can create up to 50 private alarm entries.
The system handles private alarm entries as follows:
1. Samples the private alarm variables in the private alarm formula at the specified sampling interval.
2. Performs calculation on the sampled values with the formula.
3. Compares the calculation result with the predefined thresholds and does the following:
{ If the result is equal to or greater than the rising threshold, triggers the event specified by the
event-entry1 argument.
{ If the result is equal to or smaller than the falling threshold, triggers the event specified by the
event-entry2 argument.
Examples
# Monitor the ratio of the broadcast packets received on the interface by using the private alarm.
C a l c u l a t e t h e p r i v a t e a l a r m v a r i a b l e s w i t h t h e (1.3 . 6 .1. 2.1.16 .1.1.1.6.1 * 10 0 / .1.3. 6 .1. 2.1.16.1.1.1. 5.1) f o r m u l a
and sample the corresponding variables at 10-second intervals. (Broadcast packet ratio= total number of
broadcast packets received on the interface/total number of packets received on the interface. The
formula is user configurable.)
The rising threshold (80%) triggers event 1 to log the event. The falling threshold (5%) triggers event 2, but
the event defines neither log nor trap action.
Set the lifetime of the entry to forever and owner to user1.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none