Auiditing a C9300 switch from NinjaOne (Summer 2025)
Copy and paste the following into a Notepad .txt file and change the show cdp neighbors command as required.
- We use Notepad because it does not support 'smart spaces' or hidden punctation that can be introduced by Word, OneNote, Fresh KBs etc.
-- Switches do not support non-standard characters like 'smart spaces' in the CLI thus removing them automatically with Notepad will reduce
-- errors.
terminal length 0
show run interface vlan 6
show module
show version | include BOOTLDR
show switch neighbors
show stack-power
show inventory
show cdp neighbors | include ! write your site code here and delete the '!'
terminal length 40
Then copy out of Notepad into a completely fresh CLI (Command Line Interface) SSH seesion of the switch in Ninja.
Finally, use the
button at the top right of the SSH window to download a .txt file for review. You can then close the SSH session as it is no longer required.
Please make sure that the terminal lengh 40 command runs otherwise the next person to use the switch may struggle use the CLI.
Running:
terminal length 0
show run interface vlan 6
show module
show version | include BOOTLDR
show switch neighbors
show stack-power
show inventory
show cdp neighbors | include NAC
terminal length 40
Gives the readout of:
NAC_Core#terminal length 0
NAC_Core#show run interface vlan 6
Building configuration...
Current configuration : 85 bytes
!
interface Vlan6
description Management
ip address 10.12.152.1 255.255.254.0
end
NAC_Core#show module
Switch Ports Model Serial No. MAC address Hw Ver. Sw Ver.
------ ----- --------- ----------- -------------- ------- --------
1 65 C9300-48P FCW2239D04M 0cd0.f819.d880 V02 17.08.01
2 65 C9300-48T FCW2238E0WT 700b.4f28.7700 V02 17.08.01
3 41 C9300-24UX FVH2815LA9E b44c.9093.8080 V09 17.08.01
NAC_Core#show version | include BOOTLDR
BOOTLDR: System Bootstrap, Version 17.8.1r[FC2], RELEASE SOFTWARE (P)
NAC_Core#show switch neighbors
Switch # Port 1 Port 2
-------- ------ ------
1 2 3
2 3 1
3 1 2
NAC_Core#show stack-power
Power Stack Stack Stack Total Rsvd Alloc Sw_Avail Num Num
Name Mode Topolgy Pwr(W) Pwr(W) Pwr(W) Pwr(W) SW PS
-------------------- ------ ------- ------ ------ ------ ------ ----- -----
Powerstack-3 SP-PS Ring 2165 30 1111 1024 3 3
NAC_Core#show inventory
NAME: "c93xx Stack", DESCR: "c93xx Stack"
PID: C9300-48P , VID: V02 , SN: FCW2239D04M
NAME: "Switch 1", DESCR: "C9300-48P"
PID: C9300-48P , VID: V02 , SN: FCW2239D04M
NAME: "StackPort1/1", DESCR: "StackPort1/1"
PID: STACK-T1-50CM , VID: V01 , SN: MOC2236A63P
NAME: "StackPort1/2", DESCR: "StackPort1/2"
PID: STACK-T1-50CM , VID: V01 , SN: MOG2752A3J8
NAME: "Switch 1 - Power Supply A", DESCR: "Switch 1 - Power Supply A"
PID: PWR-C1-715WAC , VID: V02 , SN: DCA2230G2SH
NAME: "Switch 1 FRU Uplink Module 1", DESCR: "8x10G Uplink Module"
PID: C9300-NM-8X , VID: V01 , SN: FOC22330JS8
NAME: "Te1/1/1", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231DDVT
NAME: "Te1/1/2", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4D2
NAME: "Te1/1/3", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4CC
NAME: "Te1/1/4", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4EH
NAME: "Te1/1/5", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D37V
NAME: "Te1/1/6", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4EG
NAME: "Te1/1/7", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231DDVL
NAME: "Te1/1/8", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4D3
NAME: "Switch 2", DESCR: "C9300-48T"
PID: C9300-48T , VID: V02 , SN: FCW2238E0WT
NAME: "StackPort2/1", DESCR: "StackPort2/1"
PID: STACK-T1-50CM , VID: V01 , SN: MOC2236A62Y
NAME: "StackPort2/2", DESCR: "StackPort2/2"
PID: STACK-T1-50CM , VID: V01 , SN: MOC2236A63P
NAME: "Switch 2 - Power Supply A", DESCR: "Switch 2 - Power Supply A"
PID: PWR-C1-350WAC , VID: V02 , SN: ART2238F0JG
NAME: "Switch 2 FRU Uplink Module 1", DESCR: "8x10G Uplink Module"
PID: C9300-NM-8X , VID: V01 , SN: FOC22330HXM
NAME: "Te2/1/1", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4D1
NAME: "Te2/1/2", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231DDVJ
NAME: "Te2/1/3", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D4R1
NAME: "Te2/1/4", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D37U
NAME: "Te2/1/5", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2231D388
NAME: "Te2/1/8", DESCR: "SFP-10GBase-SR"
PID: SFP-10G-SR-S , VID: V01 , SN: AVD2236DE12
NAME: "Switch 3", DESCR: "C9300-24UX"
PID: C9300-24UX , VID: V09 , SN: FVH2815LA9E
NAME: "StackPort3/1", DESCR: "StackPort3/1"
PID: STACK-T1-50CM , VID: V01 , SN: MOG2752A3J8
NAME: "StackPort3/2", DESCR: "StackPort3/2"
PID: STACK-T1-50CM , VID: V01 , SN: MOC2236A62Y
NAME: "Switch 3 - Power Supply B", DESCR: "Switch 3 - Power Supply B"
PID: PWR-C1-1100WAC-P , VID: V01 , SN: ART2733SAHQ
NAC_Core#show cdp neighbors | include NAC
NAC_Hub1.GAT Ten 1/1/1 155 S I C9300-48P Ten 1/1/1
NAC_Hub1.GAT Ten 2/1/1 136 S I C9300-48P Ten 2/1/1
NAC_Hub2.GAT Ten 1/1/2 135 S I C9300-24P Ten 1/1/1
NAC_Hub2.GAT Ten 2/1/2 137 S I C9300-24P Ten 2/1/1
NAC_Hub3.GAT Ten 1/1/3 134 S I C9300-48P Ten 1/1/1
NAC_Hub3.GAT Ten 2/1/3 152 S I C9300-48P Ten 2/1/1
NAC_Hub4.GAT Ten 2/1/4 131 S I C9300-24P Ten 2/1/1
NAC_Hub4.GAT Ten 1/1/4 155 S I C9300-24P Ten 1/1/1
NAC_Hub5.GAT Ten 1/1/5 171 S I C9300-24P Ten 1/1/1
NAC_Hub5.GAT Ten 2/1/5 147 S I C9300-24P Ten 2/1/1
NAC_Hub6.GAT Ten 1/1/6 136 S I C9300-24P Ten 1/1/1
NAC_Hub7.GAT Ten 1/1/7 143 S I C9300-24P Ten 1/1/1
NAC_PAC.GAT Ten 1/1/8 133 S I C9300-24U Ten 1/1/1
NAC_Core#terminal length 40
NAC_Core#