Administrator Guide

find
searches for the first occurrence of a pattern
grep
displays text that matches a pattern.
The grep command option has an ignore-case suboption that makes the search case-insensitive. For example,
the commands:
show run |
grep Ethernet
returns a search result with instances containing a capitalized “Ethernet,” such as
interface fortyGigE 0/0
show run |
grep ethernet
does not return the previous search result because it only searches for instances
containing a noncapitalized “ethernet”
show run |
grep Ethernet
ignore-case
returns instances containing both “Ethernet” and “ethernet”
no-more
does not paginate the display output
save
copies the output to a file for future use
Displaying All Output
To display the output all at once (not one screen at a time), use the no-more option after the pipe. This operation is similar to the
terminal length screen-length command except that the no-more option affects the output of just the specified command.
For example: Dell#show running-config|no-more.
Filtering the Command Output Multiple Times
You can filter a single command output multiple times. To filter a command output multiple times, place the save option as the last filter.
For example: Dell# command | grep regular-expression | except regular-expression | grep other-
regular-expression | find regular-expression | no-more | save.
Command Modes
To navigate and launch various CLI modes, use specific commands. Navigation to these modes is described in the following sections.
BGP ADDRESS-FAMILY Mode
To enable or configure IPv4 or IPv6 for BGP, use BGP ADDRESS-FAMILY mode. For more information, see Border Gateway Protocol IPv4
(BGPv4).
To enter BGP ADDRESS-FAMILY mode:
1. Verify that you are logged in to ROUTER BGP mode.
2. Enter the command address-family then the protocol type (ipv4 multicast or ipv6 unicast). The prompt changes to
include (conf-router_bgp_af) for IPv4 or (conf-router_bgpv6_af) for IPv6.
CLASS-MAP Mode
To create or configure a class map, use CLASS-MAP mode. For more information, see Policy-Based QoS Commands.
To enter CLASS-MAP mode:
1. Verify that you are logged in to CONFIGURATION mode.
2. Enter the class-map command then enter the class map name. The prompt changes to include (config-class-map).
You can return to CONFIGURATION mode by using the exit command.
50
CLI Basics