Cisco command line cheat sheet

First written 2022-04-04; Last updated 2022-11-28

Cheat sheet for (not so) common Cisco commands which I need from time to time.

Show

ACL usage and hardware limits

  • IOS: show platform hardware acl statistics utilization brief

  • IOS-XE (C3K, C9K): show platform hardware fed active fwd-asic resource tcam utilization

  • NX-OS: show hardware access-list resource utilization

Traffic statistics

  • IOS-XE (C3K, C9K)

    • Current traffic load in percent: show controllers utilization

    • Rate over interval: show int | inc line|minute

Updates

See Cisco Updates for model specific update instructions (separate page because there are lot of different ways to update Cisco devices).

Verify checksums

  • IOS: verify /md5 $path

  • NX-OS: show file $path md5sum (or sha256sum, sha512sum)

Verification

MTU

  • IOS, IOS-XE, IOS-XR: ping $host df-bit repeat 1 size $size
    $size is the size of the complete (IPv4) packet

  • NX-OS: ping $host df-bit count 1 size $size
    $size is the size of the ICMP payload, (IPv4) packet size is $size + 28

ACLs

  • NX-OS: Verify which ACLs are installed on the module:
    show system internal access-list interface ethernet $x/$y input statistics module $z

Last updated 2022-11-28

Impressum Datenschutzerklärung