Sunday, February 10, 2008

show parser dump - full CLI syntax at your hands

To display the CLI syntax options for all command modes or for a specified command mode, you can use the show parser dump command in privileged EXEC mode.

This command was developed to allow the exploration of the CLI command syntax without requiring the user to actually enter a specific mode and use the ? command line help.

Examples:

The following command will display all the commands that can by entered under "map-class" config mode and contain the "frame-relay" word:


router#show parser dump map-class | inc frame-relay


The following command will display all the commands that can be entered under the "route-map" config mode and contain the "match" word:


router#show parser dump route-map | inc match


The following will display all commands (config & exec) that contain the word "igmp" :


router#show parser dump all | inc igmp


So, if you don't remember a specific command, but you know a keyword that might be included in it, you can use the "show parser dump" commands to help you find all possible syntaxes.

The number that you seen in front of each command syntax is the privilege level required in order to execute that command.

You can also use the "extend" keyword at the end in order to display more detailed keyword and argument descriptions:


router#sh parser dump sla-monitor extend
Mode Name :sla-monitor
15 type udpEcho dest-ipaddr dest-port <1-65535> source-ipaddr
type : Type of entry
udpEcho : UDP Echo Operation
dest-ipaddr : Destination address
: IP address or hostname
dest-port : Destination Port
<1-65535> : Port Number
source-ipaddr : Source address
: IP address or hostname

15 type udpEcho dest-ipaddr dest-port <1-65535> source-port <1-65535>
type : Type of entry
udpEcho : UDP Echo Operation
dest-ipaddr : Destination address
: IP address or hostname
dest-port : Destination Port
<1-65535> : Port Number
source-port : Source Port
<1-65535> : Port Number


Caution
Use caution when entering this command with the all keyword. A large amount of output can be generated by this command, which may easily exceed buffer or system memory on smaller platforms. Also, some configuration modes have hundreds of valid commands. For large dumps, use of the redirection to a file using the | redirect URL syntax at the end of the command is highly recommended.

6 comments:

  1. Hello, Tassos.
    thanks for your posting and have a good week

    ReplyDelete
  2. This doesn't work w/ my 6500

    ReplyDelete
  3. It surely doesn't work with SXF IOS.
    But on a 7600 with SRB it works fine.
    Maybe you must use SXH on the 6500 in order to use it.

    ReplyDelete
  4. wow .... cool .. thanx a lot

    ReplyDelete
  5. According to some internal information, the "show parser dump" command is about to be deprecated.

    ReplyDelete

 
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Greece License.