Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Allow activating SNMP-based LI on routers.

Project Description

PyLawful is a small tool converting user inputs into SNMP messages to activate and manage Lawful Intercept Mediation Device and Tap configuration in routers.

The implementation is well proven to work against Cisco IOS-XR routers. It may also work against Cisco IOS, IOS-XE routers or even other vendors. (MIB implementation may vary.)

PyLawful integrates the pysnmp package to build and parse SNMP messages.

The tool allows:

  • Setting the Target router IP address
  • Setting the SNMPv3 credentials
  • Walk the ciscoTap2MIB and ciscoIpTapMIB MIBs
  • Configure LI MD
  • Confirure IPv4/IPv6 Tap
  • Remove MD and/or Taps
  • List configured Taps
  • Check cTap2StreamInterceptedPackets stats for configured Taps

PyLawful

  1. Install PyLawful from PyPI:

    If your default Python installation is v3.x

    $ pip install PyLawful
    

    If your default Python installation is v2.x

    $ pip3 install PyLawful
    
  2. Running PyLawful:

    Start the python code to enter the menu

    $ python3 PyLawful
    
  3. Example:

    python PyLawful.py
    
    ####################################################
    
    Target router: 0.0.0.0
    
    Select operation:
    ----------------------------------------------------
    1. Set target router
    2. Set SNMP Security
    3. Walk LI MIBs
    ------------------------------------------------
    4. Create and set Mediation Device
    5. Delete Mediation Device
    ------------------------------------------------
    6. Add and activate new LI Stream TAP(s)
    7. Delete LI Stream TAP
    ------------------------------------------------
    8. Show configured TAPs
    9. Show Intercept Counters
    ------------------------------------------------
    0. Exit
    
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
PyLawful-0.1.4.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source Dec 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting