Re: Playing with PIPES

From: Pramod G <learn02earn_at_gmail.com>
Date: Mon, 11 Oct 2010 07:44:25 +0530

Hi All,

I really found these two useful cmd useful,
sh cdp nei det | i Devi|IP addr|Plat|Int|---- (shows only device, IP and
Ports#)
sh int | i Fast|Giga|5 minute (show only In/Out traffic of interface)

Let me know if you guys have something more like this

Thanks

On Fri, Oct 8, 2010 at 7:01 PM, garry baker <baker.garry_at_gmail.com> wrote:

> that alt key is brilliant, i have been thinking there had to be someway to
> do that, i knew there was a reason i read this list...
>
> thanks..
> garry..
> --
> Garry L. Baker
>
> "There is no 'patch' for stupidity." - www.sqlsecurity.com
>
>
> On Thu, Oct 7, 2010 at 11:25 PM, jason munns <jasonmunns13_at_gmail.com>
> wrote:
>
> > If you hold down the alt key while selecting text, you can select just
> > the ip addresses instead of the entire line, it saves having to
> > replace anything in notepad. This should work in putty and securecrt.
> >
> > Jason
> >
> > On 8 October 2010 16:53, Jeferson Guardia <jefersonf_at_gmail.com> wrote:
> > > I think you are correct, either way is giving me what I want
> > >
> > > R1#sh ip aliases
> > > Address Type IP Address Port
> > > Interface 6.6.6.6
> > > Interface 5.5.5.5
> > > Interface 4.4.4.4
> > > Interface 2.2.2.2
> > > Interface 1.1.1.1
> > > Interface 10.1.12.1
> > > Interface 125.1.1.1
> > > Interface 128.1.1.1
> > > Interface 131.1.1.1
> > > Interface 133.1.1.1
> > > Interface 132.1.1.1
> > > Interface 191.1.1.1
> > > Interface 193.1.1.1
> > > Interface 192.1.1.1
> > > Interface 195.1.1.1
> > > Interface 194.1.1.1
> > > Interface 200.1.1.1
> > > Interface 223.1.1.1
> > > R1#sh ip alias
> > > Address Type IP Address Port
> > > Interface 6.6.6.6
> > > Interface 5.5.5.5
> > > Interface 4.4.4.4
> > > Interface 2.2.2.2
> > > Interface 1.1.1.1
> > > Interface 10.1.12.1
> > > Interface 125.1.1.1
> > > Interface 128.1.1.1
> > > Interface 131.1.1.1
> > > Interface 133.1.1.1
> > > Interface 132.1.1.1
> > > Interface 191.1.1.1
> > > Interface 193.1.1.1
> > > Interface 192.1.1.1
> > > Interface 195.1.1.1
> > > Interface 194.1.1.1
> > > Interface 200.1.1.1
> > > Interface 223.1.1.1
> > > R1#
> > >
> > >
> > > 2010/10/8 Rob Routt Jr. (rrouttjr) <rrouttjr_at_cisco.com>
> > >
> > >> Correction "show ip aliases" is the correct command, but obviously
> alias
> > >> will work too! For some reason, I think there is another command that
> is
> > >> very helpful for seeing this info and might even b a hidden command,
> but
> > >> I cannot think of it atm.
> > >>
> > >> -R
> > >>
> > >> -----Original Message-----
> > >> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf
> Of
> > >> Rob Routt Jr. (rrouttjr)
> > >> Sent: Thursday, October 07, 2010 9:50 PM
> > >> To: Adam Booth; Jeferson Guardia
> > >> Cc: groupstudy
> > >> Subject: RE: Playing with PIPES
> > >>
> > >> You can also use "show ip alias" Then use notepad/replace as Adam
> > >> mentioned.
> > >>
> > >> Router#sh ip alias
> > >> Address Type IP Address Port
> > >> Interface 1.1.1.1
> > >> Interface 2.2.2.2
> > >>
> > >>
> > >> -Rob
> > >>
> > >> -----Original Message-----
> > >> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf
> Of
> > >> Adam Booth
> > >> Sent: Thursday, October 07, 2010 9:45 PM
> > >> To: Jeferson Guardia
> > >> Cc: groupstudy
> > >> Subject: Re: Playing with PIPES
> > >>
> > >> Hi Jeferson,
> > >>
> > >> If you type "show ip int bri | exclude unassigned" it would show only
> > >> interfaces that have IP addresses but you would still see stuff like
> > >> "Loopback0 1.1.1.1 YES manual up" for each
> line
> > >>
> > >> If you paste the output into notepad, you can hit control h and
> replace
> > >> "YES
> > >> manual up" with nothing which would remove that part and just manually
> > >> remove the interface designations.
> > >>
> > >> Cheers,
> > >>
> > >> Adam
> > >>
> > >> On Fri, Oct 8, 2010 at 1:39 PM, Jeferson Guardia
> > >> <jefersonf_at_gmail.com>wrote:
> > >>
> > >> > Guys, anyone have any idea how can I only see the IPs when I have
> > >> something
> > >> > like this?
> > >> >
> > >> > R1#sh ip int br | sec IP-Address
> > >> > Interface IP-Address OK? Method Status
> > >> > Protocol
> > >> > R1#sh ip int br
> > >> > Interface IP-Address OK? Method Status
> > >> > Protocol
> > >> > FastEthernet0/0 10.1.12.1 YES manual up
> > >> > up
> > >> > Serial0/0 unassigned YES NVRAM
> administratively
> > >> down
> > >> > down
> > >> > FastEthernet0/1 unassigned YES NVRAM
> administratively
> > >> down
> > >> > down
> > >> > Serial0/1 unassigned YES NVRAM
> administratively
> > >> down
> > >> > down
> > >> > Loopback0 1.1.1.1 YES manual up
> > >> > up
> > >> > Loopback1 2.2.2.2 YES manual up
> > >> > up
> > >> > Loopback3 125.1.1.1 YES manual up
> > >> > up
> > >> > Loopback4 128.1.1.1 YES manual up
> > >> > up
> > >> > Loopback5 131.1.1.1 YES manual up
> > >> > up
> > >> > Loopback6 191.1.1.1 YES manual up
> > >> > up
> > >> > Loopback7 192.1.1.1 YES manual up
> > >> > up
> > >> > Loopback8 195.1.1.1 YES manual up
> > >> > up
> > >> > Loopback9 200.1.1.1 YES manual up
> > >> > up
> > >> > Loopback10 223.1.1.1 YES manual up
> > >> > up
> > >> > Loopback11 4.4.4.4 YES manual up
> > >> > up
> > >> > Loopback12 5.5.5.5 YES manual up
> > >> > up
> > >> > Loopback13 6.6.6.6 YES manual up
> > >> > up
> > >> > Loopback14 132.1.1.1 YES manual up
> > >> > up
> > >> > Loopback15 133.1.1.1 YES manual up
> > >> > up
> > >> > Loopback16 193.1.1.1 YES manual up
> > >> > up
> > >> > Loopback17 194.1.1.1 YES manual up
> > >> > up
> > >> > R1#
> > >> >
> > >> >
> > >> > The idea is having an output with just the IP's, thus I can copy and
> > >> paste
> > >> > it quickly into a tcl script to verify connectivity when
> > >> redistributing or
> > >> > something.
> > >> >
> > >> > Rgs,
> > >> >
> > >> >
> > >> > 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
> > >>
> > >>
> > >> 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
> >
> >
> > 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
>
>
>
>
>
>
>
>

-- 
Hi
Rgds,
It does not mean a thing, if it can't make a ping!! :-)
Blogs and organic groups at http://www.ccie.net
Received on Mon Oct 11 2010 - 07:44:25 ART

This archive was generated by hypermail 2.2.0 : Mon Nov 01 2010 - 06:42:05 ART