Mailing List Archive

Cisco CLI and regular expression
Hello,

Does anyone know how to make a:

show run | i Port-channel10.1911
Port-channel10 interface
Port-channel interface10.1911

only display
show run | i Port-channel10.1911
Port-channel interface10.1911

I don't know why but it shows me the ePort-channel10e support interface

i tried with show run | i Port-channel10 \ .1911
but the same:
Port-channel10 interface
Port-channel interface10.1911


Thanks for your help
_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
Re: Cisco CLI and regular expression [ In reply to ]
Leave out the spaces. show run | inc channel10\.1911

--

Jerry Bacon
Senior Network Engineer
StarTouch, Inc.
http://www.startouch.com
360-543-5679 ext. 111
Microwave - Fiber Optics - Internet Services


On 9/1/21 12:55 AM, Olivier CALVANO wrote:
> Does anyone know how to make a:
>
> show run | i Port-channel10.1911
> Port-channel10 interface
> Port-channel interface10.1911
>
> only display
> show run | i Port-channel10.1911
> Port-channel interface10.1911
>
> I don't know why but it shows me the ePort-channel10e support interface
>
> i tried with show run | i Port-channel10 \ .1911
> but the same:
> Port-channel10 interface
> Port-channel interface10.1911
_______________________________________________
cisco-nsp mailing list cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/