RE: getting creative with command output

From: Tyson Scott <tscott_at_ipexpert.com>
Date: Thu, 7 May 2009 14:17:18 -0400

Charles,

You can do

Show interface | incl proto|errors

But You can't do
Show interface | incl up|proto|errors excl Fast

I wish you could do an include and exclude on the same line. That would be
the best

Like with Unix/Linux

Cat * | grep blah | grep -v another | sed -s etc...

That is how it should be.

Regards,
 
Tyson Scott - CCIE #13513 R&S and Security
Technical Instructor - IPexpert, Inc.

Telephone: +1.810.326.1444
Cell: +1.248.504.7309
Fax: +1.810.454.0130
Mailto: tscott_at_ipexpert.com
 

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
Charles.Henson_at_regions.com
Sent: Thursday, May 07, 2009 1:53 PM
To: ccielab_at_groupstudy.com
Subject: getting creative with command output

All,
      I've been trying to play around with command outputs to get more
efficient.

sho ip in bri | ex un - for example

1. Can I ask for more than one row from an output? "show me all my
interfaces AND show me the errors."

So I would like to combine: "show interf | in proto" which give me an
interface name and "show interf | in error" which shows counters so that I
get back a line with my interface and a line below with the errors.

Is this possible? I check this years archives. Do I need to dig deeper? Any
links or documentation would be appreciated.

Charles

Blogs and organic groups at http://www.ccie.net
Received on Thu May 07 2009 - 14:17:18 ART

This archive was generated by hypermail 2.2.0 : Mon Jun 01 2009 - 07:04:42 ART