[c-nsp] Frustration with XR "show interface" and pipe commands
Fredrik Vöcks
fredrik.vocks at bredband2.se
Thu May 24 10:32:05 EDT 2012
show interfaces | include "(up|down)"
/F
On 24 May 2012 16:19, John Neiberger <jneiberger at gmail.com> wrote:
> Someone asked me how to do something very simple and I'm finding it
> very difficult! He wants to do a "show interface" command and show
> only lines with "up" or "rate" in it. In IOS, this was simply "show
> int | i up|rate". That second pipe for OR does not seem to work in XR
> and we can't figure out how to do something this simple. I even tried
> piping the command to egrep and frgrep, but couldn't figure out how to
> do an OR in a way that XR understands.
>
> Any ideas how to pipe the output of a command through an "include"
> that has an OR operator?
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
More information about the cisco-nsp
mailing list