Skip to main content

SNMP

With SNMP you can manage and monitor network devices using the Simple Network Management Protocol (SNMP). Version 1, 2c and 3 with get, walk and set are supported.

info

Simple Network Management Protocol (SNMP) is a standard protocol for monitoring and managing network devices. It uses UDP (port 161 for queries, port 162 for traps) and operates on a manager–agent model, where managed devices expose a Management Information Base (MIB) β€” a hierarchical collection of objects identified by Object Identifiers (OIDs). SNMP has three versions: SNMPv1 and SNMPv2c use community strings for authentication, while SNMPv3 adds user-based authentication and encryption.

SNMP

Example inputs​

HostModeVersionOIDCommunitySecurityUsernameAuthAuthPriv
server-01GetV2C.1.3.6.1; .1.3.6.2public-/--/--/--/--/--/-
10.0.0.10WalkV3.1.3.6.1.2.1.1-/-NoAuthNoPrivAdmin-/--/--/--/-
10.0.0.10WalkV3.1.3.6.1.2.1.1-/-AuthNoPrivAdmin`SHA1S3cr3t!`-/--/-
10.0.0.10WalkV3.1.3.6.1.2.1.1-/-AuthPrivAdmin`SHA1S3cr3t!``AESS3cr3t%`
note

Multiple OIDs (.1.3.6.1.2.1.1; .1.3.6.1.2.1.2) can be specified when using the mode get.

