Show Commands: Filtering Output
Configure number of lines to display during show
terminal length <number of lines>
terminal length 0 # No pause
Pipe after the show
then <filter parameter> <filter expression>
Can be used in combination with any show
command.
show running-config | section line vty
Filtering parameters:
section
: entire section that starts with expressioninclude
: all output lines that match expressionexclude
: excludes all output lines that match expressionbegin
: all output lines from a certain point, starting with the line that matches the filtering expression.
Useful examples:
show ip interface brief | include up
show ip interface brief | exclude unassigned
show ip route | begin Gateway
Command History
- Ctrl-P or Up-Arrow
- Ctrl-N or Down-Arrow
show history # (PrivExec)
Change size of history buffer
terminal history size <num> # (UserExec)
Boot Environment
Configure BOOT Environment Variable
show boot # Displays current IOS boot file
boot system flash:/<path>/<IOS_filename.bin> # (GCM)
Accessing the Boot Loader
The boot loader can be accessed through a console connection following these steps:
- Connect a PC by console cable to the switch console port. Configure terminal emulation software to connect to the switch.
- Unplug the switch power cord.
- Reconnect the power cord to the switch and, within 15 seconds, press and hold down the Mode button while the System LED is still flashing green.
- Continue pressing the Mode button until the System LED turns briefly amber and then solid green; then release the Mode button.
- The boot loader switch: prompt appears in the terminal emulation software on the PC.
Basic directory listing in the boot loader:
dir flash:
Cisco Software Upgrade Procedure
See: Cisco Access Routers Software Upgrade Procedures
Configure Router as TFTP Server
tftp-server flash:<ios_image_name.bin>