Skip to main content

SNMP Enumerator

Project description

SNMPen (SNMP Enumerator)

You know snmpcheck? Good, snmpen is doing the same. It's another enumerator for SNMP enabled hosts. It started as a drop-in replacement for snmpcheck which was no longer maintained back in 2018/2019. Nowadays, snmpen has its own heart and mind but still shares a similar CLI interface with snmpcheck.

Enumerations are happening against RFC1157-compliant systems. The heavy lifting is done by pysnmp.

Installation

$ pip install snmpen

For Nix or NixOS users is a package available. Keep in mind that the latest releases might only be present in the unstable channel.

 $ nix-env -iA nixos.snmpen

Usage

The tools support IPv4 addresses, IPv6 addresses and FQDNs as input.

$ snmpen -h

options:
  -p, --port PORT       SNMP port (default: 161)
  -c, --community COMMUNITY
                        SNMP community string (default: public)
  -s, --snmp-version VERSION
                        SNMP version: 1 or 2c (default: 1)
  -w, --write           Detect write access (not part of the enumeration)
  -d, --disable_tcp     Disable TCP connections enumeration
  -t, --timeout SECONDS
                        Timeout in seconds (default: 5)
  -r, --retries RETRIES
                        Request retries (default: 1)
  -o, --output FILE     Write formatted enumeration output to FILE
  --output-format FORMAT
                        Output format: auto, plain, or rich (default: auto)
  -f, --hosts-file FILE
                        Read targets from FILE (one host per line)
  -v, --version         Show script version and exit
  -h, --help            Show this help message and exit

Usage examples:
  snmpen 172.16.1.1
  snmpen 2001:db8::10
  snmpen demo.pysnmp.com
  snmpen 172.16.1.1 -o
  snmpen -f hosts.txt
  snmpen --output-format plain -f hosts.txt
  snmpen --output-format rich -o report.txt 172.16.1.1
  snmpen -c private -s 2c 172.16.1.1
  snmpen -w -d -t 10 172.16.1.1

The hosts file supports one target per line. Empty lines and lines starting with # are ignored.

When -o is used without a filename, snmpen writes one file per successful target using <target>.txt.

The system information section also shows the detected supported SNMP versions for the host (currently SNMPv1 and SNMPv2c detection).

License

snmpen is licensed under MIT.

Project details


Download files

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

Source Distribution

snmpen-1.1.3.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snmpen-1.1.3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file snmpen-1.1.3.tar.gz.

File metadata

  • Download URL: snmpen-1.1.3.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for snmpen-1.1.3.tar.gz
Algorithm Hash digest
SHA256 389e619c036613270cb9f3e62d429f4e7bdf335a08464620240b859408450f7f
MD5 fcfd45937bc7911e190d54d9ce01f951
BLAKE2b-256 b7cce43248d8bfcc8bfe67f26469ac4afccd3a3cd8ce4246528762f681446363

See more details on using hashes here.

Provenance

The following attestation bundles were made for snmpen-1.1.3.tar.gz:

Publisher: publish-to-pypi.yml on affolter-engineering/snmpen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file snmpen-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: snmpen-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for snmpen-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c94d9c0434c426dbf5165f00ba0f9360d3be2170a826b2b4c2adfc2cacbe3cf9
MD5 2fa6cf56c716ec5cf87c7d9a9ef55c62
BLAKE2b-256 7adc241b4916e8a975a1be8aa53e9cd6ef58e952c1510fb5e4f226c1b6611329

See more details on using hashes here.

Provenance

The following attestation bundles were made for snmpen-1.1.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on affolter-engineering/snmpen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page