Collectd SNMP Configuration

Configures, deletes, and retrieves SNMP configuration for collectd. The URI to configure data for collectd is:

/collectd/

Use the following POST method to modify collectd SNMP authentication login configuration:

https://<host>/restconf/data
 {
  "icx-collectd:collectd": {
    "snmp": {
      "key": "aaaaa-bbbbbb-cccccc-ddddddd",
      "data": [
      {
        "name": "single1",
          "table": false,
          "walktree": false,
          "group-name" : "group-1",
          "group-interval" : 30,
          "oid" : ".1.3.6.1.2.1.1.3.0",
          "oid" : ".1.3.6.1.2.1.1.4.0"
      },
      {
        "name": "table1",
        "table": true,
          "walktree": false,
          "group-name" : "group-2",
          "group-interval" : 60,
          "oid": ".1.3.6.1.2.1.1.3",
          "oid": ".1.3.6.1.4.1.1991.1.1.2.1.49",
          "oid": ".1.3.6.1.4.1.1991.1.1.1.4.1.1.2"
      },
      {
        "name": "tree1",
        "table": false,
          "walktree": true,
          "group-name" : "group-3",
          "group-interval" : 90,
          "oid": ".1.3.6.1.2.1.2"
      }
      ]
    }
  }
}

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/collectd
Request body: None
Response body:     
Output-1
{
   "icx-collectd:collectd" : [
      null
   ]
}
Output-2
{
   "icx-collectd:collectd" : {
      "snmp" : {
         "data" : [
            {
               "walktree" : false,
               "oid" : [
                  ".1.3.6.1.2.1.1.3.0",
                  ".1.3.6.1.2.1.1.4.0"
               ],
               "group-name" : "group-1",
               "table" : false,
               "name" : "single1",
               "group-interval" : 30
            },
            {
               "walktree" : false,
               "oid" : [
                  ".1.3.6.1.2.1.1.3",
                  ".1.3.6.1.4.1.1991.1.1.2.1.49",
                  ".1.3.6.1.4.1.1991.1.1.1.4.1.1.2"
               ],
               "group-name" : "group-2",
               "table" : true,
               "name" : "table1",
               "group-interval" : 60
            },
            {
               "walktree" : true,
               "oid" : [
                  ".1.3.6.1.2.1.2"
               ],
               "group-name" : "group-3",
               "table" : false,
               "name" : "tree1",
               "group-interval" : 90
            }
         ],
         "key" : "aaaaa-bbbbbb-cccccc-ddddddd"
      }
   }
}

PATCH method

URL: https://<host>/restconf/data/collectd
Request body:
{
  "icx-collectd:collectd": {
    "snmp": {
      "key": "aaaaa-bbbbbb-cccccc-ddddddd",
      "data": [
      {
        "name": "single1",
          "table": false,
          "walktree": false,
          "group-name" : "group-1",
          "group-interval" : 30,
          "oid" : ".1.3.6.1.2.1.1.3.0",
          "oid" : ".1.3.6.1.2.1.1.4.0"
      },
      {
        "name": "table1",
        "table": true,
          "walktree": false,
          "group-name" : "group-2",
          "group-interval" : 60,
          "oid": ".1.3.6.1.2.1.1.3",
          "oid": ".1.3.6.1.4.1.1991.1.1.2.1.49",
          "oid": ".1.3.6.1.4.1.1991.1.1.1.4.1.1.2"
      },
      {
        "name": "tree1",
        "table": false,
          "walktree": true,
          "group-name" : "group-3",
          "group-interval" : 90,
          "oid": ".1.3.6.1.2.1.2"
      }
      ]
    }
  }
}

Response body: None    

DELETE

URL: https://<host>/restconf/data/collectd/snmp/data=InterfaceValues1001
Request body: None
Response body: None