Simple Network Management Protocol (SNMP) is a widely used network monitoring and control protocol. The network structure is consisted of Network Management Station (NMS), SNMP agent and MIB. The NMS uses the SNMP protocol to manage and monitor the devices in the network. When receiving SNMP requests from the NMS, the SNMP agent performs query or modify operation and return the operation results to the NMS. Each SNMP agent has a MIB file, which is a set of objects that can be managed by the NMS. The system currently supports the SNMP GET requests, but not SNMP SET requests. In addition, the system supports SNMP trap.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| general | enable_snmp | boolean | Enables the SNMP agent on the appliance. |
| general | snmp_version | enum | Available values:
|
| general | v3_user | asso | |
| general | ipcontrol | boolean | This function is used to control the SNMP GET requests following View-based Access Control Model (VACM). When this function is enabled, administrators can access the SNMP agent from NMSs whose source IPs have been permitted by the system. |
| general | permit_ip | asso | |
| general | community | string | Sets the SNMP community to which the NMS and the SNMP agent belong. This community string acts as a password to control or limit access from the NMS to the SNMP agent. |
| general | contact | string | Sets the contact information of the SNMP agent. |
| general | location | string | Sets the location information of the SNMP agent. |
| mib_file | mib_file | clitext |
{
"SNMPGeneral": {
"meta": {
"abstract": false,
"verbose_name": SNMP Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: general, mib_file, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: enable_snmp, snmp_version, v3_user, ipcontrol, permit_ip, community, contact, location, mib_file, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| general | enable_snmp | boolean | Enables the SNMP agent on the appliance. |
| general | snmp_version | enum | Available values:
|
| general | v3_user | asso | |
| general | ipcontrol | boolean | This function is used to control the SNMP GET requests following View-based Access Control Model (VACM). When this function is enabled, administrators can access the SNMP agent from NMSs whose source IPs have been permitted by the system. |
| general | permit_ip | asso | |
| general | community | string | Sets the SNMP community to which the NMS and the SNMP agent belong. This community string acts as a password to control or limit access from the NMS to the SNMP agent. |
| general | contact | string | Sets the contact information of the SNMP agent. |
| general | location | string | Sets the location information of the SNMP agent. |
| mib_file | mib_file | clitext |
{
"SNMPGeneral": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SNMPGeneral": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SNMPGeneral": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable_snmp, snmp_version, v3_user, ipcontrol, permit_ip, community, contact, location, mib_file, |
| Field Name | Type | Description |
|---|---|---|
| enable_snmp | boolean | Enables the SNMP agent on the appliance. |
| snmp_version | enum | Available values:
|
| ipcontrol | boolean | This function is used to control the SNMP GET requests following View-based Access Control Model (VACM). When this function is enabled, administrators can access the SNMP agent from NMSs whose source IPs have been permitted by the system. |
| community | string | Sets the SNMP community to which the NMS and the SNMP agent belong. This community string acts as a password to control or limit access from the NMS to the SNMP agent. |
| contact | string | Sets the contact information of the SNMP agent. |
| location | string | Sets the location information of the SNMP agent. |
All configuration fields and their values are replied:
{
"SNMPGeneral": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPGeneral": {
"instance_id":<instance_id>,
"v3_user":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| username | string | |
| level | enum | Available values:
|
| auth_password | string | |
| priv_password | string | Sets the private password used for authorization. |
{
"SNMPV3User": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPGeneral": {
"instance_id":<instance_id>,
"permit_ip":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| netmask_prefixlen | string |
{
"PermitIP": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}