SNMP set
Change one value on a device with SNMP; the community (or v3 user) must have write access.
Command in the Network toolkit · id ooa.network/snmp_set · 16 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Host | String | Yes | Device host name or IP address. | |
| Oid | String | Yes | OID of the object to change. | |
| Value | Any | Yes | New value. | |
| Value type | String | No | string | SNMP type of the new value; hex_string takes bytes as hex (0a:1b:ff or 0a1bff), decimal_bytes as numbers (10.27.255), null sends no value (G4). |
| Community | Any | No | private | SNMP v2c community with write access (text or a Credential). |
| Port | Number | No | 161 | UDP port of the SNMP agent. |
| Wait up to (milliseconds) | Number | No | 3000 | How long to wait for each answer, in milliseconds. |
| Retries | Number | No | 1 | Extra attempts after a timeout. |
| Version | String | No | v2c | SNMP version the device speaks. |
| Security user | String | No | SNMP v3 security user name (v3 uses it instead of a community). | |
| Sign-in protocol | String | No | sha | SNMP v3 sign-in protocol: none, md5, sha (SHA-1), sha256 or sha512. |
| Sign-in password | Credential | No | SNMP v3 sign-in password from the vault. | |
| Privacy protocol | String | No | aes128 | SNMP v3 privacy (encryption): none, des or aes128. |
| Privacy password | Credential | No | SNMP v3 privacy (encryption) password from the vault. | |
| Context name | String | No | SNMP v3 context, when the device uses them; usually empty. | |
| Log file | File | No | Also write what was sent and answered to this text file (G4). |
Outputs
| Output | Type | What it is |
|---|---|---|
| value | Any | Value the device reports after the change. |