Re: include/exclude commands

From: Haroon <itguy.pro_at_gmail.com>
Date: Wed, 10 Jul 2013 13:45:28 -0400

showing only 100mb

SVSwitch-x1.2#sh int status | i 100 |ex a
Gi1/0/2 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/6 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/10 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/12 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/14 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/21 connected 1 a-full a-100
10/100/1000BaseTX
Gi1/0/22 connected 1 a-full a-100
10/100/1000BaseTX

On Wed, Jul 10, 2013 at 12:47 PM, Dima Muzychko <muzychko_at_gmail.com> wrote:

> this should work as well, but don't have where to try at the moment:
> #sh int status | in full +100_
>
>
> 2013/7/10 Carlos G Mendioroz <tron_at_huapi.ba.ar>
>
> > Hmm, 100 includes 10, so I don't think that will cut it...
> > also all lines have an "a"
> >
> > marc edwards @ 10/07/2013 13:27 -0300 dixit:
> > > Very nice, Daniel
> > >
> > >
> > >
> > > Marc Edwards
> > > CCIE #38259
> > >
> > >
> > > On Wed, Jul 10, 2013 at 8:47 AM, <daniel.dib_at_reaper.nu> wrote:
> > >
> > >> How about:
> > >>
> > >> sh int status | ex not|a|1000|10
> > >>
> > >> Daniel Dib
> > >>
> > >> CCIE
> > >> #37149
> > >>
> > >> 2013-07-10 17:31 skrev Cisco Fanatic:
> > >>
> > >>> I think what I am
> > >> asking is that I only need to display interfaces which are
> > >>> hardcoded
> > >> as 100Mbps. I am also getting everything else which I don't need.
> > >>>
> > >>>
> > >> SW1#sh int status | i connected|100
> > >>> Gi2/36 connected 116 full 100
> > >>>
> > >> 10/100/1000-TX
> > >>> Gi2/37 connected 116 a-full a-1000
> > >>> 10/100/1000-TX
> > >>>
> > >> Gi2/38 connected 116 full 100
> > >>> 10/100/1000-TX
> > >>> Gi2/39 connected 116
> > >> a-full a-1000
> > >>> 10/100/1000-TX
> > >>> Gi2/40 DC1000-4FL-WAP003 connected 220
> > >> a-full a-1000
> > >>> 10/100/1000-TX
> > >>> Gi2/41 DC1fl4ups2 connected 3 a-full
> > >> a-100
> > >>> 10/100/1000-TX
> > >>> Gi2/42 connected 116 a-full a-1000
> > >>>
> > >> 10/100/1000-TX
> > >>> Gi2/43 connected 116 a-full a-1000
> > >>> 10/100/1000-TX
> > >>>
> > >> Gi2/44 connected 116 full 100
> > >>> 10/100/1000-TX
> > >>> Gi2/45 connected 116
> > >> full 100
> > >>> 10/100/1000-TX
> > >>> Gi2/46 connected 116 full 100
> > >>>
> > >> 10/100/1000-TX
> > >>> Gi2/47 connected 116 a-full a-1000
> > >>> 10/100/1000-TX
> > >>>
> > >>
> > >>>> Date: Wed, 10 Jul 2013 08:09:21 -0700 Subject: Re: include/exclude
> > >> commands From: renorider_at_gmail.com To: ebay_products_at_hotmail.com CC:
> > >> ccielab_at_groupstudy.com sh int status Marc Edwards CCIE #38259 On Wed,
> > >> Jul 10, 2013 at 7:59 AM, Cisco Fanatic
> > >>>
> > >>>
> > >> <ebay_products_at_hotmail.com>wrote:
> > >>>
> > >>>>> Is there a quick way to figure
> > >> out which interfaces are configured for speed 100 say instead of
> running
> > >> show run command. If I do the include command it also shows interfaces
> > >> which are not configured with speed 100. Any create ways to do stuff
> > >> similar to bgp regular expressions :) SW1#sh run | i interface|speed
> 100
> > >> interface GigabitEthernet2/35 interface GigabitEthernet2/36 speed 100
> > >> interface GigabitEthernet2/37 interface GigabitEthernet2/38 speed 100
> > >> interface GigabitEthernet2/39 interface GigabitEthernet2/40 interface
> > >> GigabitEthernet2/41 interface GigabitEthernet2/42 interface
> > >> GigabitEthernet2/43 interface GigabitEthernet2/44 speed 100 interface
> > >> GigabitEthernet2/45 speed 100 interface GigabitEthernet2/46 speed 100
> > >> interface GigabitEthernet2/47 interface GigabitEthernet2/48 interface
> > >> GigabitEthernet3/1 interface GigabitEthernet3/2 yuri Blogs and organic
> > >> groups at http://www.ccie.net [1]
> > >>
> _______________________________________________________________________
> > >> Subscription information may be found at:
> > >> http://www.groupstudy.com/list/CCIELab.html [2]
> > >>>> Blogs and organic
> > >> groups at http://www.ccie.net [1]
> > >>
> _______________________________________________________________________
> > >> Subscription information may be found at:
> > >> http://www.groupstudy.com/list/CCIELab.html [2]
> > >>>
> > >>> Blogs and organic
> > >> groups at http://www.ccie.net [1]
> > >>>
> > >>>
> > >>
> _______________________________________________________________________
> > >>>
> > >> Subscription information may be found at:
> > >>>
> > >> http://www.groupstudy.com/list/CCIELab.html [2]
> > >>
> > >>
> > >>
> > >> Links:
> > >> ------
> > >> [1]
> > >> http://www.ccie.net
> > >> [2] http://www.groupstudy.com/list/CCIELab.html
> > >>
> > >>
> > >> Blogs and organic groups at http://www.ccie.net
> > >>
> > >>
> _______________________________________________________________________
> > >> Subscription information may be found at:
> > >> http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > > Blogs and organic groups at http://www.ccie.net
> > >
> > > _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > Carlos G Mendioroz <tron_at_huapi.ba.ar> LW7 EQI Argentina
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
*Virtualization.net*
*Post Jobs, News, Forums, Tutorials*
http://www.virtualization.net
Blogs and organic groups at http://www.ccie.net
Received on Wed Jul 10 2013 - 13:45:28 ART

This archive was generated by hypermail 2.2.0 : Thu Aug 01 2013 - 08:45:50 ART