220
addition, subtraction, multiplication, and division on these variables. To get a correct calculation
result, make sure the following conditions are met:
•
The values of the variables in the formula are positive integers.
•
The result of each calculating step is in the value range for long integers.
prialarm-des
: Configures an entry description, a case-sensitive string of 1 to 127 characters.
sampling
-
interval
: Sets the sampling interval in the range of 10 to 65535 seconds.
absolute
: Specifies absolute sampling. RMON compares the value of the variable with the rising and
falling thresholds at the end of the sampling interval.
delta
: Specifies delta sampling. RMON subtracts the value of the variable at the previous sample
from the current value, and then compares the difference with the rising and falling thresholds.
startup-alarm
: Specifies alarms that can be generated when the alarm entry becomes valid. If you
do not specify an alarm, RMON does the following:
•
Generates a rising alarm if the first sample crosses the rising threshold.
•
Generates a falling alarm if the first sample crosses the falling threshold.
rising
: Generates a rising alarm if the first sample after the entry becomes valid is greater than or
equal to the rising threshold.
falling
: Generates a falling alarm if the first sample after the entry becomes valid is less than or equal
to the rising threshold.
rising-falling
: Generates a rising alarm or falling alarm if the first sample after the entry becomes
valid crosses the rising threshold or falling threshold.
rising-threshold
threshold
-
value1
event
-
entry1
: Sets the rising threshold. The
threshold-value1
argument represents the rising threshold in the range of –2147483648 to +2147483647. The
event-entry1
argument represents the index of the event that is triggered when the rising threshold is
crossed. The value range for the
event-entry1
argument is 0 to 65535. If 0 is specified, the alarm
does not trigger any event.
falling-threshold
threshold
-
value2
event
-
entry2
: Sets the falling threshold. The
threshold
-
value2
argument represents the falling threshold in the range of –2147483648 to +2147483647. The
event
-
entry2
argument represents the index of the event that is triggered when the falling threshold
is crossed. The value range for the
event
-
entry2
argument
is 0 to 65535. If 0 is specified, the alarm
does not trigger any event.
forever
: Configures the entry as a permanent entry. RMON retains a permanent private alarm entry
until it is manually deleted.
cycle
cycle
-
period
: Sets the lifetime of the entry, in the range of 0 to 4294967 seconds. RMON
deletes the entry when its lifetime expires.
owner
text
: Specifies the entry owner, a case-sensitive string of 1 to 127 characters.
Usage guidelines
Before you can create RMON private alarm entries, you must enable the SNMP agent.
You can create a maximum of 50 private alarm entries.
Each alarm entry must have a unique alarm variable, sampling interval, sample type, rising threshold,
or falling threshold. You cannot create an alarm entry if all these parameters for the entry are the
same as an existing entry.
To trigger the event associated with an alarm condition, you must create the event with the
rmon
event
command.
The RMON agent samples variables and takes an alarm action based on a private alarm entry as
follows:
1.
Periodically samples the variables specified in the private alarm formula.
2.
Processes the sampled values with the formula.