https://github.com/testainers/snmpd-container
Small container image to test snmp connections.
https://github.com/testainers/snmpd-container
docker docker-container docker-image hacktoberfest podman podman-container podman-image snmp snmpd snmpv2 snmpv3 test test-automation testainers
Last synced: 21 days ago
JSON representation
Small container image to test snmp connections.
- Host: GitHub
- URL: https://github.com/testainers/snmpd-container
- Owner: testainers
- License: mit
- Created: 2024-04-23T17:40:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T22:41:04.000Z (over 1 year ago)
- Last Synced: 2024-08-15T15:07:29.128Z (over 1 year ago)
- Topics: docker, docker-container, docker-image, hacktoberfest, podman, podman-container, podman-image, snmp, snmpd, snmpv2, snmpv3, test, test-automation, testainers
- Language: Shell
- Homepage: https://testainers.com
- Size: 68.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
snmpd-container
[](https://github.com/testainers/snmpd-container/stargazers)
[](https://hub.docker.com/r/testainers/snmpd-container/tags)
[](https://github.com/testainers/snmpd-container/blob/main/LICENCE)
[](https://github.com/testainers/snmpd-container/releases/latest)
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!
[](https://www.buymeacoffee.com/edufolly)
## 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!
[](https://nubank.com.br/pagar/2bt2q/RBr4Szfuwr)
---
## 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:
```shell
docker run -d --rm --name snmpd -p 5161:161/udp testainers/snmpd-container:latest
```
Test:
```shell
snmpwalk -v2c -c public 127.0.0.1:5161 .
```
---
## Local Image Build
Build:
```shell
docker build . --no-cache -t snmpd-container
```
Run:
```shell
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:
```shell
snmpwalk -v3 -On -u testainers -l authPriv \
-a SHA -A authpass \
-x AES -X privpass \
localhost:5161 .1.3.6.1.2.1.1
```
```shell
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 "admin@testainers.com"
```
```shell
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:
```shell
docker exec -it snmpd sh
```