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.1.1.tar.gz (75.1 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.1.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snmpv3_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 75.1 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.1.1.tar.gz
Algorithm Hash digest
SHA256 536459f09f8d4a64770d2ac1e5f17986434843434c3d7ad32cce46bf379fa023
MD5 6f35caf9bc796ea61f693101446eea76
BLAKE2b-256 3416791194573384c0cb172ade03203f328768337820bae0d174c286c5b7e694

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snmpv3_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fac703a80f270f10cc149cf1341c4b14b7d6640f486f17265faeab0ac6799656
MD5 2287fc56c69b77c91f5320298753a15f
BLAKE2b-256 fc6b64104886069e13edfb3f8cf3d1448b36959ac6401e61fe18c8e98057b308

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