26.10.2013 Views

8.3.17.0 - Force10 Networks

8.3.17.0 - Force10 Networks

8.3.17.0 - Force10 Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.dell.com | support.dell.com<br />

Figure 3-9. Filtering Command Outputs with the grep Command<br />

FTOS(conf)#do show stack-unit all stack-ports all pfc details | grep 0<br />

stack unit 0 stack-port all<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

Note: FTOS accepts a space or no space before and after the pipe. To filter on a phrase with spaces,<br />

underscores, or ranges, enclose the phrase with double quotation marks.<br />

• except displays text that does not match the specified text. Figure 3-10 shows this command used in<br />

combination with the do show stack-unit all stack-ports all pfc details | except 0 command.<br />

Figure 3-10. Filtering Command Outputs with the except Command<br />

FTOS(conf)#do show stack-unit all stack-ports all pfc details | except 0<br />

• find displays the output of the show command beginning from the first occurrence of specified text<br />

Figure 3-11 shows this command.<br />

Figure 3-11. Filtering Command Outputs with the find Command<br />

• no-more displays the output all at once rather than one screen at a time. This is similar to the terminal<br />

length command except that the no-more option affects the output of the specified command only.<br />

• save copies the output to a file for future reference.<br />

Note: You can filter a single command output multiple times. The save option should be the last option<br />

entered. For example:<br />

FTOS# command | grep regular-expression | except regular-expression | grep<br />

other-regular-expression | find regular-expression | save<br />

16 | Configuration Fundamentals<br />

Admin mode is On<br />

Admin is enabled<br />

Local is enabled<br />

Link Delay 45556 pause quantum<br />

stack unit 1 stack-port all<br />

Admin mode is On<br />

Admin is enabled<br />

FTOS(conf)#do show stack-unit all stack-ports all pfc details | find 0<br />

stack unit 0 stack-port all<br />

Admin mode is On<br />

Admin is enabled<br />

Local is enabled<br />

Link Delay 45556 pause quantum<br />

0 Pause Tx pkts, 0 Pause Rx pkts<br />

stack unit 1 stack-port all

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!