Configuring Rollbacks

Rollback to Checkpoint File

Rollback to Checkpoint File
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
    "actionLSubj": {
        "attributes": {
            "dn": "sys/action/lsubj-[sys]"
        }
        "children" : [{
            "topSystemRollbackLTask": {
                "attributes": {
                        "adminSt": "start",
                        "name": "abcd",
                        "uri": "",
                        "dn": "sys/action/lsubj-[sys]/topSystemRollbackLTask",
                        "freq": "one-shot"
                }
            }
       }]
    }
}

{
    "imdata":[]
}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config checkpoint abcd

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Bootflash

Rollback to Config File on Bootflash
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
                "actionLSubj": {
                    "attributes": {
                        "dn": "sys/action/lsubj-[sys]"
                    }
                    "children" : [{
                        "topSystemCreateCheckpointLTask": {
                            "attributes": {
                                    "adminSt": "start",
                                    "name": "",
                                    "description": "",
                                    "filename": "bootflash:ckp1",
                                    "delete": "no",
                                    "dn": "sys/action/lsubj-[sys]/topSystemCreateCheckpointLTask",
                                    "freq": "one-shot"
                            }
                        }
                    }]
                }
            }

{
    "imdata":[]
}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file bootflash:ckp1

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Volatile

Rollback to Config File on Volatile
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
              "actionLSubj": {
                  "attributes": {
                      "dn": "sys/action/lsubj-[sys]"
                  }
                  "children" : [{
                      "topSystemCreateCheckpointLTask": {
                            "attributes": {
                            "adminSt": "start",
                            "name": "",
                            "description": "",
                            "filename": "volatile:ckp1",
                            "delete": "no",
                            "dn": "sys/action/lsubj-[sys]/topSystemCreateCheckpointLTask",
                            "freq": "one-shot"
                }
            }
        }]
    }
}

{
    "imdata":[]
}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file volatile:ckp

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Bootflash with Verbose Option

Rollback to Config File on Bootflash with Verbose Option
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
                "actionLSubj": {
                    "attributes": {
                        "dn": "sys/action/lsubj-[sys]"
                    }
                    "children" : [{
                        "topSystemRollbackLTask": {
                            "attributes": {
                                    "adminSt": "start",
                                    "uri": "bootflash:ckp2",
                                    "verbose": "verbose",
                                    "dn": "sys/action/lsubj-[sys]/topSystemRollbackLTask",
                                    "freq": "one-shot"
                            }
                        }
                    }]
                }
            }

{"imdata":[]}

Note: All the rollback examples can be run with verbose option by setting “verbose”: “verbose” in the attributes section of the payloads.


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file bootflash:ckp2 verbose

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Bootflash with Stop-At-First-Failure Option

Rollback to Config File on Bootflash with Stop-At-First-Failure Option
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
                "actionLSubj": {
                    "attributes": {
                        "dn": "sys/action/lsubj-[sys]"
                    }
                    "children" : [{
                        "topSystemRollbackLTask": {
                            "attributes": {
                                    "adminSt": "start",
                                    "uri": "bootflash:ckp2",
                                    "mode": "stop-at-first-failure",
                                    "dn": "sys/action/lsubj-[sys]/topSystemRollbackLTask",
                                    "freq": "one-shot"
                            }
                        }
                    }]
                }
            }

{"imdata":[]}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file bootflash:ckp1 stop-at-first-failure

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Bootflash with Best-Effort Option

Rollback to Config File on Bootflash with Best-Effort Option
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
                       "actionLSubj": {
                            "attributes": {
                                  "dn": "sys/action/lsubj-[sys]"
                            }
                            "children" : [{
                                  "topSystemRollbackLTask": {
                                         "attributes": {
                                                     "adminSt": "start",
                                                     "uri": "bootflash:ckp2",
                                                     "mode": "best-effort",
                                                     "dn": "sys/action/lsubj-[sys]/topSystemRollbackLTask",
                                                     "freq": "one-shot"
                                         }
                                  }
                            }]
                       }
                 }

{"imdata":[]}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file bootflash:ckp1 best-effort

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Rollback to Config File on Bootflash with Atomic Option

Rollback to Config File on Bootflash with Atomic Option
POST http://<mgmt0_IP>/api/mo/sys/action.json
{
                       "actionLSubj": {
                            "attributes": {
                                  "dn": "sys/action/lsubj-[sys]"
                            }
                            "children" : [{
                                  "topSystemRollbackLTask": {
                                         "attributes": {
                                                     "adminSt": "start",
                                                     "uri": "bootflash:ckp2",
                                                     "mode": "atomic",
                                                     "dn": "sys/action/lsubj-[sys]/topSystemRollbackLTask",
                                                     "freq": "one-shot"
                                         }
                                  }
                            }]
                       }
                 }

{"imdata":[]}


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right.

rollback running-config file bootflash:ckp1 atmomic

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference: http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html