To control the settings of the SNMP agent, use the following values of the querytype field:
- getsnmp - get the parameters of the SNMP agent;
- setsnmp - set SNMP agent parameters
- noreboot - not used;
- version - protocol version, possible values:
- rocommunity - community for reading (v1 / v2c);
- rwcommunity - community for writing (v1 / v2c);
- user - user name (v3);
- level - security level (v3), possible values:
- 'noauth' - without authorization and encryption;
- 'auth' - only authorization;
- 'priv' - authorization and encryption;
- auth_type - type of authorization (v3), possible values:
- auth_pass - authorization password (v3);
- priv_type - type of encryption (v3), possible values:
- priv_pass - encryption password (v3);
After you set the parameters, you do not need to reboot the system. Only the snmpd service is automatically rebooted and the changes take effect.