For the Love of Grep

CORRECTION: I was mistaken the |find xxx already implements a similar feature. Although I don’t see a reference to the command in CLI reference guide or the cli help. I guess it was a good idea to write this blog. I’m told |find will work appended to any command with the exception of some output of sh support.

I’ve used a number of different network CLIs. It seems most people are content to love the one whether it be Cisco or Cisco. I’ve always appreciated the intuitive well-thought-out CLI of the Enterasys products. However, with large stacks and future plans to introduce an] Enterasys response to switch virtualization, the absence of a grep like command that allows searching output is sorely missed.

Enterasys has an ideal command structure to implement grep on their switch interface as each line is atomic. The router config would require some thought to include the context of structured configs like interfaces.

Does anyone else think this would be an important improvement?

About howarda

Computer Network Systems Manager, University of Northern Iowa
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to For the Love of Grep

  1. Kay says:

    Yes, absolutely.

  2. Larry says:

    Have you tried the find command?

    (7.21)
    SSA(su)->show run |find interface
    interface loop.0.1
    interface vlan.0.10
    interface vlan.0.20
    interface vlan.0.100
    interface vlan.0.110
    interface vlan.0.120
    interface vlan.0.500
    SSA-Dev(su)->

    • howarda says:

      show run |find interface

      |find is useful but it only works for the router config not the switch config. There’s no reference to it in cli help or the CLI Reference guide!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>