Stephane Bortzmeyer | 9 Mar 2009 10:54
Picon

Re: Noob Question

On Mon, Mar 09, 2009 at 10:49:02AM +0100,
 Alexander List <alex <at> list.priv.at> wrote 
 a message of 15 lines which said:

> This assumption (Perl/Python easily installable) might not hold for
> embedded systems with small memory/storage footprint. Think wireless
> routers, think OpenWRT.

We are talking about network management tools. You do not run them on
the router itself... 

_______________________________________________
Toolmakers mailing list
Toolmakers <at> lists.isc.org
https://lists.isc.org/mailman/listinfo/toolmakers

Oleg Bogdanov | 6 Mar 2009 15:46
Favicon

Noob Question

Hello,

 

I stumbled across this mailing list and thought it may be a good place to ask:  As an experienced network engineer but with virtually no programming and only basic linux/unix knowledge interested in developing some monitoring/operational utilities, what do I learn first?  Awk or Perl?  Something else?

 

I’m interested in creating tools to run against config backups (from RANCID maybe) as well as telnet/ssh to devices to execute commands, read the output and do intelligent stuff with it.

 

Thanks,

Oleg B.

---------------------------------------- This message is intended exclusively for the individual(s) or entity to which it is addressed. It may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.
_______________________________________________
Toolmakers mailing list
Toolmakers <at> lists.isc.org
https://lists.isc.org/mailman/listinfo/toolmakers
ML | 15 Feb 2009 04:13
Favicon

Initial bugs in mktop and top2dot

I just read Joe Abley and Stephen Stuart's paper titled: "Managing IP 
Networks
with Free Software"

I found two bugs so far with the scripts. One in mktop.awk and one in 
top2dot.awk

For unknown reasons by awk interpreter refused to parse mktop.awk with 
the comments present
on lines:  329, 338, 347, 356, 444

Script out:
----------------
awk: ./mktop.awk: line 329: regular expression compile failed (missing 
operand)
* hack hack *
awk: ./mktop.awk: line 338: regular expression compile failed (missing 
operand)
* hack hack *
awk: ./mktop.awk: line 347: regular expression compile failed (missing 
operand)
* hack hack *
awk: ./mktop.awk: line 356: regular expression compile failed (missing 
operand)
* hack hack *
awk: ./mktop.awk: line 444: regular expression compile failed (missing 
operand)
* undirected graph *
----------------

Removing the comments allows the script to finish successfully.

I'll chalk it up to a difference in the awk interepreter between 2002 
and 2009.

After running converting a generated top file to a dot file (using 
top2dot), the resulting dot file contains
a spurious backslash on the last line of the file which causes 'dot' to 
fail. Removing the erroneous
backslash allows 'dot' to process the generated .dot file.

_______________________________________________
Toolmakers mailing list
Toolmakers <at> lists.isc.org
https://lists.isc.org/mailman/listinfo/toolmakers

Sue Graves | 14 Nov 2008 23:31

ISC launches new website and mailing list manager

ISC is pleased to announce the launch of our re-designed website and
mailing lists.  Our motivation for these moves is simple, to make
information about ISC and our products easier to find and provide more
of it.

Using the new website should be self explanatory.  We'd appreciate your
feedback about navigating the new website and your patience if you
encounter any oddities.  Send comments to webmaster <at> isc.org.

The mailing list conversion requires a little explanation:

* The new one-stop page for all the lists under isc.org is
https://lists.isc.org/mailman/listinfo

* All list posting-addresses will remain the same with the addition of
' <at> lists.isc.org' -- i.e. bind-users <at> isc.org will continue to work but
 bind-users <at> lists.isc.org is the standard going forward

* Please adjust your filters as required to accommodate sorting of the
 new lists because the headers will be different.

Thank you for your patience and continued support.

ISC staff
_______________________________________________
Toolmakers mailing list
Toolmakers <at> lists.isc.org
https://lists.isc.org/mailman/listinfo/toolmakers

Régis Calméjane | 27 Mar 2007 14:27
Picon

add other switch in mktop

i would like to add switch (hp and other) in mktop like it does for 
Cisco and Juniper but i'm not a programmer at all.
Please help.

Pena, Antonio | 12 Dec 2006 21:19

Mktop does not show junipers router names

Hello

I have few experience using these scripts, I'm looking to have a whole
list of my routers interfaces to create PTR records with the inverse
names, but for some reason mktop does not show the Juniper's router
names on the output, only Cisco comes with the right router name, all
interfaces are shown fine, junipers and Cisco

Did somebody knows how to fix this issue?

Thank you in advance

