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.2.tar.gz (70.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.3.2-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snmpv3_utils-0.3.2.tar.gz
  • Upload date:
  • Size: 70.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.3.2.tar.gz
Algorithm Hash digest
SHA256 445c61b26647ebf3fc16de98fea3888cdd1acaf89e2707bd515e7ecc49d7b4d8
MD5 94917f2cb52a17be8e529d0d79bd4257
BLAKE2b-256 1ca3b6da80267c3dd81f633d7ea3fda7207c16171196bce35f1361285c6f1d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snmpv3_utils-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 22.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e51f79e6ebc67a374c509168325a009827d38cc2be5cdee43089c716da411d30
MD5 97258771536a360abc82a64e66e51945
BLAKE2b-256 dea7ff762392069a515bef3651be5d14caea1371e0528388dbaaec1720a90a9f

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