Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...





Code Block
titleshow snmp
hidden command “show snmp registered-objects” that dump all the registered snmp oid in the system to /var/log/snmp_reg_objs

And then grep the file with some keywords like “power”, “psu”, etc.

show log snmp_reg_objs |grep power 
.1.3.6.1.4.1.2636.3.60.1.1.1.1.5 (jnxDomCurrentRxLaserPower) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.7 (jnxDomCurrentTxLaserOutputPower) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.9 (jnxDomCurrentRxLaserPowerHighAlarmThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.10 (jnxDomCurrentRxLaserPowerLowAlarmThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.11 (jnxDomCurrentRxLaserPowerHighWarningThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.12 (jnxDomCurrentRxLaserPowerLowWarningThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.17 (jnxDomCurrentTxLaserOutputPowerHighAlarmThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.18 (jnxDomCurrentTxLaserOutputPowerLowAlarmThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.19 (jnxDomCurrentTxLaserOutputPowerHighWarningThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.1.1.1.20 (jnxDomCurrentTxLaserOutputPowerLowWarningThreshold) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.2.1.1.6 (jnxDomCurrentLaneRxLaserPower) (/var/run/mib2d-38)
.1.3.6.1.4.1.2636.3.60.1.2.1.1.8 (jnxDomCurrentLaneTxLaserOutputPower) (/var/run/mib2d-38)




Code Block
titlewalk snmp
show snmp mib walk ascii 1 | no-more 
show snmp mib walk ascii 1 | save show-snmp-mib-walk-all-mydevice