SNMP-Server Group

Configures, modifies, and retrieves SNMP server group configuration. The URI to configure data for SNMP server group is:

 /snmp-server   

To create SNMP server group configuration using POST method:

/snmp-server

To delete SNMP server group configuration in the system:

/snmp-server/group

Supported HTTP Operations

Note: PUT operation is not supported.

GET method

URL: https://10.177.125.153/restconf/data/snmp-server
Request body: None
Response body:                              },
                  "excl-ip-address" : [
                     "20.20.20.21",
                     "20.20.20.22",
                     "20.20.20.23",
                     "20.20.20.24",
                     "20.20.20.25"
                  ]
               }
            ]
         }
      },
      "state" : {
         "ipv6-state" : {},
         "ipv4-state" : {}
      }
   }
}

POST method

URL: https://10.177.125.153/restconf/data/snmp-server
Request body:
 {
         "ipv4-config" : {
            "enable" : "false",
            "dhcpv4-pool" : [
               {
                  "name" : "qrst",
                  "subnet_network" : "50.50.50.0",
                  "prefix-length" : "24",
                  "excl-ip-address" : "50.50.50.21",
                  "excl-ip-address" : "50.50.50.22",
                  "excl-ip-address" : "50.50.50.23",
                  "excl-ip-address" : "50.50.50.24",
                  "excl-ip-address" : "50.50.50.25",
                  "excl-ip-address-range" : [
                     {
                        "start-ip" : "50.50.50.30",
                        "end-ip" : "50.50.50.39"
                     },
                     {
                        "start-ip" : "50.50.50.40",
                        "end-ip" : "50.50.50.49"
                     }
                  ],
                  "lease-time" : {
                     "day" : "3",
                     "hour" : "10",
                     "minute" : "50"
                  },
                  "dhcp-default-router" : "50.50.50.11",
                  "dhcp-default-router" : "50.50.50.12",
                  "dhcp-default-router" : "50.50.50.14",
                  "option" : {
                     "dhcp-option" : [
                        {
                           "option-num" : "6",
                           "ip-format" : "50.50.50.8"
                        },
                        {
                           "option-num" : "42",
                           "ip-format" : "50.50.50.100"
                        }
                     ]
                  }
               }
            ]
       }
}
Response body: None    

PATCH method

URL: https://10.177.125.152/restconf/data/dhcp-server/config/ipv4-config/dhcpv4-pool=mnop   
Request body:
{
            "dhcpv4-pool" : [
               {
                  "name" : "mnop",
                  "subnet_network" : "40.40.40.0",
                  "prefix-length" : "24",
                  "excl-ip-address" : "40.40.40.41",
                  "excl-ip-address" : "40.40.40.42",
                  "lease-time" : {
                     "day" : "4",
                     "hour" : "20",
                     "minute" : "50"
                  }
               }
            ]
}
Response body: None    

DELETE

URL: https://10.177.125.152/restconf/data/dhcp-server
Request body: None    
Response body: None