Skip to content

Instantly share code, notes, and snippets.

@uraimo
Last active June 3, 2022 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uraimo/cd2b851dbb2f5721daf850b08655424e to your computer and use it in GitHub Desktop.
Save uraimo/cd2b851dbb2f5721daf850b08655424e to your computer and use it in GitHub Desktop.
The bare minimum you need to query an SNMP service

To traverse the tree of public data (i.e. "public" community), starting from the "iso" root:

  snmpwalk -v 2c -Cc -c public -m ALL 10.0.0.1 iso

To print out private data ("private" community, enterprises leaf(1.3.6.1.4)):

  snmpwalk -v 2c -c private -l authPriv -u "user" -a MD5 -A "pass" -x DES -X "pass"  -m ALL 10.0.0.1  1.3.6.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment