I once wrote a Zabbix template for QFX5100 and will show some of the main SNMP OIDs that I used:
You can test OID/MIB from Linux, an example of the command is below (for example, ifDescr is a description of network interfaces):
snmpwalk -v2c -c public ixnfo.com ifDescr
It is better to take statistics in zabbix not by snmp indexes, but by description, since indexes can change, I will give examples of SNMP data items (we multiply the result by 8, and also indicate the type: simple change):
ifHCInOctets["index","ifDescr","lo0"]
ifHCOutOctets["index","ifDescr","lo0"]
ifHCInOctets["index","ifDescr","et-0/0/2"]
ifHCOutOctets["index","ifDescr","et-0/0/2"]
ifHCInOctets["index","ifDescr","ae0"]
ifHCOutOctets["index","ifDescr","ae0"]
Let’s see the stuffing of the device:
1.3.6.1.4.1.2636.3.1.13.1.5 (jnxOperatingDescr)
I have displayed:
snmpwalk -v2c -c ixnfo.com 10.0.5.2 1.3.6.1.4.1.2636.3.1.13.1.5
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.1.1.0.0 = ""
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.2.1.1.0 = STRING: "Power Supply 0 @ 0/0/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.2.1.2.0 = STRING: "Power Supply 1 @ 0/1/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.4.1.1.0 = STRING: "Fan Tray 0 @ 0/0/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.4.1.2.0 = STRING: "Fan Tray 1 @ 0/1/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.4.1.3.0 = STRING: "Fan Tray 2 @ 0/2/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.4.1.4.0 = STRING: "Fan Tray 3 @ 0/3/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.4.1.5.0 = STRING: "Fan Tray 4 @ 0/4/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.7.1.0.0 = STRING: "FPC: QFX5100-24Q-2P @ 0/*/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.8.1.1.0 = STRING: "PIC: 24x 40G-QSFP @ 0/0/*"
SNMPv2-SMI::enterprises.2636.3.1.13.1.5.9.1.0.0 = STRING: "Routing Engine 0"
Based on this data, we determined the number of FPC, RE, power supplies, etc..
For example, let’s look at the temperature:
1.3.6.1.4.1.2636.3.1.13.1.7 (jnxOperatingTemp)
I have displayed (as we see temperature sensors are in FPC and RE):
snmpwalk -v2c -c ixnfo.com 10.0.5.2 1.3.6.1.4.1.2636.3.1.13.1.7
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.1.1.0.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.2.1.1.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.2.1.2.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.4.1.1.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.4.1.2.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.4.1.3.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.4.1.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.4.1.5.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.7.1.0.0 = Gauge32: 36
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.8.1.1.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.9.1.0.0 = Gauge32: 24
Now, for example, let’s see the FPC temperature:
snmpwalk -v2c -c ixnfo.com 10.0.5.2 1.3.6.1.4.1.2636.3.1.13.1.7.7.1.0.0
SNMPv2-SMI::enterprises.2636.3.1.13.1.7.7.1.0.0 = Gauge32: 36
CPU utilization in %:
1.3.6.1.4.1.2636.3.1.13.1.8 (jnxOperatingCPU)
1.3.6.1.4.1.2636.3.1.13.1.8.7.1.0.0 (FPC)
1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 (RE)
Load Average for Routing Engine (must be multiplied by 0.01):
1.3.6.1.4.1.2636.3.1.13.1.20 (jnxOperating1MinLoadAvg)
1.3.6.1.4.1.2636.3.1.13.1.21 (jnxOperating5MinLoadAvg)
1.3.6.1.4.1.2636.3.1.13.1.22 (jnxOperating15MinLoadAvg)
Buffer utilization in %:
1.3.6.1.4.1.2636.3.1.13.1.11 (jnxOperatingBuffer)
1.3.6.1.4.1.2636.3.1.13.1.11.7.1.0.0 (FPC)
1.3.6.1.4.1.2636.3.1.13.1.11.9.1.0.0 (RE)
Buffer size:
1.3.6.1.4.1.2636.3.1.13.1.15 (jnxOperatingMemory)
1.3.6.1.4.1.2636.3.1.13.1.10 (jnxOperatingDRAMSize)
Power supply status (unknown(1),running(2),ready(3),reset(4),runningAtFullSpeed(5),down(6),standby(7)):
1.3.6.1.4.1.2636.3.1.13.1.6.2 (jnxOperatingEntry)
1.3.6.1.4.1.2636.3.1.13.1.6.2.1.1.0 (PEM0)
1.3.6.1.4.1.2636.3.1.13.1.6.2.1.2.0 (PEM1)
Similarly, we determine the status of all fans:
1.3.6.1.4.1.2636.3.1.13.1.6.4
You can verify the data by running the following commands on the device:
show chassis routing-engine
show chassis environment
See also my articles:
SNMP OID for Juniper
Configuring Juniper QFX5100