HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

snmpwalk — SNMP query tool. More information: <https://manned.org/snmpwalk>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
snmpcommandcliinformationquerytoolsnmpwalkmore

Problem

How to use the snmpwalk command: SNMP query tool. More information: <https://manned.org/snmpwalk>.

Solution

snmpwalk — SNMP query tool. More information: <https://manned.org/snmpwalk>.

Query the system information of a remote host using SNMPv1 and a community string:
snmpwalk -v 1 -c {{community}} {{ip_address}}


Query system information on a remote host by OID using SNMPv2 on a specified port:
snmpwalk -v 2c -c {{community}} {{ip_address}}:{{port}} {{oid}}


Query system information on a remote host by OID using SNMPv3 and authentication without encryption:
snmpwalk -v 3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip_address}} {{oid}}


Query system information on a remote host by OID using SNMPv3, authentication, and encryption:
snmpwalk -v 3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip_address}} {{oid}}


Query system information on a remote host by OID using SNMPv3 without authentication or encryption:
snmpwalk -v 3 -l {{noAuthNoPriv}} -u {{username}} {{ip_address}} {{oid}}


Display help:
snmpwalk {{[-h|--help]}}

Code Snippets

Query the system information of a remote host using SNMPv1 and a community string

snmpwalk -v 1 -c {{community}} {{ip_address}}

Query system information on a remote host by OID using SNMPv2 on a specified port

snmpwalk -v 2c -c {{community}} {{ip_address}}:{{port}} {{oid}}

Query system information on a remote host by OID using SNMPv3 and authentication without encryption

snmpwalk -v 3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip_address}} {{oid}}

Query system information on a remote host by OID using SNMPv3, authentication, and encryption

snmpwalk -v 3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip_address}} {{oid}}

Query system information on a remote host by OID using SNMPv3 without authentication or encryption

snmpwalk -v 3 -l {{noAuthNoPriv}} -u {{username}} {{ip_address}} {{oid}}

Context

tldr-pages: common/snmpwalk

Revisions (0)

No revisions yet.