Is there a way via cnMaestro API or SNMP to disable/enable the Ethernet interface of an SM?
If this can be set via a configuration template, then yes. After manually creating the template in the cnMaestro UI you can use the API to push it to devices using the “devices” API.
PUT /api/v1/devices/{MAC Address}
{
“template”: “template name”
}
1 Like
Try these,
Enable
{
"userParameters": {
"networkConfig": {
"enable8023linkBox": 1
}
},
"cfgFileString": "Canopy configuration file",
"cfgFileVersion": "1.0"
}
disable
{
"userParameters": {
"networkConfig": {
"enable8023linkBox": 0
}
},
"cfgFileString": "Canopy configuration file",
"cfgFileVersion": "1.0"
}
1 Like