Antonio
Intelsat is the world's largest provider of fixed satellite services.  Real-time, constant
communications with people anywhere in the world is closer, by far.  

For more information about Intelsat, visit www.intelsat.com. 

This email message is for the sole use of the intended recipients and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the sender by reply email and destroy all copies of the
original message. Any views expressed in this message are those of the individual sender, except where
the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries.

Chao Yu (ychao | 28 Nov 2006 23:37
Picon
Favicon

how to convert .top file to .dot file?

Hi, expert,
how to convert .top file to .dot file? I try top2dot, seems does not
work. maybe I my command is wrong "cat net.top | ./top2dot.awk >net.dot"

[root <at> pinot-2 top2dot]# more net.dot
graph group {
edge [color=red,fontsize,fontcolor=red];
node [fontsize,height=0.1,width=0.1,shape=ellipse];

};
thanks
regs/Chao Yu

Lourdes Llorente | 2 Aug 2006 17:32
Favicon

Problem with hourly.sh

Hello !
while triying to run hourly.sh I get an error with points to 
"filter_audit.awk" line 28 -->  sub(/^.*\//, "", router);

-bash-3.00$ hourly.sh
awk: syntax error near line 29
awk: illegal statement near line 29

Could you help me on that ?
Thanks in advance

Lourdes

Yuval Ben-Ari | 30 Jul 2006 16:10
Picon

RE: little awk question

> Hello,
> 
> Most of the syntax awk I learned was when fiddling with the  
> filter_audit file :)
> Basically, I added different situations where a route-map can be  
> found as a reference (for instance, neighbor unsuppress-map,  
> redistribute ospf n route-map, redistribute rip route-map ...)
> 
> Your idea looks pretty useful to match all the references to route- 
> maps in one group (I've been writing ones for every specific case  
> that I found in our routers config.)
> 
> After playing a bit, there's a way (although maybe not very elegant  
> anyway). You know the previous term to the one you're looking for is  
> "route-map". So why not traversing the line and take the NEXT term:
> 
> /^ .* route-map / {
>    cur = 0;
>    while ( cur <= NF ) {
>       if ( $cur == "route-map" ) {
>         cur++;
>         ref[router " route-map " $cur] = 1;
>         next;
>       }
>       cur++;
>    }
>    next;
> }
> 
> 
> Jon
> 
> P.S.: It's good to see emails coming from this so-low-trafficked  
> mailing list. In fact, I didn't remember I had signed up ;-)

Yes, that should work.
I think I found another way:

/^ .* route-map / {
  match($0, /route-map ([A-Za-z0-9_\-]+)/, arr);
  ref[router " route-map " arr[1]] = 1;
  next;
}

P.S
It is a shame that we will each do the same work on his own.
Did you do many changes in filter_audit.awk file ?
I plan to finish my changes and send to the author so it can be
published as newer version.
I also try to be as reliable to the original as possible.

Yuval

Yuval Ben-Ari | 30 Jul 2006 12:45
Picon

little awk question

Hi,

does anyone knows how in awk I can refer to a field that is after a
certain pattern ?
I don't know where the pattern will be so can't use $i, it needs to be
relative to the pattern I matched.
to be more specific:
/ .* route-map/
now I want the next field after "route-map"
NF is also not good, because there can be more stuff after the route-map
I know that perl regexp allows back reference to groups which could have
satisfy this scenario

Thanks

Yuval Ben-Ari | 30 Jul 2006 12:23
Picon

RE: RANCID filter_audit


> No, I'm thinking of something that (gasp) I had with the IBM 
> 360 assembler and
> other compilers and assemblers.
> 
> At the end of a configuration (to start), it would list an 
> address (or a
> subnet), and tell you all the statements that referenced it. 
> For example,
>         ip address
>         access-list (and probably indirect references in maps)
>         ospf network statements
>         server references
>         static routes
> as a starting point.  In other words, it tells you EVERYWHERE 
> you need to make
> changes when you change an address or something affecting it.
> 
> The next step would be to extend the scope beyond a single 
> router, grabbing the
> hostname to prefix the cross-reference. Again, the idea is 
> that if an address
> changes, you have a positive confirmation of every 
> configuration that may need
> to be changed.  It's also a debugging tool, because you know 
> which routers
> affect that address.
>

I don't think it's something I can have use for very often. (IP address
changes).
this also sounds it could be tricky to program
I use primitive checks like: "sh run | inc x\.y\.z\." to catch config
that might refer to the subnet.
also on clean config I think you should refere to ip address as least as
possible. (f.e. static route point to interface will not require any
changes)


Gmane