
115
NOTE:
•
An entry cannot be created if the value of the specified sampling interval (
interval
sampling-interval) is
identical to that of the existing history entry on the same interface.
•
You can create up to 1000 history entries for the switch.
Related commands:
display rmon history
.
Examples
# Create RMON history control entry 1 for interface GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] rmon history 1 buckets 10 interval 5 owner user1
rmon prialarm
Syntax
rmon prialarm
entry-number prialarm-formula prialarm-des sampling-interval
{
absolute
|
changeratio
|
delta
}
rising-threshold
threshold-value1 event-entry1
falling-threshold
threshold-value2 event-entry2
entrytype
{
forever
|
cycle
cycle-period
} [
owner
text
]
undo rmon prialarm
entry
-
number
View
System view
Default level
2: System level
Parameters
entry
-
number
: Specifies the index of a private alarm entry, which ranges from 1 to 65535.
prialarm-formula
: Specifies the private alarm variable formula, a string of 1 to 256 characters. The
variables in the formula must be represented in OID format that starts with a point “.”, the formula
(.1.3.6.1.2.1.2.1.10.1)*8 for example. You can customize the formula and perform the basic operations of
addition, subtraction, multiplication, and division on these variables. The operations should yield a long
integer. To prevent errors, make sure that the result of each calculating step falls into the value range for
long integers.
prialarm-des
: Specifies the private alarm entry description, a string of 1 to 127 characters.
sampling
-
interval
: Specifies the sampling interval, which ranges from 10 to 65,535 seconds.
absolute
|
changeratio
|
delta
: Sets the sampling type to absolute, delta, or change ratio. Absolute
sampling is to obtain the value of the variable when the sampling time is reached. Delta sampling is to
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
threshold-value1
represents the rising threshold, in the range –2,147,483,648 to +2,147,483,647, and
event-entry1
represents the index of the event triggered when the rising threshold is reached.
event-entry1
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.