Snmpwalk

Desktop\SnmpWalk>SnmpWalk.exe
SnmpWalk v1.01 - Copyright (C) 2009 SnmpSoft Company
[ More useful network tools on http://www.snmpsoft.com ]

Description:
Lists existing SNMP variables on any network device that supports SNMP.
SNMP is widely used for administration and monitoring purposes.

Usage:
SnmpWalk.exe [-q] -r:host [-p:port] [-t:timeout] [-v:version] [-c:community]
[-ei:engine_id] [-sn:sec_name] [-ap:auth_proto] [-aw:auth_passwd]
[-pp:priv_proto] [-pw:priv_passwd] [-ce:cont_engine] [-cn:cont_name]
[-os:start_oid] [-op:stop_oid] [-csv]

-q Quiet mode (suppress header; print variable values only).
-r:host Name or network address (IPv4/IPv6) of remote host.
-p:port SNMP port number on remote host. Default: 161
-t:timeout SNMP timeout in seconds (1-600). Default: 5
-v:version SNMP version. Supported version: 1, 2c or 3. Default: 1
-c:community SNMP community string for SNMP v1/v2c. Default: public
-ei:engine_id Engine ID. Format: hexadecimal string. (SNMPv3).
-sn:sec_name SNMP security name for SNMPv3.
-ap:auth_proto Authentication protocol. Supported: MD5, SHA (SNMPv3).
-aw:auth_passwd Authentication password (SNMPv3).
-pp:priv_proto Privacy protocol. Supported: DES, IDEA, AES128, AES192,
AES256, 3DES (SNMPv3).
-pw:priv_passwd Privacy password (SNMPv3).
-cn:cont_name Context name. (SNMPv3)
-ce:cont_engine Context engine. Format: hexadecimal string. (SNMPv3)
-os:start_oid Object ID (OID) of first SNMP variable to walk. Default:.1
-op:stop_oid Object ID (OID) of last SNMP variable to walk.
Default: walk to the very last variable.
-csv Output in CSV (Comma Separated Values) format.

-Q silent mode (inhibiting header; print only the value of the variable).
-r: remote host host name or network address (IPv 4 / IPv 6).
-p: Port SNMP port number on the remote host. Default: 161
-t: SNMP timeout timeout in seconds (1-600). Default: 5
-v: version SNMP version. Support version: 1,2c or 3. Default: 1
-c: SNMP v1 / SNMP community string V2C community. Default: public-ei: Engine_id Engine ID . Format: hexadecimal string. (SNMPv 3).
-sn: for SNMPv SEC_NAME SNMP security name 3.
-AP: Auth_proto authentication protocol. Support: MD5, SHA (SNMPv 3) .
-aw: Auth_passwd authentication password (SNMPv 3).
-pp: Priv_proto privacy agreement. Support: DES, IDEA, AES 128, AES 192, EY 256,3 DES (SNMPv 3).
-PW: Priv_passwd privacy password (SNMPv 3). -cn: CONT_NAME context name. (SNMPv2. 3)
-CE: cont_Engine context engine. Format: hexadecimal string. (SNMPv2. 3)
-OS: START_LOD first SNMP object ID to traverse variable (OID). Default: .1
-OP: Stop _LOD Object ID (OID) of the SNMP variables go last. Default: Go to the last variable.
-CSV output (comma separated values) format.

Examples:
SnmpWalk.exe -r: MainRouter -csv
SnmpWalk.exe -r: 10.0.0.1 -t: 10 -c: "admin_rw" -os: .1.3.6.1.2.1.1
SnmpWalk.exe -r: ":: . 1 "-v: -sn. 3: SomeName -ap: the MD5 -aw: SomeAuthPass -pp: the DES
-pw: SomePrivPass -OS: -OP .1.3.6.1.2.1: .1.3.6.1.2.65535 -q

example:
SNMP v2c version
SnmpWalk.exe -r: 172.31.123.254 -t: 2 -v: -c. 2C: "! # QAZ2wsx EDC" -os: .1.3.6.1.2.1.1.1 -OP: .1.3.6.1.2.1.1.3
ip time version of word groups beginning of the end
snmpwalk v1.01 - Copyright (C) 2009 SnmpSoft Company
[More Useful Tools Network ON http://www.snmpsoft.com]

OID=.1.3.6.1.2.1.1.1.0, Type=OctetString, Value=Huawei AC6005-8-PWR Huawei Versa
tile Routing Platform Software VRP (R) software,Version 5.160 (AC6005-8-PWR V20
0R006C10SPC200) Copyright (C) 2011-2016 Huawei Technologies Co., Ltd
OID=.1.3.6.1.2.1.1.2.0, Type=OID, Value=1.3.6.1.4.1.2011.2.240.5
Total: 2


snmp v3 version
SnmpWalk.exe -r: IP -v: 3 -sn : USER -ap: SHA -aw: auth password -pp: AES128 -pw: priv password -os: .1.3.6.1.2.1.1.1 -op: .1.3.6.1.2.1.1.2

Guess you like

Origin www.cnblogs.com/Confusedren/p/11122147.html