Detailed snmpwalk installation and use at -windows

snmpwalk SNMP is a tool that uses the SNMP query specifies GETNEXT request OID (object identifier SNMP protocol) all entry information of the OID tree, and displayed to the user. Some other information about the device also supports SNMP protocol can be viewed through snmpwalk (Managed), such as cisco switch or router IP address, memory usage, etc., it can also be used to help develop SNMP functionality.
In daily monitoring, often used snmp service, and snmpwalk command system is the most effective way to all kinds of information collected.
Use the snmpwalk command needs to be installed snmpd service.

Install net-snmp under windows, we can go to the net-snmp official website to download. Now we installed the net-snmp-5.6.1.1-1.x86.exe this package. as follows:

http://www.net-snmp.org/download.html

https://sourceforge.net/projects/net-snmp/files/
 
After downloading, double-click the installation
then

Then view the installation is successful, you can know by looking at the version:

 snmpd -v

3, registration services

Administrators run C: \ usr \ registeragent.bat

4 start service in Net-SNMP Agent

5 Queries

C:\usr\bin>snmpwalk -v3 -l authPriv -u test1 -a MD5 -A "abc12345" -x DES -X "abc12345" 192.168.250.54 .1.3.6

 Parameter Description

–h:显示帮助。
–v:指定snmp的版本, 1或者2c或者3。
–c:指定连接设备SNMP密码。
–V:显示当前snmpwalk命令行版本。
–r:指定重试次数,默认为0次。
–t:指定每次请求的等待超时时间,单为秒,默认为3秒。
–l:指定安全级别:noAuthNoPriv|authNoPriv|authPriv。
–a:验证协议:MD5|SHA。只有-l指定为authNoPriv或authPriv时才需要。
–A:验证字符串。只有-l指定为authNoPriv或authPriv时才需要。
–x:加密协议:DES。只有-l指定为authPriv时才需要。
–X:加密字符串。只有-l指定为authPriv时才需要。

Guess you like

Origin www.cnblogs.com/simadi/p/11114986.html