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.2.0.tar.gz (94.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.2.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snmpv3_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 94.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.2.0.tar.gz
Algorithm Hash digest
SHA256 b8e446113e8e166727aad16eee9c29180449106af674be5ce2c999ec3bf8900f
MD5 dc64532c543142b140a3e62878cca40e
BLAKE2b-256 1f5c8878d1c06acf795800cf1ddb4044509ab30fbbe4b10159152cbc6c1c4807

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snmpv3_utils-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13369797f4553e067172e74703d783039a4ea67480860be9f947e392b5ff9e37
MD5 dbf14419e67ba0e73c58491db20777b9
BLAKE2b-256 12c2545e87ab73bc915241ea72c8dae3806f2fc8415404cd0cd1e1525492a74e

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