Administrator Guide

The grep command accepts an ignore-case sub-option that forces the search to case-insensitive. For example, the commands:
show run | grep Ethernet returns a search result with instances containing a capitalized “Ethernet,” such as interface
TengigabitEthernet 0/0.
show run | grep ethernet does not return that search result because it only searches for instances containing a non-
capitalized “ethernet.
show run | grep Ethernet ignore-case returns instances containing both “Ethernet” and “ethernet.
The grep command displays only the lines containing specied text. The following example shows this command used in combination with
the show processes command.
Dell#show processes cpu cp | grep system
0 72000 7200 10000 17.97% 17.81% 17.96% 0 system
NOTE: Dell Networking OS accepts a space or no space before and after the pipe. To lter a phrase with spaces, underscores, or
ranges, enclose the phrase with double quotation marks.
The except keyword displays text that does not match the specied text. The following example shows this command used in
combination with the
show processes command.
Example of the except Keyword
Dell#show processes cpu cp | except system
CPU utilization for five seconds: 28%/1%; one minute: 28%; five minutes: 28%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
538 43770 4377 10000 6.50% 7.59% 8.68% 0 sys
535 51140 5114 10000 3.54% 3.53% 3.83% 0 sysdlp
614 300 30 10000 0.59% 0.06% 0.07% 0 ssMgr
557 190 19 10000 0.20% 0.00% 0.03% 0 ipm
615 130 13 10000 0.00% 0.02% 0.03% 0 ipSecMgr
508 290 29 10000 0.00% 0.02% 0.04% 0 confdMgr
720 330 33 10000 0.00% 0.13% 0.10% 0 clish
19 410 41 10000 0.00% 0.00% 0.00% 0 mount_mfs
30 60 6 10000 0.00% 0.00% 0.00% 0 mount_mfs
25 1720 172 10000 0.00% 0.00% 0.00% 0 mount_mfs
22 0 0 0 0.00% 0.00% 0.00% 0 mount_mfs
533 0 0 0 0.00% 0.00% 0.00% 0 sysmon
12 0 0 0 0.00% 0.00% 0.00% 0 mount_mfs
2 10 1 10000 0.00% 0.00% 0.00% 0 sh
1 0 0 0 0.00% 0.00% 0.00% 0 init
529 0 0 0 0.00% 0.00% 0.00% 0 sysmon
523 10 1 10000 0.00% 0.00% 0.00% 0 mount_mfs
646 0 0 0 0.00% 0.00% 0.00% 0 cron
445 0 0 0 0.00% 0.00% 0.00% 0 flashmntr
579 5670 567 10000 0.00% 0.00% 0.00% 0 confd
329 0 0 0 0.00% 0.00% 0.00% 0 inetd
655 270 27 10000 0.00% 0.00% 0.00% 0 login
244 30 3 10000 0.00% 0.00% 0.00% 0 sh
74 30 3 10000 0.00% 0.00% 0.00% 0 sh
Example of the find Keyword
The find keyword displays the output of the show command beginning from the rst occurrence of specied text. The following example
shows this command used in combination with the
show processes command.
Dell#show processes cpu cp | find system
0 72900 7290 10000 17.79% 17.93% 17.96% 0 system
538 42710 4271 10000 6.52% 7.74% 8.68% 0 sysd
535 50600 5060 10000 3.56% 3.61% 3.83% 0 sysdlp
720 290 29 10000 0.20% 0.07% 0.17% 0 clish
614 250 25 10000 0.00% 0.03% 0.07% 0 ssMgr
615 130 13 10000 0.00% 0.02% 0.04% 0 ipSecMgr
508 290 29 10000 0.00% 0.02% 0.09% 0 confdMgr
655 270 27 10000 0.00% 0.00% 0.09% 0 login
557 180 18 10000 0.00% 0.00% 0.06% 0 ipm
579 5670 567 10000 0.00% 0.00% 1.85% 0 confd
44
Conguration Fundamentals