Cisco Nexus C9336PQ (ACI mode)

  1. Start the console session.

    Plug in serial cable to device from PC COM1 port
    Open PuTTY and select "Serial" connection type, leave baud rate (Speed) and other settings as default.
    Plug power into device and if a power button exists, turn it on.
  2. Boot up bypassing the admin password.

    Repeatedly press Ctrl C until you see the loader >  prompt, then type the dir command:
    loader > dir bootflash:: auto-s mem_log.txt.old.gz libmon.logs CpuUsage.Log disk_log.txt lxc urib_api_log.txt diag_bootup aci-n9000-dk9.13.2.6i.bin lost+found
    Type the cmdline recoverymode=1 command then the boot command followed by the .bin file highlighted in blue above:
    loader > cmdline recoverymode=1 loader > boot aci-n9000-dk9.13.2.6i.bin Booting aci-n9000-dk9.13.2.6i.bin Trying diskboot Filesystem type is ext2fs, partition type 0x83 Image valid Image Signature verification was Successful. Boot Time: 7/10/2024 1:53:37
    Further output will bring you to the (none) login: prompt.
  3. Erase configuration.

    Type admin for the login, then type the setup-clean-config.sh command:
    (none) login: admin ******************************************************************************** Fabric discovery in progress, show commands are not fully functional Logout and Login after discovery to continue to use show commands. ******************************************************************************** (none)# setup-clean-config.sh In progress [ 303.470102] t2usd_tor (16064) Ran 5414 msecs in last 5476 msecs In progress [ 308.962867] t2usd_tor (16064) Ran 5394 msecs in last 5420 msecs In progress [ 314.965663] t2usd_tor (16064) Ran 5897 msecs in last 5932 msecs In progress In progress In progress In progress In progress Done
    Type the ls -al /bootflash/aci-n9000-dk9* command then setup-bootvars.sh followed by the .bin file shown:
    (none)# ls -al /bootflash/aci-n9000-dk9* -rw-rw-rw- 1 root root 1450820176 Jul 4 2019 /bootflash/aci-n9000-dk9.13.2.6i.bin (none)# setup-bootvars.sh aci-n9000-dk9.13.2.6i.bin In progress In progress In progress In progress In progress In progress [ 393.939908] vsh_lc.bin (29162) Ran 4971 msecs in last 5092 msecs In progress Done
    You can check that it is correctly added as the startup boot file with the cat /mnt/cfg/0/boot/grub/menu.lst.local and cat /mnt/cfg/1/boot/grub/menu.lst.local commands:
    (none)# cat /mnt/cfg/0/boot/grub/menu.lst.local boot aci-n9000-dk9.13.2.6i.bin (none)# cat /mnt/cfg/1/boot/grub/menu.lst.local boot aci-n9000-dk9.13.2.6i.bin
  4. Reboot the device.

    Type the acidiag touch clean and acidiag touch setup commands followed by the reload command, confirming with y:
    (none)# acidiag touch clean This command will wipe out this device, Proceed? [y/N] y (none)# acidiag touch setup (none)# reload This command will reload the chassis, Proceed (y/n)? [n]: y [ 491.029328] (1720576907.871177) (07-10-2024 02:01:47 UTC) sys_srvc_cctrl_diag_test: dbg_caller_id is 2 [ 491.029430] (1720576907.871281) (07-10-2024 02:01:47 UTC) sys_srvc_cctrl_diag_test: dbg_caller_id is 3 [ 491.029433] cctrl_cmn_reset_sfp_qsfp_phy_ports: cctrli2: card_index 21500 not supported [ 491.029438] (1720576907.871291) (07-10-2024 02:01:47 UTC)cctrl2 card_index=21500, link flap not done. (none)# nvram_klm wrote rr=9 rr_str=PolicyElem Ch reload to nvram [ 497.137253] Collected 8 ext4 filesystems [ 497.187158] Freezing filesystems [ 497.369182] Collected 1 ubi filesystems [ 497.415986] Freezing filesystems [ 497.456567] Done freezing filesystems [ 497.502325] Putting SSD in stdby [ 497.719360] Done putting SSD in stdby 0 [ 497.766140] Done offlining SSD [ 497.803581] obfl_klm writing reset reason 9, PolicyElem Ch reload [ 498.875137] write_mtd_flash_panic: successfully wrote 88 bytes at address 0x420 to RR Iter: 0. [ CISCO SWITCH Ver7.64
  5. Copy all the output from the session into your records.

    Right-click PuTTY's titlebar, from that dropdown menu click on "Copy All to Clipboard"
    Open the file of record certifying the deconfiguration of this device and use CTRL V to paste all the output from PuTTY into that file. Formatting the text with a fixed-width font helps it look more readable.
  6. End the session.

    Close PuTTy.