1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:22:07 +02:00

snmpwalk: move to common, update page (#15701)

This commit is contained in:
Managor 2025-02-06 18:56:23 +02:00 committed by GitHub
parent e84949fd89
commit cd7c384e03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,20 +5,20 @@
- Query the system information of a remote host using SNMPv1 and a community string:
`snmpwalk -v1 -c {{community}} {{ip}}`
`snmpwalk -v 1 -c {{community}} {{ip}}`
- Query system information on a remote host by OID using SNMPv2 on a specified port:
`snmpwalk -v2c -c {{community}} {{ip}}:{{port}} {{oid}}`
`snmpwalk -v 2c -c {{community}} {{ip}}:{{port}} {{oid}}`
- Query system information on a remote host by OID using SNMPv3 and authentication without encryption:
`snmpwalk -v3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip}} {{oid}}`
`snmpwalk -v 3 -l {{authNoPriv}} -u {{username}} -a {{MD5|SHA}} -A {{passphrase}} {{ip}} {{oid}}`
- Query system information on a remote host by OID using SNMPv3, authentication, and encryption:
`snmpwalk -v3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip}} {{oid}}`
`snmpwalk -v 3 -l {{authPriv}} -u {{username}} -a {{MD5|SHA}} -A {{auth_passphrase}} -x {{DES|AES}} -X {{enc_passphrase}} {{ip}} {{oid}}`
- Query system information on a remote host by OID using SNMPv3 without authentication or encryption:
`snmpwalk -v3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}`
`snmpwalk -v 3 -l {{noAuthNoPriv}} -u {{username}} {{ip}} {{oid}}`