Json QOS speed change template

Below is the JSON format I am trying to use to change the downlink and uplink rates on an SM.  It isn't updating and rebooting.  Could anyone lend a hand?

{
"qosConfig": {
"uplinkBurstAllocation": "250000",
"largeVCQ": "0",
"prioritizeTcpAck": "1",
"sustainedUplinkDataRate": "1000",
"sustainedDownlinkDataRate": "3000",
"downlinkBurstAllocation": "250000",
"maxDownlinkDataRate": "0",
"maxUplinkDataRate": "0"
},
"configFileParameters": {
"rebootIfRequired": true
},
"cfgFileString": "Canopy configuration file",
"cfgFileVersion": "1.0"
}

Thanks!

Try the following instead.

{
	"userParameters": {
		"qosConfig": {
			"uplinkBurstAllocation": "250000",
			"largeVCQ": "0",
			"prioritizeTcpAck": "1",
			"sustainedUplinkDataRate": "1000",
			"sustainedDownlinkDataRate": "3000",
			"downlinkBurstAllocation": "250000",
			"maxDownlinkDataRate": "0",
			"maxUplinkDataRate": "0"
		}
	},
	"cfgFileString": "Canopy configuration file",
	"cfgFileVersion": "1.0"
}

I placed the configuration parameters within "userParameters" and removed "configFileParameters".  "configFileParameters" options are not applicable when making configuration changes via cnMaestro.  cnMaestro tells the device to reboot automatically, if required, to fully apply the configuraiton template. 

If you are uploading a configuration file directly to the device via its web UI, then add "configFileParameters" back.

1 Like

Hi Jordan,

I created a template with those parameters, but the SM won’t load it. I get an error that says ConfigImportFailed…but when I remove the burstallocation and maxdataRate parameters, and only include the sustained data rate it loads fine…is there something I am doing wrong? here is the template that works fine…

{
	"userParameters": {
		"qosConfig": {
			"sustainedUplinkDataRate": 5000,
			"sustainedDownlinkDataRate": 25000
		}
	},
	"cfgFileString": "Canopy configuration file",
	"cfgFileVersion": "1.0"
}

But when I add the lines for “downlinkBurstAllocation” and “uplinkBurstAllocation”: “250000”, the SM won’t load the template, even though the template saves without errors in cnmaestro

Just to clarify…the SM will load this no problem…

{
 "userParameters": {
  "qosConfig": {
   "sustainedUplinkDataRate": 5000,
   "sustainedDownlinkDataRate": 25000
  }
 },
 "cfgFileString": "Canopy configuration file",
 "cfgFileVersion": "1.0"
}

But, it will not load this…

{
 "userParameters": {
  "qosConfig": {
   "sustainedUplinkDataRate": 5000,
   "sustainedDownlinkDataRate": 25000,
   "downlinkBurstAllocation": "27500",
   "uplinkBurstAllocation": "5500"
  }
 },
 "cfgFileString": "Canopy configuration file",
 "cfgFileVersion": "1.0"
}

Any suggestions?

This is not my area of expertise at all, but it looks like the data types of the variables might have changed from strings to integers since @Jordan wrote that post (since the unit accepts the file with sustainedUplinkDataRate specified as an integer).

Have you tried removing the quotes from around 27500 and 5500?

2 Likes

That’s exactly what the issue was. Thank you!

1 Like