01-18-2017 04:29 PM - edited 03-08-2019 08:58 AM
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?
01-18-2017 05:28 PM
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)
10-03-2023 07:28 AM
The link is old and appears to be deprecated, but I have same problem and question with this command modifier.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide