Dell PowerEdge XL 5133-4 MXL 10/40GbE Switch IO Module FTOS Command Reference - Page 30
Filtering Command Outputs with the, Command, command except that
View all Dell PowerEdge XL 5133-4 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 30 highlights
www.dell.com | support.dell.com Figure 3-9. Filtering Command Outputs with the grep Command FTOS(conf)#do show stack-unit all stack-ports all pfc details | grep 0 stack unit 0 stack-port all 0 Pause Tx pkts, 0 Pause Rx pkts 0 Pause Tx pkts, 0 Pause Rx pkts 0 Pause Tx pkts, 0 Pause Rx pkts 0 Pause Tx pkts, 0 Pause Rx pkts 0 Pause Tx pkts, 0 Pause Rx pkts 0 Pause Tx pkts, 0 Pause Rx pkts Note: FTOS accepts a space or no space before and after the pipe. To filter on a phrase with spaces, underscores, or ranges, enclose the phrase with double quotation marks. • except displays text that does not match the specified text. Figure 3-10 shows this command used in combination with the do show stack-unit all stack-ports all pfc details | except 0 command. Figure 3-10. Filtering Command Outputs with the except Command FTOS(conf)#do show stack-unit all stack-ports all pfc details | except 0 Admin mode is On Admin is enabled Local is enabled Link Delay 45556 pause quantum stack unit 1 stack-port all Admin mode is On Admin is enabled • find displays the output of the show command beginning from the first occurrence of specified text Figure 3-11 shows this command. Figure 3-11. Filtering Command Outputs with the find Command FTOS(conf)#do show stack-unit all stack-ports all pfc details | find 0 stack unit 0 stack-port all Admin mode is On Admin is enabled Local is enabled Link Delay 45556 pause quantum 0 Pause Tx pkts, 0 Pause Rx pkts stack unit 1 stack-port all • no-more displays the output all at once rather than one screen at a time. This is similar to the terminal length command except that the no-more option affects the output of the specified command only. • save copies the output to a file for future reference. Note: You can filter a single command output multiple times. The save option should be the last option entered. For example: FTOS# command | grep regular-expression | except regular-expression | grep other-regular-expression | find regular-expression | save 16 | Configuration Fundamentals