Bits&Bricks
$ show search

Searches the blog, kb and courses. Press / to open it from anywhere, ↓ ↑ to move through the results and Enter to open one. On notes and lessons, [ and ] go to the previous and next page.

$ show running-config | section common-issues

Commands in common-issues/

1 snippet from 1 note, in tree order. Each heading links to its note. for a cheat sheet.

Device Internal Error

#!/bin/bash
read -p "DNAC IP: " IP
read -p "DEVICE ID: " DEVICEID
read -p "Username: " USERNAME
read -p "Enter your password: " -s PASSWORD

TOKEN=`curl -X POST -u $USERNAME:$PASSWORD -s https://${IP}/api/system/v1/identitymgmt/token --insecure | jq '.Token' | tr -d '"'`
curl -X PUT -H "content-type: application/json" -H "X-AUTH-TOKEN:$TOKEN" -d "$DEVICEID" "https://${IP}/api/v1/network-device/sync-with-cleanup?forceSync=true" --insecure