Image RemovedImage Added
Finding the OID:
1- search for the SNMPcounter "ifOutUcastPkts"
2- use the cli command: "show mib get "+ "| display xml "
https://apps.juniper.net/mib-explorer/
Image Added
https://apps.juniper.net/mib-explorer/search.jsp#object=ifOutUcastPkts&product=Junos%20OS&release=17.2R1
...
https://www.manageengine.com/products/mibbrowser-free-tool/
Q-BRIDGE-MIB refers only to internal VLAN indexes,
you need to use both MIBs to get Port/VLAN mappings including the 802.1Q VLAN tag ID (jnxExVlanTag).
1- define the Interface SNMP Index ( show interface ...)
2- snmp mib get + oid name or oid number + if ID ( from show interface ... )
{master:0}
readonly@EX4300-Client-1-Active> show snmp mib walk 1.3.6.1.2.1.17.1.4
Code Block |
---|
| root@EX4300-1> show interfaces ae0.0
Logical interface ae0.0 (Index 548) (SNMP ifIndex 515)
Flags: Hardware-Down Device-Down SNMP-Traps 0x0 Encapsulation: Ethernet-Bridge
Statistics Packets pps Bytes bps
Bundle:
Input : 0 0 0 0
Output: 0 0 0 0
Adaptive Statistics:
Adaptive Adjusts: 0
Adaptive Scans : 0
Adaptive Updates: 0
Protocol eth-switch, MTU: 1514
Flags: Is-Primary
>>>>>>>>>> SNMP: ifIndex.515
root@EX4300-1> show snmp mib get ifIndex.515
ifIndex.515 = 515
{master:0}
root@EX4300-1> show snmp mib get ifIndex.515 | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/15.1R3/junos">
<snmp-object-information xmlns="http://xml.juniper.net/junos/15.1R3/junos-snmp">
<snmp-object>
<name>ifIndex.515</name>
<index>
<index-name>ifIndex</index-name>
<index-value>515</index-value>
</index>
<object-value-type>number</object-value-type>
<object-value>515</object-value>
<oid>1.3.6.1.2.1.2.2.1.1.515</oid> <<<<<<<<<<< OID
</snmp-object>
</snmp-object-information>
<cli>
<banner>{master:0}</banner>
</cli>
</rpc-reply>
Just use: 1.3.6.1.2.1.2.2.1 ( table ID )
root@EX4300-1> show snmp mib walk 1.3.6.1.2.1.2.2.1 | match .515
ifIndex.515 = 515
ifDescr.515 = ae0.0
ifType.515 = 53
ifMtu.515 = 1514
ifSpeed.515 = 0
ifPhysAddress.515 = 4c 96 14 e6 70 63
ifAdminStatus.515 = 1
ifOperStatus.515 = 2
ifLastChange.515 = 644
ifInOctets.515 = 0
ifInUcastPkts.515 = 0
ifInNUcastPkts.515 = 0
ifInDiscards.515 = 0
ifInErrors.515 = 0
ifInUnknownProtos.515 = 0
ifOutOctets.515 = 0
ifOutUcastPkts.515 = 0
ifOutNUcastPkts.515 = 0
ifOutDiscards.515 = 0
ifOutErrors.515 = 0
ifOutQLen.515 = 0
ifSpecific.515 = 0.0
|
|
|
---|
Image Added
show snmp mib get ifIndex.536
show snmp mib get ifDescr.536
show snmp mib get ifInOctets.536
show snmp mib get ifInUcastPkts.536
show snmp mib get ifOutOctets.536
show snmp mib get ifOutUcastPkts.536
XML Display:
...
Image Added
family ethernet-switching:
no family set up:
Image Added