Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:snmp [2022/12/18 03:50] – admin | linux:snmp [2022/12/18 05:02] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Snmp ====== | ====== Snmp ====== | ||
- | <WRAP left tip 60%> | + | <WRAP left tip 80%> |
**Basics and install** | **Basics and install** | ||
<code BASH> | <code BASH> | ||
Line 17: | Line 17: | ||
**Using** | **Using** | ||
<code BASH> | <code BASH> | ||
+ | # пооучить все дерево | ||
+ | snmpwalk -v 2c -c public 192.168.114.124 . | ||
+ | # пооучить все дерево | ||
+ | snmpwalk -v 2c -On -c public 192.168.114.124 . | ||
- | # where you can add users mibs | + | snmpget -v 2c -On -c public 192.168.114.124 IP-FORWARD-MIB:: |
+ | # Only if you have mibs tree definition | ||
+ | snmptable -v 2c -c public 192.168.114.124 1.3.6.1.2.1.1.9 | ||
+ | |||
+ | # where you can add users mibs - https:// | ||
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) | ||
+ | |||
</ | </ | ||
+ | * snmp good example https:// | ||
</ | </ | ||
+ | |||
+ | |||