HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 103

falling-threshold, owner, rmon alarm, undo rmon alarm, rmon event, rmon statistics, rmon history

Page 103 highlights

falling-threshold threshold-value2 event-entry2: Sets the falling threshold, where the threshold-value2 argument represents the falling threshold, in the range -2147483648 to +2147483647 and the event-entry2 argument represents the index of the event triggered when the falling threshold is reached. event-entry2 ranges from 1 to 65535. If 0 is specified, the alarm does not trigger any event. owner text: Specifies the owner of the entry, a case-sensitive string of 1 to 127 characters that can contain spaces. Description Use rmon alarm to create an entry in the RMON alarm table. Use undo rmon alarm to remove an entry from the RMON alarm table. You can create up to 60 alarm entries. To make sure an alarm entry can take effect: • Before creating an alarm entry, use the rmon event command to define the events to be referenced. Otherwise, the alarm entry cannot trigger events, even if it can be created. • If the alarm variable is an instance of the leaf node of the Ethernet statistics table etherStatsEntry with the OID of 1.3.6.1.2.1.16.1.1.1, use the rmon statistics command to create a statistics entry on the monitored Ethernet interface. If the alarm variable is an instance of the leaf node of the history record table etherHistoryEntry with the OID of 1.3.6.1.2.1.16.2.2.1, use the rmon history command to create a history entry on the monitored Ethernet interface. Otherwise, the alarm entry cannot trigger events, even if it can be created. • Make sure the alarm entry has different alarm variable (alarm-variable), sampling interval (sampling-interval), sampling type (absolute or delta), rising threshold (threshold-value1) and falling threshold (threshold-value2) than any existing alarm entry in the system. When the alarm condition in an alarm entry occurs, its associated event is triggered to handle the alarm. The system regularly samples the monitored alarm variables, compares the sampled values with the predefined thresholds, and does the following: • If the rising threshold is reached, triggers the event specified by the event-entry1 argument. • If the falling threshold is reached, triggers the event specified by the event-entry2 argument. Related commands: display rmon alarm, rmon event, rmon history, and rmon statistics. Examples # Add entry 1 in the alarm table and sample the node 1.3.6.1.2.1.16.1.1.1.4.1 at a sampling interval of 10 seconds in absolute sampling type. Trigger event 1 when the sampled value is greater than or equal to the rising threshold of 5000, and event 2 when the sampled value is less than or equal to the falling threshold of 5. Set the owner of the entry to be user1. system-view [Sysname] rmon event 1 log [Sysname] rmon event 2 none [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] rmon statistics 1 [Sysname-GigabitEthernet1/0/1] quit [Sysname] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.4.1 10 absolute rising-threshold 5000 1 falling-threshold 5 2 owner user1 1.3.6.1.2.1.16.1.1.1.4 is the OID of the leaf node etherStatsOctets. It represents the statistics of the received packets on the interface, in bytes. In the above example, you can use etherStatsOctets.1 to replace the parameter 1.3.6.1.2.1.16.1.1.1.4.1, where 1 indicates the serial number of the interface statistics entry. 97

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

97
falling-threshold
threshold
-
value2 event
-
entry2
: Sets the falling threshold, where the
threshold
-
value2
argument
represents the falling threshold, in the range –2147483648 to +2147483647 and the
event
-
entry2
argument
represents the index of the event triggered when the falling threshold is reached.
event
-
entry2
ranges from 1 to 65535. If 0 is specified, the alarm does not trigger any event.
owner
text
: Specifies the owner of the entry, a case-sensitive string of 1 to 127 characters that can contain
spaces.
Description
Use
rmon alarm
to create an entry in the RMON alarm table.
Use
undo rmon alarm
to remove an entry from the RMON alarm table.
You can create up to 60 alarm entries.
To make sure an alarm entry can take effect:
Before creating an alarm entry, use the
rmon event
command to define the events to be referenced.
Otherwise, the alarm entry cannot trigger events, even if it can be created.
If the alarm variable is an instance of the leaf node of the Ethernet statistics table etherStatsEntry
with the OID of 1.3.6.1.2.1.16.1.1.1, use the
rmon statistics
command to create a statistics entry on the
monitored Ethernet interface. If the alarm variable is an instance of the leaf node of the history
record table etherHistoryEntry with the OID of 1.3.6.1.2.1.16.2.2.1, use the
rmon history
command
to create a history entry on the monitored Ethernet interface. Otherwise, the alarm entry cannot
trigger events, even if it can be created.
Make sure the alarm entry has different alarm variable (
alarm-variable
), sampling interval
(
sampling-interval
), sampling type (
absolute
or
delta
), rising threshold (
threshold-value1
) and
falling threshold (
threshold-value2
) than any existing alarm entry in the system.
When the alarm condition in an alarm entry occurs, its associated event is triggered to handle the alarm.
The system regularly samples the monitored alarm variables, compares the sampled values with the
predefined thresholds, and does the following:
If the rising threshold is reached, triggers the event specified by the
event
-
entry1
argument.
If the falling threshold is reached, triggers the event specified by the
event
-
entry2
argument.
Related commands:
display rmon alarm
,
rmon
event
,
rmon history
, and
rmon statistics
.
Examples
# Add entry 1 in the alarm table and sample the node 1.3.6.1.2.1.16.1.1.1.4.1 at a sampling interval of 10
seconds in absolute sampling type. Trigger event 1 when the sampled value is greater than or equal to
the rising threshold of 5000, and event 2 when the sampled value is less than or equal to the falling
threshold of 5. Set the owner of the entry to be
user1
.
<Sysname> system-view
[Sysname] rmon event 1 log
[Sysname] rmon event 2 none
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] rmon statistics 1
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.4.1 10 absolute rising-threshold 5000 1
falling-threshold 5 2 owner user1
1.3.6.1.2.1.16.1.1.1.4 is the OID of the leaf node etherStatsOctets. It represents the statistics of the received
packets on the interface, in bytes. In the above example, you can use etherStatsOctets.1 to replace the
parameter 1.3.6.1.2.1.16.1.1.1.4.1, where 1 indicates the serial number of the interface statistics entry.