GithubHelp home page GithubHelp logo

testainers / snmpd-container Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 70 KB

Small container image to test snmp connections.

Home Page: https://testainers.com

License: MIT License

Dockerfile 2.15% Shell 97.85%
docker docker-container docker-image hacktoberfest podman podman-container podman-image snmp snmpd snmpv2

snmpd-container's Introduction

Testainers snmpd-container

Build With Love Version Licence Build

The small container image is designed specifically for testing SNMP connections.

Funding

Your contribution will help drive the development of quality tools for the Flutter and Dart developer community. Any amount will be appreciated. Thank you for your continued support!

BuyMeACoffee

PIX

Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de para a co munidade de desenvolvedores Flutter e Dart. Qualquer quantia será apreciada. Obrigado pelo seu apoio contínuo!

PIX


Environment Variables

Variable Options Default
SNMP_COMMUNITY -- public
SNMP_LOCATION -- --
SNMP_CONTACT -- --
SNMP_SERVICES -- 72
SNMP_V3_USER -- --
SNMP_V3_USER_TYPE rouser - rwuser rouser
SNMP_V3_AUTH_PROTOCOL MD5 - SHA SHA
SNMP_V3_AUTH_PWD -- --
SNMP_V3_PRIV_PROTOCOL DES - AES AES
SNMP_V3_PRIV_PWD -- --

If SNMP_LOCATION or SNMP_CONTACT are not set, they may be writable.

How to Use

Only SNMPv2c

Run:

docker run -d --rm --name snmpd -p 5161:161/udp testainers/snmpd-container:latest

Test:

snmpwalk -v2c -c public 127.0.0.1:5161 .

Local Image Build

Build:

docker build . --no-cache -t snmpd-container

Run:

docker run -d --rm --name snmpd -p 5161:161/udp \
  -e SNMP_V3_USER_TYPE=rwuser \
  -e SNMP_V3_USER=testainers \
  -e SNMP_V3_AUTH_PWD=authpass \
  -e SNMP_V3_PRIV_PWD=privpass \
  snmpd-container

Test:

snmpwalk -v3 -On -u testainers -l authPriv \
  -a SHA -A authpass \
  -x AES -X privpass \
  localhost:5161 .1.3.6.1.2.1.1
snmpset -v3 -u testainers -l authPriv \
  -a SHA -A authpass \
  -x AES -X privpass \
  localhost:5161 .1.3.6.1.2.1.1.4.0 s "[email protected]"
snmpget -v3 -u testainers -l authPriv \
  -a SHA -A authpass \
  -x AES -X privpass \
  localhost:5161 .1.3.6.1.2.1.1.4.0

Access:

docker exec -it snmpd sh

snmpd-container's People

Contributors

edufolly avatar

Stargazers

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