upgrade nxos
POST https://{{dcnm}}/rest/imagemanagement/job
Uses same endpoint as compatibility check, but with unique payload for image upgrade.
Full payload example:
Example Body: {"id":"1","eraseStartUp":false,"saverunningConfig":true,"archiveFailureLog":true,"concurrentExec":true,"executeImmediately":false, "comments":"","jobOwner":"admin","jobType":0,"strScheduledTime":"Apr/26/2019,11:30:00","strJobCreationTime":"Apr/26/2019,11:30:00", "maintenanceMode":false,"skipDisruptiveUpgrade":false,"taskList":[{"kickStartImage":"/NotApplicable","systemImageFile":"/var/lib/dcnm/images/nxos.9.2.3.bin", "ssiImageFile":"/NotApplicable","installLog":"","taskAction":"Completed","statusDescr":"","compatibilty_desc":"Disruptiveupgrade", "path":null,"strStatus":"NA","strCompStatus":"SUCCESS","vrfSelected":"management","actionType":0,"sequence":1,"jobId":1,"bdualSup":false, "strScheduledTime":null,"strCompletedTime":null,"bMaintenanceMode":false,"parallelLineCardUpgrade":false,"noReload":false,"nonDisruptive":false, "nonInterruptive":true,"biosForce":false,"id":2,"hostName":"spine-1","ipAddress":"10.195.198.244","platform":"N9K","version":"7.0(3)I7(6)", "serverName":"Default_SCP_Repository","maintenanceDesc":null,"type":"SERVER","status":"NA","compatibilty_status":"SUCCESS"}]}
Request Body
{"id"=>-1, "eraseStartUp"=>false, "saverunningConfig"=>true, "archiveFailureLog"=>true, "concurrentExec"=>true, "executeImmediately"=>true, "jobType"=>2, "taskList"=>[{"hostName"=>"93240-FX2-1", "ipAddress"=>"172.25.74.70", "platform"=>"N9K", "version"=>"9.3(4)", "kickStartImage"=>"/Not Applicable", "systemImageFile"=>"/var/lib/dcnm//upload//N9K/nxos.9.3.5.bin", "ssiImageFile"=>"/Not Applicable", "type"=>"SERVER", "vrfSelected"=>"management", "parallelLineCardUpgrade"=>false, "compatibilty_status"=>"SKIPPED", "serverName"=>"Default_SCP_Repository", "sequence"=>1, "noReload"=>false, "nonDisruptive"=>false, "nonInterruptive"=>true, "biosForce"=>true}, {"hostName"=>"93240-FX2-2", "ipAddress"=>"172.25.74.61", "platform"=>"N9K", "version"=>"9.3(4)", "kickStartImage"=>"/Not Applicable", "systemImageFile"=>"bootflash:/nxos.9.3.5.bin", "ssiImageFile"=>"/Not Applicable", "type"=>"DEVICE", "vrfSelected"=>"management", "parallelLineCardUpgrade"=>false, "compatibilty_status"=>"SKIPPED", "sequence"=>2, "noReload"=>false, "nonDisruptive"=>false, "nonInterruptive"=>true, "biosForce"=>true}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
dcnm-token | string |