Code Monkey home page Code Monkey logo

snmptrap-gen's Introduction

Build Status

snmptrap-gen

Given a MIB name, generates and sends all traps with all OIDs populated with dummy values of the right type

Currently will send traps to [::1]:161 using hard-coded example credentials

Usage

./snmptrap-gen.py
#   snmptrap-gen.py MIB-NAME
#   snmptrap-gen.py (-h | --help)

Docker Image

docker pull docker.io/ciscocx/snmptrap-gen:${DOCKER_TAG}

Example (Docker)

docker run --rm -it docker.io/ciscocx/snmptrap-gen send-all-traps-from-mib STARENT-MIB --port=162 --ipv6-host=2001:db8::1

NOTE: If you want the containerized version of snmptrap-gen to send traps to the local machine instead of the IP address of the container, which may not be routable by the receiving side, you can add --net=host to your docker run command:

docker run --net=host --rm -it docker.io/ciscocx/snmptrap-gen send-all-traps-from-mib STARENT-MIB --port=162 --ipv6-host=ip6-localhost

Example (Python)

git clone [email protected]:cisco-cx/snmptrap-gen.git
cd snmptrap-gen
make deps
pipenv shell
pipenv install -d
snmptrap-gen STARENT-MIB

Notes

Lots of MIB files here:

snmptrap-gen's People

Contributors

agustinhenze avatar andstanl avatar anshika081 avatar dcwangmit01 avatar josdotso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.