FND 4.3 device-configuration templates
Understand the default values and select the other parameters as required and save the template. Use the (i) button to understand the optional and mandatory parameters.
Once complete, push the configurations to the devices using the Push Configuration tab on the top of the window.
For the FND 4.3.1 release and greater, the JSON formats for editing a particular IC3000 device are as follows:
Bring up interface:
"{
"name": "InterfaceSettings",
"value": {
"ifName": "int1",
"status": 1
}
}
Bring down interface:
{
"name": "InterfaceSettings",
"value": {
"ifName": "int2",
"status": 0
}
}
Setting DHCP:
{
"name": "InterfaceSettings",
"value": {
"ifName": "int3",
"dhcpClient": 1
}
}
Setting static IP:
{
"name": "InterfaceSettings",
"value": {
"ifName": "int4",
"status": 1,
"ipv4": "12.23.34.45",
"netmask": "255.255.255.0"
}
}
Create user:
{
"name": "UserMgmt",
"value": {
"userName": "user1",
"newPassword": "passwd4user1!"
}
}
Delete user:
{
"name": "UserMgmt",
"value": {
"userName": "user1",
"delUser": "True"
}
}
Change user password:
{
"name": "UserMgmt",
"value": {
"userName": "user1",
"oldPassword": "passwd4user1!",
"newPassword": "user1passwd!"
}
}
To download a text file with clean JSON entries, go here:
https://www.cisco.com/c/dam/en/us/td/docs/routers/ic3000/deployment/guide/IC3000-JSON.txt
Note |
Make sure your JSON is validated properly before pushing the configuration to device. It is highly recommended to use a JSON validator such as this one: https://jsonlint.com/ |
Copy and paste your entire device configuration template and see if its set appropriately. Anything that’s commented has to be removed before validation.
A typical comment section in json is between the following characters.
<#--
Comment text here
-->
As an example, a working JSON entry for bringing all the interfaces up on an IC3000 is as follows.
[{
"name": "MgmtProfile",
"value": {
"id": 2,
"name": "PeriodicMetrics",
"interval": 300,
"dataIds": ["5", "18", "23", "24", "25"]
}
}, {
"name": "UserMgmt",
"value": {
"userName": "${device.IOxUserName}",
"newPassword": "${device.IOxUserPassword}"
}
},
{
"name": "MgmtProfile",
"value": {
"id": 1,
"name": "Heartbeat",
"interval": 60,
"dataIds": ["4"]
}
}, {
"name": "InterfaceSettings",
"value": {
"ifName": "int1",
"status": 1
}
}, {
"name": "InterfaceSettings",
"value": {
"ifName": "int2",
"status": 1
}
}, {
"name": "InterfaceSettings",
"value": {
"ifName": "int3",
"status": 1
}
}, {
"name": "InterfaceSettings",
"value": {
"ifName": "int4",
"status": 1
}
}
]