snmp.update

Update SNMP Service Configuration.

The v3_* settings are valid and enforced only when v3 is enabled.

Enabling v3 requires v3_username, v3_authtype, and v3_password. Disabling v3 alone retains the v3 user settings in the private config but removes the public config entry, blocking v3 access. Disabling v3 and clearing v3_username additionally removes the user from the private config.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: snmp_update

snmp_update

Type: object

SNMPUpdateArgs parameters.

No Additional Properties

Location

Type: string

A comment describing the physical location of the server.

Contact


Contact information for the system administrator (email or name).

Type: stringFormat: email
Type: string
Must match regular expression: ^[-_a-zA-Z0-9\s]*$

Traps

Type: boolean

Whether SNMP traps are enabled.

V3

Type: boolean

Whether SNMP version 3 is enabled. Enabling version 3 also requires username, authtype and password.

Community

Type: string

SNMP community string for v1/v2c access. Allows letters, numbers, hyphens, underscores, and spaces.

Must match regular expression: ^[-_a-zA-Z0-9\s]*$

V3 Username

Type: string

Username for SNMP version 3 authentication.

Must be at most 20 characters long

V3 Authtype

Type: enum (of string)

Authentication type for SNMP version 3 (empty string means no authentication).

Must be one of:
  • ""
  • "MD5"
  • "SHA"

V3 Password

Type: string

Password for SNMP version 3 authentication.

V3 Privproto


Privacy protocol for SNMP version 3 encryption. null means no encryption. If set, ['AES'|'DES'], a privpassphrase must be supplied.

Type: enum (of null or string)
Must be one of:
  • null
  • "AES"
  • "DES"
Type: null

V3 Privpassphrase


Privacy passphrase for SNMP version 3 encryption. This field is required when privproto is set.

Type: string
Type: null

Loglevel

Type: integer

Logging level for SNMP daemon (0=emergency to 7=debug).

Value must be greater or equal to 0 and lesser or equal to 7

Options

Type: string

Additional SNMP daemon configuration options. Manual settings should be used with caution as they may render the SNMP service non-functional.

Zilstat

Type: boolean

Whether to enable ZFS dataset statistics collection for SNMP.

SNMPEntry

Type: object

The updated SNMP service configuration.

No Additional Properties

Location

Type: string

A comment describing the physical location of the server.

Contact


Contact information for the system administrator (email or name).

Type: stringFormat: email
Type: string
Must match regular expression: ^[-_a-zA-Z0-9\s]*$

Traps

Type: boolean

Whether SNMP traps are enabled.

V3

Type: boolean

Whether SNMP version 3 is enabled. Enabling version 3 also requires username, authtype and password.

Community

Type: string Default: "public"

SNMP community string for v1/v2c access. Allows letters, numbers, hyphens, underscores, and spaces.

Must match regular expression: ^[-_a-zA-Z0-9\s]*$

V3 Username

Type: string

Username for SNMP version 3 authentication.

Must be at most 20 characters long

V3 Authtype

Type: enum (of string)

Authentication type for SNMP version 3 (empty string means no authentication).

Must be one of:
  • ""
  • "MD5"
  • "SHA"

V3 Password

Type: string

Password for SNMP version 3 authentication.

V3 Privproto


Privacy protocol for SNMP version 3 encryption. null means no encryption. If set, ['AES'|'DES'], a privpassphrase must be supplied.

Type: enum (of null or string)
Must be one of:
  • null
  • "AES"
  • "DES"
Type: null

V3 Privpassphrase

Default: null

Privacy passphrase for SNMP version 3 encryption. This field is required when privproto is set.

Type: string
Type: null

Loglevel

Type: integer

Logging level for SNMP daemon (0=emergency to 7=debug).

Value must be greater or equal to 0 and lesser or equal to 7

Options

Type: string

Additional SNMP daemon configuration options. Manual settings should be used with caution as they may render the SNMP service non-functional.

Zilstat

Type: boolean

Whether to enable ZFS dataset statistics collection for SNMP.

Id

Type: integer

Placeholder identifier. Not used as there is only one.



Required roles: SYSTEM_GENERAL_WRITE