linux:snmp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:snmp [2022/12/18 04:24] adminlinux:snmp [2022/12/18 05:02] (current) admin
Line 23: Line 23:
  
 snmpget -v 2c -On -c public 192.168.114.124 IP-FORWARD-MIB::inetCidrRouteNumber.0 snmpget -v 2c -On -c public 192.168.114.124 IP-FORWARD-MIB::inetCidrRouteNumber.0
 +# Only if you have mibs tree definition
 snmptable -v 2c -c public 192.168.114.124 1.3.6.1.2.1.1.9 snmptable -v 2c -c public 192.168.114.124 1.3.6.1.2.1.1.9
  
-# where you can add users mibs+# where you can add users mibs - https://habr.com/ru/post/206612/
 snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR
 # проверить работу словаря # проверить работу словаря
 snmptranslate -IR -On synoUPS snmptranslate -IR -On synoUPS
 +
 +-Td Print full details of the specified OID.
 +-Tp Print a graphical tree, rooted at the specified OID.
 +-Ta Dump the loaded MIB in a trivial form.
 +-Tl Dump a labeled form of all objects.
 +-To Dump a numeric form of all objects.
 +-Ts Dump a symbolic form of all objects.
 +-Tt Dump a tree form of the loaded MIBs (mostly useful for debugging).
 +-Tz Dump a numeric and labeled form of all objects (compatible with MIB2SCHEMA format)
 +
  
 </code> </code>
   * snmp good example https://github.com/centreon/centreon-plugins/blob/master/storage/synology/snmp/mode/ups.pm   * snmp good example https://github.com/centreon/centreon-plugins/blob/master/storage/synology/snmp/mode/ups.pm
 </WRAP> </WRAP>
 +
 +
  
  
  • linux/snmp.1671337450.txt.gz
  • Last modified: 2022/12/18 04:24
  • by admin