Generating Vital Data from an Interface
You can monitor the statistics of interface ge-0/0/0 by first obtaining the SNMP ifIndex from the interface.
user@host> show interfaces ge-0/0/0
Physical interface: ge-0/0/0, Enabled, Physical link is Up Interface index: 134, SNMP ifIndex: 509
In this output, the 509 value is the index of ge-0/0/0 in the interface MIB table. By combining this index value with the interface MIB tables, the vital data of the interface can be periodically collected.
For example, combine the 509 index with the ifInErrors interface MIB table to collect the In-Error data of interface ge-0/0/0 by using the following command:
[edit]
user@host# set system log-vital add ifInErrors.509 comment “In-Err of ge-0/0/0”
The output for the command is:
=========== In-Err of ge-0/0/0 100 ===========
The following interface MIB tables can be used to collect vital data:
- ifInOctets
- ifInUcastPkts
- ifInNUcastPkts
- ifInDiscards
- ifInErrors
- ifInUnknownProtos
- ifOutOctets
- ifOutUcastPkts
- ifOutNUcastPkts
- ifOutDiscards
- ifOutErrors