RE: OSPF area commands

From: Adel Abouchaev <adel_at_netmasterclass.net>
Date: Tue, 10 Aug 2010 10:06:32 -0700

TCL works inside out, so the innermost command is executed first, which is
"exec", runs the command, returns the string with an output. The next
command is regexp which take the superlong line in and then matches all
substrings that match the pattern Area \d+, where \d is any digit, just like
[0-9], and gives back a list of elements in a format Area 1, Area 2, where
there could be dups. Then lsort takes care of dups. The result of that is
printed on the screen.

Adel Abouchaev, CCIE# 12037, CISSP, MCSE

Technical Support Engineer
Netmasterclass LLC, Cisco Learning Partner
RFC821: adel_at_netmasterclass.net
E.164: +18886772669
HTTP: www.netmasterclass.net

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
--Hammer--
Sent: Tuesday, August 10, 2010 6:40 AM
To: ccielab_at_groupstudy.com
Subject: Re: OSPF area commands

Adel,
     For those of us still building our TCL skills, you are running "sho
ip ospf data | inc area" and then pulling unique numbers (area IDs)
right? So I can get what I need out of the OSPF database?

--Hammer--

On 8/9/2010 5:08 PM, Adel Abouchaev wrote:
> This will show you unique areas:
>
> tclsh
> puts [lsort -unique [regexp -inline -all -- {Area \d+} [exec "show ip ospf
> data | inc Area"]]]
> exit
>
>
> Cheers,
>
> Adel Abouchaev, CCIE# 12037, CISSP, MCSE
>
> Technical Support Engineer
> Netmasterclass LLC, Cisco Learning Partner
> RFC821: adel_at_netmasterclass.net
> E.164: +18886772669
> HTTP: www.netmasterclass.net
>
>
>
> -----Original Message-----
> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> ccie-lab
> Sent: Monday, August 09, 2010 1:25 PM
> To: Ryan West
> Cc: Cisco certification
> Subject: Re: OSPF area commands
>
> This is what I get from that, and I have 100's of area's in the
> internetwork,
>
> Router-6#show ip o d | i Area
> Router Link States (Area 0)
> Net Link States (Area 0)
> Summary Net Link States (Area 0)
> Summary ASB Link States (Area 0)
> Router Link States (Area 201)
> Net Link States (Area 201)
> Summary Net Link States (Area 201)
> Summary ASB Link States (Area 201)
> Router Link States (Area 423)
> Summary Net Link States (Area 423)
> Router-6#
>
>
>
>
>
>
> On 8/9/2010 4:10 PM, Ryan West wrote:
>
>> Show ip ospf database | i Area
>>
>> -ryan
>>
>>
>>> -----Original Message-----
>>> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On
>>> Behalf Of ccie-lab
>>> Sent: Monday, August 09, 2010 3:59 PM
>>> To: Cisco certification
>>> Subject: OSPF area commands
>>>
>>> All,
>>> I am trying to get a list from the router of all OSPF Area Id's in use
on
>>>
> the
>
>>> internetwork.
>>> Does anyone know a command that would show me this?
>>>
>>> Thanks in advance.
>>>
>>>
>>> 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
Received on Tue Aug 10 2010 - 10:06:32 ART

This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 11:20:52 ART