Template to enable/disable ethernet port on ePMP SMs via cnMaestro

Summary: This article will guide you through the steps to enable or disable the ethernet link on the subscriber modules using a template.

Product: ePMP Subscriber modules.

Solution:

The Ethernet link enabling or disabling option is available in the GUI under the Configuration>Network tab as shown below:

However, if we would wish to enable or disable it using a template via cnMaestro this article will help you with it.

Here is a template to enable the Ethernet link:

{
  "device_props": {
    "networkLanEnabled": "1"
  }
}

As you could notice that it has a parameter “networkLanEnabled” defined as 1 which signifies that the Ethernet link is enabled. To disable it we would simply change this parameter to 0 as shown below:

Here is a template to disable the Ethernet link:

{
  "device_props": {
    "networkLanEnabled": "0"
  }
}

Note: The wireless link will drop when pushing this template.

To create a JSON script simply save the file extension as .json

To add a template in cnMaestro, go to Configuration>Templates>Add Template and select ePMP:

Choose the Device mode, Configuration text file, or enter a valid JSON file in the text box then click on save:

Refer to the community post available here which will help you with creating templates: