DNS change Template

Can i get some hlep creating a template to change DNS in my SMs? Here's what I have so far:

{
"userParameters": {
"networkConfig": {
"dnsPrimaryMgmtIP": "8.8.8.8",
"dnsAlternateMgmtIP": "8.8.4.4",
},

},
"cfgFileString": "Canopy configuration file",
"cfgFileVersion": "1.0"
}

this is for PMP450 devices fyi

any help here would be great.

1 Like

JBrantley,

The JSON format was not correct and that is why the device was rejecting the config.
I have corrected the format for you.

**Please Note**

The "rebootIfRequired" is configured for true, so this will reboot the SM as soon as the template is imported. 

{
    "userParameters": {
      "networkConfig": {
        "dnsPrimaryMgmtIP": "8.8.8.8",
        "dnsAlternateMgmtIP": "8.8.4.4",
        "dnsIpState": 1
      }
    },
    "cfgUtcTimestamp": "2020-06-19T14:15:12Z",
    "configFileParameters": {
      "rebootIfRequired": true,
      "setToDefaults": false
    },
    "cfgFileString": "Canopy configuration file",
    "cfgFileVersion": "1.0"
  }

I have attached the files for this template.

Evan,

1 Like

Thank you! Can you provide the same template for epmp 1000 SMs?

Try:

{
"device_props": {
"networkBridgeDNSIPAddrPrimary": "8.8.8.8",
"networkBridgeDNSIPAddrSecondary": "8.8.4.4", } }

Note that this is the DNS settings for Bridge mode, not NAT or Router mode.

j

1 Like