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.0.tar.gz (68.9 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.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snmpv3_utils-0.3.0.tar.gz
  • Upload date:
  • Size: 68.9 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.0.tar.gz
Algorithm Hash digest
SHA256 a0908cc4c51dc9d310e897d71cb945e76586cf53d04bbf468a8cdf3ac1e51385
MD5 79d05d8bb8843daf658728aac65f164a
BLAKE2b-256 16f4d28c88392154e5b8c4157409340113879796eb7810ad02c1d457a1f3311e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snmpv3_utils-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a82795b98e52ef8189cca3265fadcb284d63b7e595f221e223b2488ef3d780
MD5 c1b3933c4257807e157848de43ee4df6
BLAKE2b-256 ab1ae1c6efd9b1d9cfc59d870b017f851b1f12fe8b458a33bef281508852e9a7

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