Tell me more ×
Network Engineering Stack Exchange is a question and answer site for network engineers. It's 100% free, no registration required.

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

share|improve this question
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 at 20:33
I guess I cannot close my own questions. – netdad May 16 at 20:34
You should be able to delete your own question if you choose to do so. – maggotbrain May 17 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 at 2:11

closed as not constructive by Dennis Olvany, Justin Seabrook-Rocha, SimonJGreen, Craig Constantine, netdad May 17 at 13:43

As it currently stands, this question is not a good fit for our Q&A; format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

6 Answers

up vote 9 down vote accepted

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

share|improve this answer

We've been using:

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

share|improve this answer

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

share|improve this answer

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 ;)

share|improve this answer

Don't forget about:

share|improve this answer

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).

share|improve this answer

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