Changing the cnMaestro URL on all of my SM's

I'm trying to change the cnMaestro URL in my SM's via a template I made but it does not seem to work. I may have made it wrong but here is what I have. Also do I need to specify the password as well? It said it successfully imported it into the SM but when I log into the SM the URL for cnMaestro is still the same.

{
"cnMaestroConfig": {
"cnMaestroUrl": "https://mycnmaestroiphere",
"cnMaestroEnable": 1
}
}

Try using the following template instead:

{
	"cfgFileString": "Canopy configuration file",
	"cfgFileVersion": "1.0",
	"userParameters": {
		"cnMaestroConfig": {
			"cnMaestroUrl": "https://mycnmaestroiphere",
			"cnMaestroEnable": 1
		}
	}
}

For On-premises installations a Cambium ID/password is not required.

FYI,  If you have not configured any URLS in SM , and AP is onboarded to cnMaestro then SM will automatically try to  on-board to the same cnMaestro Account.  This will feature will not work if you have configured a cnMaestro URL in SM ( either statically in web GUI or via dhcp 43) . 

So for any new SM's there is no real need configure any cnMaestro URL .

Hi, this code still is valid ? It is not working with versions 4.4.2 and 4.4.3

I am trying with :

{
	"template_props": {
		"templateName": "",
		"templateDescription": "",
		"device_type": "",
		"version": "4.4.3-RC1"
	},
	"device_props": {
		"userParameters": {
			"cnMaestroConfig": {
				"cambiumDeviceAgentEnable": "1",
				"cambiumDeviceAgentCNSURL": "https:\/\/172.16.41.101",
				"cambiumCNSDeviceAgentID": "",
				"cambiumCNSDeviceAgentPassword": ""
			}
		}
	}
}

But dosen´t work :( Any help?

@Jordan this template dosen´t works, Could you say me how to change it for exec on SM and APs with 4.4.x?¿

Thanks in advance

{
	"cfgFileString": "Canopy configuration file",
	"cfgFileVersion": "1.0",
	"userParameters": {
		"cnMaestroConfig": {
			"cnMaestroUrl": "https://mycnmaestroiphere",
			"cnMaestroEnable": 1
		}
	}
}

this code works :

{
	"device_props": {
				"cambiumDeviceAgentEnable": "1",
				"cambiumDeviceAgentCNSURL": "https:\/\/172.16.41.101",
				"cambiumCNSDeviceAgentID": "",
				"cambiumCNSDeviceAgentPassword": ""
}

}

Regards.

1 Like

Hi Jordan, does this template work on both PMP450s and ePMP 1000s?

Hi @bcotton,

This template only works for PMP. ePMP has a different format. You can create your own ePMP template by exporting its configuration either via cnMaestro or on the device web GUI, trim out the configuration you aren’t interested in changing and adding it as a template in cnMaestro.

To help with this I recommend a JSON parser like https://jsonlint.com/ to validate that the JSON is still valid after editing. It will highlight issues like missing curly brackets or an extra end of line comma for the last parameter in an object.

1 Like