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

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

6 Answers 6


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


We've been using:

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


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


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


Don't forget about:


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:


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.