Skip to main content

SNMP get

Read one or more values from a device with SNMP v1, v2c or v3.

Command in the Network toolkit · id ooa.network/snmp_get · 15 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
HostStringYesDevice host name or IP address.
OidsAnyYesOne OID, several separated by commas, or a List of OIDs.
CommunityAnyNopublicSNMP v1 or v2c community (text or a Credential); public when empty.
PortNumberNo161UDP port of the SNMP agent.
Wait up to (milliseconds)NumberNo3000How long to wait for each answer, in milliseconds.
RetriesNumberNo1Extra attempts after a timeout.
VersionStringNov2cSNMP version the device speaks.
Security userStringNoSNMP v3 security user name (v3 uses it instead of a community).
Sign-in protocolStringNoshaSNMP v3 sign-in protocol: none, md5, sha (SHA-1), sha256 or sha512.
Sign-in passwordCredentialNoSNMP v3 sign-in password from the vault.
Privacy protocolStringNoaes128SNMP v3 privacy (encryption): none, des or aes128.
Privacy passwordCredentialNoSNMP v3 privacy (encryption) password from the vault.
Context nameStringNoSNMP v3 context, when the device uses them; usually empty.
Output asStringNoautoText values as the device sent them (auto: text when readable, else hex), always as text, or always as hex bytes (G4).
Log fileFileNoAlso write what was asked and answered to this text file (G4).

Outputs​

OutputTypeWhat it is
valuesDictionaryOID to value; empty for objects the device does not have.
tableTableColumns: oid, type, value.