cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3164
Views
5
Helpful
2
Replies

Cisco pipe operator FORMAT

pdub206
Level 1
Level 1

I'm trying to find out what the show pipe operator FORMAT does.  There is little to no documentation on this option -- I just can't find any good examples of its use.  I would like to format the output of "show platform cpu packet buffered" into a wireshark .pcap file, and am wondering if this is the appropriate use of the FORMAT operator.

switch#$rm cpu packet buffer | ?
append Append redirected output to URL (URLs supporting append operation
only)
begin Begin with the line that matches
count Count number of lines which match regexp
exclude Exclude lines that match
format Format the output using the specified spec file
include Include lines that match
redirect Redirect output to URL
section Filter a section of output
tee Copy output to URL

What does this operator do, and would I be able to perform something like:

show cpu packet buffered | format bootflash:test.pcap

Without actually formatting my bootflash?

Throwing packets since 2012
2 Replies 2

Dennis Mink
VIP Alumni
VIP Alumni

excellent question,

I think it refers to this:

  http://www.cisco.com/c/en/us/td/docs/net_mgmt/enhanced_device_interface/2-2/developer/guide/edi_pg_2_2/progodm.html

although I have never tried formating CLI output.(looks a bit convoluted)

Please remember to rate useful posts, by clicking on the stars below.

jcameron
Level 1
Level 1

The link is old and appears to be deprecated, but I have same problem and question with this command modifier.

Review Cisco Networking for a $25 gift card