10

I was wondering if anyone has some favorite modules for doing things like SNMP, CLI screen scraping, netconf, etc...

4
  • I am closing this as I realize it is a poll. However, I want to find some way to ask network specific automation and python questions as it relates directly to network management, without getting flagged that it should be in a different Exchange. – netdad May 16 '13 at 20:33
  • I guess I cannot close my own questions. – netdad May 16 '13 at 20:34
  • You should be able to delete your own question if you choose to do so. – Kevin Bowen May 17 '13 at 0:34
  • Please don't delete it. I'd vote to close it but apparently I don't have enough rep as I don't see an option. – Dave Noonan May 17 '13 at 2:11
10

I just started playing with Trigger and I have to say I've really enjoyed it. It's quite a powerful network engineer toolkit and their documentation is awesome. While we primarily have Cisco it does support other vendors such as Juniper and Brocade, they have a list of vendors in their docs

6

We've been using:

pysnmp - pretty obvious
Exscript - offers an enhanced "expect" type of experience. Very nice.
MySQLdb - also self explanatory

5

ncclient is a python library for communicating via netconf. I've just started working with it.

5

I use Google Capirca for firewall / acl management. It is simply a good rule generator, and the rule definition and generation are separated so you can even extend it to support any device you want. It does i.e. Linux iptables, Juniper SRX or Cisco ACLs out of the box. The ACLs you write can be kept independent of the device type.

(the little geek brother of FW-1 rule compiler ;)

4

Don't forget about:

3

I use Exscript for CLI screen scraping. It is a Python library and has also a minimalistic scripting language itself. The latter one is sufficient for most small tasks and doesn't require a lot of programming knowledge.

You can find some of my exscripts here:

https://github.com/verbosemode/exscripts

I've also written a grep-like tool based on ciscoconfparse and a templating tool (based on Jinja2) for text based configurations, which you can find on my github account (sorry, for the shameless self-promotion).

Not the answer you're looking for? Browse other questions tagged or ask your own question.