A collection of useful Cisco CLI commands I frequently use and want to keep for quick reference.
Related: WLC – How to Configure AP
license boot module c1900 technology-package datak9
ip sla restart <ID>
Despite Cisco warnings, you *can* enable support for 3rd-party SFP modules using these undocumented commands:
(config)# service unsupported-transceiver (config)# no errdisable detect cause gbic-invalid
Notes:
show interfaces | i (.* line protocol is )|(.* address is)
show platform hardware throughput level
Cisco:
show logging | include LINEPROTO|changed state show logging | include LINK-3-UPDOWN show interfaces status err-disabled show interfaces <interface> counters show interfaces <interface> | include flapping show interfaces <interface> | include Last input show interface description | include up
Aruba / HPE:
show interfaces brief show logging -r | include "Link state"
test cable-diagnostics tdr interface Gi1/0/10 show cable-diagnostics tdr interface Gi1/0/10
show interface GigabitEthernet1/0/1 | include line protocol|error|CRC|collis|drops
show logging show spanning-tree inconsistentports show spanning-tree blockedports show spanning-tree detail | include ieee|from|occur|is exec
ROMMON / Switch Recovery:
switch: set SWITCH_IGNORE_STARTUP_CFG=1 # Verify variable: switch: set # Boot to OS: switch: boot
1. Login using CLI admin account 2. Reset GUI admin password:
application reset-passwd ise admin
3. Enter the new password when prompted 4. Test login using the GUI