Confige RMON Directory
This chapter explains how to configure rMon on router.
Configure rMon Warning on a router
Configure rMon Event on a router
Configure rMon Statistics on a router
Configure rMon History on a router
Display rMon configuration of a router
Configure rMon Warning on a router
Users may
configure rMon with command line or SNMP network management. If you want to
make configurations with SNMP network management, you have to configure SNMP to
the router in advance. After finishing the warning configuration, the device
can monitor some statistics. To configure rMon Warning, follow the steps below:
Step |
Command |
Function |
1. |
configure |
Enter Global Configuration Mode |
2. |
rmon alarm index variable interval {absolute | delta} rising-threshold
value [eventnumber] falling-threshold value [eventnumber] [owner string] |
To add an rMon Warning item ·
“index” ranges from 1 to
65535, which is the item index ·
“variable” is an MIB object,
which is under monitored. A variable must be a valid MIB object and only 2
types of MIB objects, “INTEGER.Counter.Gauge” or “TimeTicks”, can be inspected ·
“interval” is the
intermission for sampling (in seconds) with available value from 1 to
4294967295 ·
Use “absolute” to inspect the value obtained by MIB
objects, and use “delta” to inspect the
variations between values ·
“value” is a “threshold value” for alerting a warning, and the
corresponding “eventnumber” (optional) is the event index when the threshold value is reached ·
An “owner string” is the
descriptive information of the warning |
3. |
exit |
Back to Supervisor Mode |
4 . |
write |
Save the configurations |
After finishing one warning item, the device will obtain the “oid” specified by “variable” every “interval second”. System will make comparison between the obtained value and the previous one according to the type of warning (absolute or delta). If the obtained value is higher than the previous value and higher than the “threshold value” specified by “rising-threshold”, an event with an index as “eventnumber” will be launched. (No event will be launched if the value of “eventnumber” is zero or there is no event that has “eventnumber” as its index.) The above situation happens in descending values as well. If the “oid” specified by “variable”, this warning item status will be set to “invalid”. If users configure the Warning item of the same index with “alarmcommand” more than once, only the latest parameter is valid. Please use “no rmon alarm indexcommanddelete” as the warning item for “index”.
Configure rMon Event on a router
To
configure the rMon Event, follow the steps below:
step |
command |
function |
1. |
configure |
Enter Global Configuration Mode |
2. |
rmon event index [description string] [log] [owner string] [trap
community] |
To add a rMon Event item ·
“index” ranges from 1 to
65535, which is the item index ·
“description” is
descriptive information for the event ·
“log” will add a piece of
information in log table when the event is launched. ·
“trap” means when an event
is launched, a trap also takes place; “community” is the name of the group ·
An “owner string” is the
descriptive information of the event |
3. |
exit |
Back to Supervisor Mode |
4. |
write |
Save the configurations |
After configuring an rMon event, when an rMon warning is launched, replace “eventLastTimeSent” with “sysUpTime” in this event table. If the event has been configured a long attribute, add a piece of information in the log table. If a “trap” attribute is configured, launch a trap with “community”. If users configure the same Event item of the same index with “rmon eventcommand” more than once, only the latest parameter is valid. Use “no rmon event indexcommanddelete” as an event item index.
Configure rMon Statistics on a router
rMon
Statistics is used for inspecting statistics obtained from each device. To
configure rMon Statistics, follow the steps:
step |
command |
function |
1. |
configure |
Enter Global Configuration Mode |
2. |
interface iftype ifid |
To enter Interface Configuration Mode ·
iftype is a type of
interface ·
ifid is an interface id |
3. |
rmon collection stat index [owner
string] |
To enable Statistics on the interface ·
“index” is the statistics
item index ·
An “owner string” is the descriptive information of the
statistic |
4. |
exit |
Back to Global Configuration Mode |
5. |
exit |
Back to Supervisor Mode |
6. |
write |
Save the configurations |
If users configure the Event item of the same index with “rmon collection statcommand” more than once, only the latest parameter is valid. Use “no rmon collection stats indexcommanddelete” as a statistics item index.
rMon History is used for collecting
statistics from one interface in different time period. To configure rMon
History, follow the steps:
step |
command |
function |
1. |
configure |
enter global configuration mode |
2. |
interface iftype ifid |
enter interface configuration mode ·
iftype is the type of
interface ·
ifid is the id of interface |
3. |
rmon collection history index
[buckets bucket-number] [interval second] [owner owner-name] |
To enable Statistics on the interface. ·
“index” is the history item
index ·
Keep the latest “bucket-number” item in the collected history
record. Users may visit Ethernet History Record to obtain the statistics.
Default number of records is 50. ·
“second” is the interval
between obtaining statistics. Default value is 1800 seconds (30 minutes) ·
An “owner string” is the
descriptive information of the History table. |
4. |
exit |
Back to Global Configuration Mode |
5. |
exit |
Back to Supervisor Mode |
6. |
write |
Save configuration |
After adding one History item, the device will obtain the statistics from the specified interface every specified seconds according to “second” and add the result to Ethernet History Record as an item. If users configure the “History” item of the same index with “rmon collection history indexcommand” more than once, only the latest parameter is valid. Notice that if you use “no rmon history indexcommanddelete” as History item index, a great “bucket-number” and short “interval second” will occupy too much system resource.
Display rMon configuration of a router with “showcommand”
command |
function |
show rmon [alarm] [event] [statistics] [history] |
To display rMon configuration information ·
“alarm” is the Warning item
configuration ·
“event” is Event item
configuration. Log items resulted from launching an event are also displayed. ·
“statistics” is that when
Statistics item configuration is displayed, statistics collected from the
interface are also diaplayed. ·
“history” represents that
when a History item configuration is displayed, statistics collected between
the intervals are also displayed. |