Skip to main content

SNMPv3 CLI testing utility — GET, WALK, SET, traps, credential testing

Project description

snmpv3-utils

A Python CLI for SNMPv3 testing. Most existing tools only support v1/v2 — this one does v3 properly.

Install

pipx install snmpv3-utils

Quick Start

# GET a single OID
snmpv3 query get 192.168.1.1 1.3.6.1.2.1.1.1.0 \
  --username admin \
  --auth-protocol SHA256 --auth-key myauthpass \
  --priv-protocol AES128 --priv-key myprivpass \
  --security-level authPriv

# WALK the system MIB
snmpv3 query walk 192.168.1.1 1.3.6.1.2.1.1 --profile myrouter

# Send a trap
snmpv3 trap send 192.168.1.1 --profile myrouter

# Test credentials
snmpv3 auth check 192.168.1.1 --profile myrouter

# Bulk test from a CSV
snmpv3 auth bulk 192.168.1.1 --file creds.csv

# JSON output (for piping into jq)
snmpv3 query walk 192.168.1.1 1.3.6.1.2.1.1 --format json | jq '.[] | .value'

Configuration

Copy .env.example to .env and fill in your defaults:

cp .env.example .env

Or use named profiles:

snmpv3 profile add myrouter \
  --username admin \
  --auth-protocol SHA256 --auth-key myauthpass \
  --priv-protocol AES128 --priv-key myprivpass \
  --security-level authPriv

Commands

Group Command Description
query get Fetch a single OID
query getnext Single GETNEXT step
query walk Full subtree traversal
query bulk GETBULK retrieval
query set Set an OID value
trap send Send a trap or inform
trap listen Listen for incoming traps
auth check Test a credential set
auth bulk Test many credentials from CSV
profile add/delete/list/show Manage credential profiles

Supported Security

Level Auth Privacy
noAuthNoPriv
authNoPriv MD5, SHA1, SHA256, SHA512
authPriv MD5, SHA1, SHA256, SHA512 DES, AES128, AES256

License

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

snmpv3_utils-0.3.1.tar.gz (69.3 kB view details)

Uploaded Source

Built Distribution

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

snmpv3_utils-0.3.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file snmpv3_utils-0.3.1.tar.gz.

File metadata

  • Download URL: snmpv3_utils-0.3.1.tar.gz
  • Upload date:
  • Size: 69.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for snmpv3_utils-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d6c03c7f9eed410ade1d0559c2ae31ab56d03359c6f62b3a8bb68d4a5cee1208
MD5 6e9b00cea42d93cefff2684535af8819
BLAKE2b-256 9ba9a1771af034efd16a51da9bf6ef93958f30589fad9710e3853914cdb0a294

See more details on using hashes here.

File details

Details for the file snmpv3_utils-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: snmpv3_utils-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for snmpv3_utils-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a26afcdd441e85eaea26f2248fc070107a9551983d1dd6b4029841e477ec07b0
MD5 774f4ab89304a0750e617ddedd6ebbb2
BLAKE2b-256 69ee0df360e4eb7f37ea7a89cbedcb4f339a95e9b46b3a628e355952bcd9785e

See more details on using hashes here.

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