A pasted URL (e.g. https://borntoberoot.net/docs) is converted to its host.

Context menu​

ActionDescription
CopyCopy the selected information to the clipboard.
Export...Exports the results shown (all or the selected ones) to a file in the order shown, see Export format

Run command​

Open the tool with snmp. Add a host to open a new tab with it:

snmp 10.0.0.1
snmp switch-01.borntoberoot.net
snmp @switch-01

The query is not started: select the mode, version, OID and credentials in the tab and start it there (also with Enter). Shift+Enter behaves like Enter. A profile (@profile) opens a tab with the host, mode, version, OID and credentials of the profile or its group.

Profile​

Inherit host from general​

Inherit the host from the general settings.

Type: Boolean

Default: Enabled

note

If this option is enabled, the Host is overwritten by the host from the general settings and the Host is disabled.

Host​

Host to connect to via SNMP.

Type: String

Default: Empty

Example:

  • server-01.borntoberoot.net
  • 10.0.0.10

OID​

OID for the get, walk or set SNMP request.

Type: String

Default: Empty

Example:

  • .1.3.6.1.2.1.1
note

Multiple OIDs (.1.3.6.1.2.1.1; .1.3.6.1.2.1.2) can be specified when using the mode get.

Mode​

SNMP mode for the request.

Type: NETworkManager.Models.Network.SNMPMode

Default: Get

Possible values:

  • Get
  • Walk
  • Set
  • Trap (not implemented)
  • Inform (not implemented)

Version​

SNMP version for the request.

Type: NETworkManager.Models.Network.SNMPVersion

Default: V2C

Possible values:

  • V1
  • V2C
  • V3

Community​

Community for the SNMP v1 or v2c request.

Type: String

Default: Empty

note

Only available when using version 1 or 2c.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Security​

Security for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3Security

Default: AuthPriv

Possible values:

  • NoAuthNoPriv
  • AuthNoPriv
  • AuthPriv
note

Only available when using version 3.

Username​

Username for the SNMP v3 request.

Type: String

Default: Empty

note

Only available when using version 3.

Auth​

Authentication for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3AuthenticationProvider

Default: SHA1

Possible values:

  • MD5
  • SHA1
  • SHA256
  • SHA384
  • SHA512
note

Only available when using version 3 and security AuthNoPriv or AuthPriv.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Priv​

Privacy for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3PrivacyProvider

Default: AES

Possible values:

  • DES
  • AES (128)
  • AES192
  • AES256
note

Only available when using version 3 and security AuthPriv.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Group​

OID​

OID for the get, walk or set SNMP request.

Type: String

Default: Empty

Example:

  • .1.3.6.1.2.1.1
note

Multiple OIDs (.1.3.6.1.2.1.1; .1.3.6.1.2.1.2) can be specified when using the mode get.

Mode​

SNMP mode for the request.

Type: NETworkManager.Models.Network.SNMPMode

Default: Get

Possible values:

  • Get
  • Walk
  • Set
  • Trap (not implemented)
  • Inform (not implemented)

Version​

SNMP version for the request.

Type: NETworkManager.Models.Network.SNMPVersion

Default: V2C

Possible values:

  • V1
  • V2C
  • V3

Community​

Community for the SNMP v1 or v2c request.

Type: String

Default: Empty

note

Only available when using version 1 or 2c.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Security​

Security for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3Security

Default: AuthPriv

Possible values:

  • NoAuthNoPriv
  • AuthNoPriv
  • AuthPriv
note

Only available when using version 3.

Username​

Username for the SNMP v3 request.

Type: String

Default: Empty

note

Only available when using version 3.

Auth​

Authentication for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3AuthenticationProvider

Default: SHA1

Possible values:

  • MD5
  • SHA1
  • SHA256
  • SHA384
  • SHA512
note

Only available when using version 3 and security AuthNoPriv or AuthPriv.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Priv​

Privacy for the SNMP v3 request.

Type: NETworkManager.Models.Network.SNMPV3PrivacyProvider

Default: AES

Possible values:

  • DES
  • AES (128)
  • AES192
  • AES256
note

Only available when using version 3 and security AuthPriv.

warning

Passwords are stored in plain text in the profile file unless Profile file encryption is enabled.

Settings​

OID profiles​

List of common OIDs for the get, walk or set SNMP request.

Type: NETworkManager.Models.Network.SNMPOIDProfileInfo

Default:

DescriptionOIDMode
HOST-RESOURCES-MIB.1.3.6.1.2.1.25Walk
IF-MIB.1.3.6.1.2.1.2Walk
IP-MIB.1.3.6.1.2.1.4Walk
Linux - Interface names.1.3.6.1.2.1.2.2.1.2Walk
Linux - Load (1, 5, 15 min).1.3.6.1.4.1.2021.10.1.3.1; .1.3.6.1.4.1.2021.10.1.3.2; .1.3.6.1.4.1.2021.10.1.3.3Get
Linux - Memory (Swap size, total RAM, RAM used, RAM free).1.3.6.1.4.1.2021.4.3.0; .1.3.6.1.4.1.2021.4.5.0; .1.3.6.1.4.1.2021.4.6.0; .1.3.6.1.4.1.2021.4.11.0Get
Linux - SNMP uptime.1.3.6.1.2.1.1.3.0Get
Linux - System uptime.1.3.6.1.2.1.25.1.1.0Get
SNMPv2-MIB (system).1.3.6.1.2.1.1Walk
TCP-MIB.1.3.6.1.2.1.6Walk
UDP-MIB.1.3.6.1.2.1.7Walk
UCD-SNMP-MIB.1.3.6.1.4.1.2021Walk
note

Right-click on a selected OID profile to edit or delete it.

You can also use the Hotkeys F2 (edit) or Del (delete) on a selected OID profile.

Walk mode​

Walk mode for the SNMP request.

Type: Lextm.SharpSnmpLib.Messaging.WalkMode

Default: WithinSubtree

Possible values:

  • Default
  • WithinSubtree

Timeout (ms)​

Timeout in milliseconds after which the SNMP request is canceled.

Type: Integer [Min 100, Max 900000]

Default: 60000

Port​

UDP port to use for SNMP requests.

Type: Integer [Min 1, Max 65535]

Default: 161

Troubleshooting and limits​

  • SNMP v1 / v2c: a device with another community usually doesn't answer at all, so the request ends after the timeout (default 60 seconds) without a result. Check the community and the access list of the device (many devices only answer to the IP addresses of the management network).
  • SNMP v3: wrong credentials are answered with an error (e.g. unknown user name, wrong digest). The security level, the authentication and privacy protocol must match the user on the device.
  • The device must answer on UDP port 161 (or the port of the settings); a firewall in between or on the device can drop the requests.
  • An OID that doesn't exist on the device (or isn't visible for the community / user) returns no value (get) or no rows (walk). A walk of a large subtree (e.g. .1.3.6.1) can take long and returns many rows.
  • set needs a community / user with write access, which most devices don't have by default.
  • Traps (UDP port 162) are not received.