ttauber at 1-4-5
May 24, 2012, 7:48 AM
Post #5 of 5
Seems like improved lexical parsing to me actually. Both these worked the
Re: Frustration with XR "show interface" and pipe commands
[In reply to]
sh int | include "up|rate"
sh int | utility egrep "up|rate"
Where everything enclosed in the quotes is passed to the command.
You could also add a trailing space to "up" so that you don't match words
sh int | utility egrep "up |rate"
On Thu, May 24, 2012 at 10:19 AM, John Neiberger <jneiberger [at] gmail>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
archive at http://puck.nether.net/pipermail/cisco-nsp/