Table of Contents

Cisco CLI Reference Commands

A collection of useful Cisco CLI commands I frequently use and want to keep for quick reference.

Related: WLC – How to Configure AP


Enable IP SLA Features

license boot module c1900 technology-package datak9

Reset IP SLA Statistics

ip sla restart <ID>

Force Cisco Switch to Accept 3rd Party SFPs

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 Device MAC Addresses

show interfaces | i (.* line protocol is )|(.* address is)

Show Maximum Router Throughput

show platform hardware throughput level

Check Flapping Ports

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"

Verify Cable Health (TDR)

test cable-diagnostics tdr interface Gi1/0/10
show cable-diagnostics tdr interface Gi1/0/10

Check for Port Errors

show interface GigabitEthernet1/0/1 | include line protocol|error|CRC|collis|drops

Check for STP Errors

show logging
show spanning-tree inconsistentports
show spanning-tree blockedports
show spanning-tree detail | include ieee|from|occur|is exec

Bypass Startup Config (Recover Enable Password)

ROMMON / Switch Recovery:

switch: set SWITCH_IGNORE_STARTUP_CFG=1

# Verify variable:
switch: set

# Boot to OS:
switch: boot

Cisco ISE GUI Password Recovery

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

www.cisco.com_c_dam_en_us_support_docs_security_identity-services-engine_200568-ise-password-recovery-mechanisms-14.jpeg

Source: Cisco ISE Password Recovery Mechanisms