Example OIDs and commands for hardware monioring

Below are the SNMP OIDs for typical SP devices to monitor hardware resource utilisation in Cacti (only if Cacti doesn't already support the device using standard CPU/memory OIDs). The below examples also include OIDs for bespoke per-device resources such as line card CPU or TCAM usage which is non-standard (not natively supported by Cacti).

Some stats are simply not exposed by the vendors via SNMP and so the commands to gather thoses stats over the CLI are also shown further down. The links directly below are scripts that wrap those commands in BASH scripts to nicely present the data to Cacti. Note that these are just testing examples, the username and password should be moved to be additional arguments to the script so that these details are not stored in the script.

asr9001-get-tcam-ucast-usage.sh
asr920-get-tcam-mpls-usage.sh
asr920-get-tcam-ucastv4-usage.sh
asr920-get-tcam-ucastv6-usage.sh
me3600x-get-tcam-bdomain-usage.sh
me3600x-get-tcam-mpls-usage.sh
me3600x-get-tcam-qos-usage.sh
me3600x-get-tcam-ucastv4-usage.sh
me3600x-get-tcam-ucastv6-usage.sh

Cisco 7600 with RSP720-3CXL-10G running 15.3(3)S6:

1.3.6.1.4.1.9.9.663.1.1.1.1.1.2.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacUsed.5018 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.1.1.1.3.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacTotal.5018 = Gauge32

1.3.6.1.4.1.9.9.663.1.1.1.2.1.1 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcVpnCamUsed.1 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.1.2.1.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcVpnCamTotal.1 = Gauge32

1.3.6.1.4.1.9.9.663.1.1.2.1.1.1.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc72bitsFibTcamUsed.5018 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.2.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc72bitsFibTcamTotal.5018 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.3.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc144bitsFibTcamUsed.5018 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.4.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc144bitsFibTcamTotal.5018 = Gauge32

1.3.6.1.4.1.9.9.663.1.1.2.3.1.1.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcAdjacencyUsed.5018 = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.3.1.2.5018 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcAdjacencyTotal.5018 = Gauge32

 

Cisco 6509-E-VSS with VS-SUP2T-10G running 15.1(1)SY1:

1.3.6.1.4.1.9.9.663.1.1.1.1.1.2.2021 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacUsed.2021 = Gauge32 ! Chassis 1 (active) SUP in slot 5
1.3.6.1.4.1.9.9.663.1.1.1.1.1.3.2021 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacTotal.2021 = Gauge32

1.3.6.1.4.1.9.9.663.1.1.1.1.1.2.7009 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacUsed.7009 = Gauge32 ! Chassis 2 (standby) SUP in slot 5
1.3.6.1.4.1.9.9.663.1.1.1.1.1.3.7009 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcMacTotal.7009 = Gauge32

1.3.6.1.4.1.9.9.663.1.1.2.1.1.1.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc72bitsFibTcamUsed = Gauge32 ! Chassis wide slot 2 as using DFC's on all cards?
1.3.6.1.4.1.9.9.663.1.1.2.1.1.2.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc72bitsFibTcamTotal = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.3.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc144bitsFibTcamUsed = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.4.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc144bitsFibTcamTotal = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.5.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc288bitsFibTcamUsed = Gauge32
1.3.6.1.4.1.9.9.663.1.1.2.1.1.6.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshc288bitsFibTcamTotal = Gauge32

1.3.6.1.4.1.9.9.663.1.1.2.3.1.1.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcAdjacencyUsed = Gauge32 ! Chassis wide slot 2 as using DFC's on all cards?
1.3.6.1.4.1.9.9.663.1.1.2.3.1.2.2 : CISCO-SWITCH-HARDWARE-CAPACITY-MIB::cshcAdjacencyTotal = Gauge32

 

Cisco ASR1002-X running 3.16.04a.S:

! CPU Monitoring within IOSd (shows as single CPU):
cpmCPUTotal5sec: 1.3.6.1.4.1.9.9.109.1.1.1.1.3.7
cpmCPUTotal1min: 1.3.6.1.4.1.9.9.109.1.1.1.1.4.7
cpmCPUTotal5min: 1.3.6.1.4.1.9.9.109.1.1.1.1.5.7

! This is a four core box, what are the OIDs to monitoring from outside of IOSd, from the perspective of IOS-XE?

 

Cisco ASR920 running 15.5(3)S4:

! show platform software status control-processor
1.3.6.1.4.1.9.9.109.1.1.1.1.12.7 : CISCO-PROCESS-MIB::cpmCPUMemoryUsed = Gauge32: 1923072
1.3.6.1.4.1.9.9.109.1.1.1.1.13.7 : CISCO-PROCESS-MIB::cpmCPUMemoryFree = Gauge32: 1514976

! show proc cpu platform sorted | in CPU|Core
1.3.6.1.4.1.9.9.109.1.1.1.1.3.7 : CISCO-PROCESS-MIB::cpmCPUTotal5sec = Gauge32: 8
1.3.6.1.4.1.9.9.109.1.1.1.1.4.7 : CISCO-PROCESS-MIB::cpmCPUTotal1min = Gauge32: 15
1.3.6.1.4.1.9.9.109.1.1.1.1.5.7 : CISCO-PROCESS-MIB::cpmCPUTotal5min = Gauge32: 17


! Maximum number of MPS labels:
"show platform hardware pp active resource-usage summary 0 | i EMPLS3LD"

! Number of used MPLS labels:
"show platform hardware pp active resource-usage summary 0 | i EMPLS3LD"


! Max number of IPv4 unicast routes
"show platform hardware pp active tcam utilization ucastv4 detail 0 | i Scale limit"

! Current number of IPv4 unicast routes
"show platform hardware pp active tcam utilization ucastv4 detail 0 | i Current usage"

! IPv6:
"show platform hardware pp active tcam utilization ucastv6 detail 0 | i Scale limit"
"show platform hardware pp active tcam utilization ucastv6 detail 0 | i Current usage"

 

Cisco ME3600X/ME3800X running 15.3(3)S6:

! Maximum number of IPv4 unicast routes:
"show platform aspdma template | i NILE_NUM_IPV4_ROUTES"

! User/current IPv4 unicast route count:
"show platform tcam utilization ucastv4 0 | i UCASTV4"

! IPv6:
"show platform aspdma template | i NILE_NUM_IPV6_ROUTES"
"show platform tcam utilization ucastv6 0 | i UCASTV6"


! Maximum number of bridge domains
"show sdm prefer current | i bridge"

! Number of bridge domains used
"show platform bdomain config_num | i configured"


! Maximum number of MPLS labels
"show platform aspdma template | i EMPLS3LD_TABLE"

! Current MPLS label usage count
"show platform nile adjmgr all | include EMPLS3LD"


! Maximum number of QOS TCAM entries
"show platform tcam utilization qos 0 | i QOS"

! Current number of QoS TCAM entries used
"show platform tcam utilization qos 0 | i QOS"

 

Cisco ASR9001 running 5.3.3

MPLS Labal Usage:
1.3.6.1.2.1.10.166.2 = MPLS-LSR-STD-MIB
1.3.6.1.2.1.10.166.2.1.1.1.3 = mplsInterfaceLabelMaxIn = Gauge32
1.3.6.1.2.1.10.166.2.1.2.1.1 = mplsInterfacePerfInLabelsInUse = Gauge32

! Via CLI
show controllers np struct Label-UFIB np0 | in Entries


CPU Usage:
! Get the entity ID of all CPUs on the chassis:
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.2.1.47.1.1.1.1.7 | grep -E "module.*CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.18788073 = STRING: "module 0/0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.38645760 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.52690955 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.62482494 = STRING: "module 0/0/CPU0"

! Get the CPU IDs on the chassis (these will match to the entity IDs above):
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.109.1.1.1.1.2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2 = INTEGER: 52690955
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2082 = INTEGER: 18788073

! Get the 1 min value for each CPU ID (cpmCPUTotal1minRev):
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.109.1.1.1.1.7
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2 = Gauge32: 6
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2082 = Gauge32: 3

! Get the 5 min value for each CPU ID (cpmCPUTotal5minRev):
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.109.1.1.1.1.8
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.2 = Gauge32: 11
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.2082 = Gauge32: 4



Memory Usage:
1.3.6.1.4.1.9.9.221 = CISCO-ENHANCED-MEMPOOL-MIB
1.3.6.1.4.1.9.9.48 = CISCO-MEMORY-POOL-MIB

! Get the entity ID of all CPUs on the chassis:
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.2.1.47.1.1.1.1.7 | grep -E "module.*CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.18788073 = STRING: "module 0/0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.38645760 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.52690955 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.62482494 = STRING: "module 0/0/CPU0"

! This is the order of stats given for each CPU:
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.48.1.1.1.2
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "processor"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.6 = STRING: "reserved"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.7 = STRING: "image"
! Reserved and Image will return a free value of 0 which is expected. These are special memory pools with full utilization.

! Used memory (using 64bit counters):
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.221.1.1.1.1.18
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.1 = Counter64: 3235741560
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.2 = Counter64: 134217728
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.3 = Counter64: 78768512
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.1 = Counter64: 3749748708
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.2 = Counter64: 134217728
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.3 = Counter64: 72968468

! Free memory (using 64bit counters):
[[email protected] ~]# snmpwalk -v 3 -n "" -u username -a MD5 -A "yyyy" -x AES -X "xxxx" -l authPriv 10.254.249.1 1.3.6.1.4.1.9.9.221.1.1.1.1.20
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.1 = Counter64: 5140701184
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.3 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.1 = Counter64: 4632825856
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.3 = Counter64: 0



FIB usage (Typhoon line cards only in this chassis):
! For IPv4 FIB usage one must retrieve the global routing table IPv4 unicast route count and VPNv4 unicast route count
! and add them together as they are counted seperately, both commands below include the same shared IPv4 "Max Entries"
! number, which includes all IPv4 GRT and VPNv4 unicast routes...

"show controllers np struct IPV4-LEAF-FAST-P np0 | in Entries" ! GRT Usage

Reserved Entries: 0, Used Entries: 653077, Max Entries: 4194304

"show controllers np struct IPV4-LEAF-P np0 | in Entries" ! VPNv4 usage

Reserved Entries: 0, Used Entries: 22114, Max Entries: 4194304


! IPv6 unicast routes come under one single command for GRT and VPNv6:

"show controllers np struct IPV6-LEAF-P np0 | in Entries"

Reserved Entries: 0, Used Entries: 41095, Max Entries: 2097152

! The router has 4194304 "entries", an IPv4 route consumes 1 entry and an IPv6 route consumes 2. Thus the IPv4 commands
! show a maximum route count of 4194304, which is only possible if no IPv6 routes are present. Vice verse, 2097152 IPv6
! routes are only possible no IPv4 routes are present.

! Current IPv4, VPNv4, IPv6 and VPNv6 prefix counts can also be seen in CEF (which doesn't show a maximum limit)
show cef misc | inc Num cef entries

 

Cisco ASR9006 running 5.1.3:

MPLS Labal Usage:
1.3.6.1.2.1.10.166.2 = MPLS-LSR-STD-MIB
1.3.6.1.2.1.10.166.2.1.1.1.3 = mplsInterfaceLabelMaxIn = Gauge32
1.3.6.1.2.1.10.166.2.1.2.1.1 = mplsInterfacePerfInLabelsInUse = Gauge32



CPU Usage:
! Get the entity ID of all CPUs on the chassis:
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.2.1.47.1.1.1.1.7 | grep -E "module.*CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.18788073 = STRING: "module 0/0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.24330783 = STRING: "module 0/1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.26932192 = STRING: "module 0/RSP1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.36731525 = STRING: "module 0/RSP1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.38645760 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.51614490 = STRING: "module 0/1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.52690955 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.62482494 = STRING: "module 0/0/CPU0"

! Get the CPU IDs on the chassis (these will match to the entity IDs above):
[[email protected] ~]#$ snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.109.1.1.1.1.2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2 = INTEGER: 52690955     ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.18 = INTEGER: 26932192    ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2082 = INTEGER: 18788073  ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2098 = INTEGER: 51614490  ! 0/1/CPU0

! Get the 1 min value for each CPU ID (cpmCPUTotal1minRev):
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.109.1.1.1.1.7
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2 = Gauge32: 1      ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.18 = Gauge32: 26    ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2082 = Gauge32: 1   ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.2098 = Gauge32: 1   ! 0/1/CPU0

! Get the 5 min value for each CPU ID (cpmCPUTotal5minRev):
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.109.1.1.1.1.8
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.2 = Gauge32: 1      ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.18 = Gauge32: 27    ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.2082 = Gauge32: 1   ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.8.2098 = Gauge32: 1   ! 0/1/CPU0



Memory Usage:
1.3.6.1.4.1.9.9.221 = CISCO-ENHANCED-MEMPOOL-MIB
1.3.6.1.4.1.9.9.48 = CISCO-MEMORY-POOL-MIB

! Get the entity ID of all CPUs on the chassis:
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.2.1.47.1.1.1.1.7 | grep -E "module.*CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.18788073 = STRING: "module 0/0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.24330783 = STRING: "module 0/1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.26932192 = STRING: "module 0/RSP1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.36731525 = STRING: "module 0/RSP1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.38645760 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.51614490 = STRING: "module 0/1/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.52690955 = STRING: "module 0/RSP0/CPU0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.62482494 = STRING: "module 0/0/CPU0"

! This is the order of stats given for each CPU:
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.48.1.1.1.2
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "processor"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.6 = STRING: "reserved"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.7 = STRING: "image"
! Reserved and Image will return a free value of 0 which is expected. These are special memory pools with full utilization.

! Used memory (using 64bit counters):
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.221.1.1.1.1.18
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.1 = Counter64: 2572623376  ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.2 = Counter64: 134217728   ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.18788073.3 = Counter64: 63949544    ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.26932192.1 = Counter64: 2701908336  ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.26932192.2 = Counter64: 134217728   ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.26932192.3 = Counter64: 83752240    ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.51614490.1 = Counter64: 2604637712  ! 0/1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.51614490.2 = Counter64: 134217728   ! 0/1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.51614490.3 = Counter64: 63949544    ! 0/1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.1 = Counter64: 2014611824  ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.2 = Counter64: 134217728   ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.18.52690955.3 = Counter64: 83752240    ! 0/RSP0/CPU0

! Free memory (using 64bit counters):
[[email protected] ~]# snmpwalk -v 2c -c zzzz 10.254.242.11 1.3.6.1.4.1.9.9.221.1.1.1.1.20
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.1 = Counter64: 5818847232 ! 0/0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.18788073.3 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.26932192.1 = Counter64: 3454595072 ! 0/RSP1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.26932192.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.26932192.3 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.51614490.1 = Counter64: 5786841088 ! 0/1/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.51614490.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.51614490.3 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.1 = Counter64: 4142264320 ! 0/RSP0/CPU0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.2 = Counter64: 0
SNMPv2-SMI::enterprises.9.9.221.1.1.1.1.20.52690955.3 = Counter64: 0



FIB usage (Typhoon line cards only in this chassis):
! For IPv4 FIB usage one must retrieve the global routing table IPv4 unicast route count and VPNv4 unicast route count
! and add them together as they are counted seperately, both commands below include the same shared IPv4 "Max Entries"
! number, which includes all IPv4 GRT and VPNv4 unicast routes...

"show controllers np struct IPV4-LEAF-FAST-P all | in Entries" ! GRT Usage

Reserved Entries: 0, Used Entries: 50, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 50, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 47, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 47, Max Entries: 4194304


"show controllers np struct IPV4-LEAF-P all | in Entries" ! VPNv4 usage

Reserved Entries: 0, Used Entries: 20198, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 20198, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 20102, Max Entries: 4194304
Reserved Entries: 0, Used Entries: 20102, Max Entries: 4194304



! IPv6 unicast routes come under one single command for GRT and VPNv6:

"show controllers np struct IPV6-LEAF-P all | in Entries"

Reserved Entries: 0, Used Entries: 623, Max Entries: 2097152
Reserved Entries: 0, Used Entries: 623, Max Entries: 2097152
Reserved Entries: 0, Used Entries: 623, Max Entries: 2097152
Reserved Entries: 0, Used Entries: 623, Max Entries: 2097152


! The router has 4194304 "entries", an IPv4 route consumes 1 entry and an IPv6 route consumes 2. Thus the IPv4 commands
! show a maximum route count of 4194304, which is only possible if no IPv6 routes are present. Vice verse, 2097152 IPv6
! routes are only possible no IPv4 routes are present.

 

Juniper MX480 runnin 13.3R8.7:

CPU and Memory Usage:
! show snmp mib get decimal 1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0
! show snmp mib walk decimal 1.3.6.1.4.1.2636.3.1.13.1
1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 ! RE0 CPU Usage
1.3.6.1.4.1.2636.3.1.13.1.8.9.2.0.0 ! RE1 CPU Usage
1.3.6.1.4.1.2636.3.1.13.1.15.9.1.0.0 ! RE0 Total Memory (in KBs)
1.3.6.1.4.1.2636.3.1.13.1.15.9.2.0.0 ! RE1 Total Memory (in KBs)
1.3.6.1.4.1.2636.3.1.13.1.11.9.1.0.0 ! RE0 Used Memory Percentage
1.3.6.1.4.1.2636.3.1.13.1.11.9.2.0.0 ! RE1 Used Memory Percentage