DNAC-PNP RMA App
Description
DNAC-PNP RMA App helps in restoring the configuration from faulty/old Cisco devices with newly shipped device. Post RMA the new device would have the exact same configuration as the faulty/old device.
RMA Process
- Device connects(ssh) to the faulty/old device
- Fetches the config the device
- Replace the old device with the new device
- New device calls home to DNAC, which is picked up by PNP
- Accept EULA on the new device
- Reload the device
- Push the config fetched from the faulty/old device to the new device
- Once provisioned the new device would have the same configuration as the faulty/old device
Assumptions
- The faulty/old device to be RMA’d is accessible via SSH, to get the Config from the device (Wouldn’t be able to retrieve the config when the device is totally down)
- The new device is exact same device as the old device, not all the commands are supported on different pids.
Run from Docker
Run docker container with input parameters
Install and run locally (Ignore if using PNP RMA App in docker)
- Clone the repo from https://wwwin-github.cisco.com/pnp/appdev
- In Terminal 1,
- Navigate to appdev directory
- Update conf/inputs.json, with DNAC Credentials, DNAC IP Address
- Navigate back to appdev directory
- Run command pip install .
- Run pnp-rma
- In Terminal 2
- Navigate to rma-ui/dna-app
- Run the command npm install, once installation is complete
- Run the command npm start
- PNP RMA App would be available in http://localhost:3000
Using DNAC-PNP RMA App
- Open URL http://localhost:3000 in browser
- Shows up all the devices avaialable in DNAC PNP UI
- Click Replace against the device to be replaced
- Input the new device serial number
- The status starts showing up in status column
- Once config fetch stage is complete the app waits for the new device to be contacted in PNP, now remove the old device from the network and hook the new device
- The new device would call home to the PNP server.
- Once the new device is connected, the app moves to the next stage, Provisioning where the app accepts the EULA on the new device and replaces the config from the old device on to the new device.