SNMP driver
Project description
SNMP driver
jumpstarter-driver-snmp provides functionality for controlling power via
SNMP-enabled PDUs (Power Distribution Units).
Installation
:substitutions:
$ pip3 install --extra-index-url {{index_url}} jumpstarter-driver-snmp
Configuration
Example configuration:
export:
power:
type: jumpstarter_driver_snmp.driver.SNMPServer
config:
host: "pdu.mgmt.com"
user: "labuser"
plug: 32
port: 161
oid: "1.3.6.1.4.1.13742.6.4.1.2.1.2.1"
auth_protocol: "NONE"
auth_key: null
priv_protocol: "NONE"
priv_key: null
timeout: 5.0
Config parameters
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
| host | Hostname or IP address of the SNMP-enabled PDU | str | yes | |
| user | SNMP v3 username | str | yes | |
| plug | PDU outlet number to control | int | yes | |
| port | SNMP port number | int | no | 161 |
| oid | Base OID for power control | str | no | "1.3.6.1.4.1.13742.6.4.1.2.1.2.1" |
| auth_protocol | Authentication protocol ("NONE", "MD5", "SHA") | str | no | "NONE" |
| auth_key | Authentication key when auth_protocol is not "NONE" | str | no | null |
| priv_protocol | Privacy protocol ("NONE", "DES", "AES") | str | no | "NONE" |
| priv_key | Privacy key when priv_protocol is not "NONE" | str | no | null |
| timeout | SNMP timeout in seconds | float | no | 5.0 |
API Reference
.. autoclass:: jumpstarter_driver_snmp.client.SNMPServerClient()
:members:
:show-inheritance:
Examples
Power cycling a device:
snmp_client.cycle(wait=3)
Basic power control:
snmp_client.off()
snmp_client.on()
Using the CLI:
j power on
j power off
j power cycle --wait 3
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jumpstarter_driver_snmp-0.7.4.tar.gz.
File metadata
- Download URL: jumpstarter_driver_snmp-0.7.4.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c044830a9ffdec45fd2fdaf59d3eb58600676a2e13e96fc7ecbc3de6a349c9e
|
|
| MD5 |
ff57e587323bdbc1db78819badf8f923
|
|
| BLAKE2b-256 |
71936f228bb2b93ac2ef8ce544d1114ff34267eea986402dd26dbdfb52541966
|
File details
Details for the file jumpstarter_driver_snmp-0.7.4-py3-none-any.whl.
File metadata
- Download URL: jumpstarter_driver_snmp-0.7.4-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54a8d8afa16aea280e593f832ea1f5bdba90990f8f07eb59d83ab279f0d74597
|
|
| MD5 |
f6cdc9789bec7dbb5b7ac42ada9c5905
|
|
| BLAKE2b-256 |
98c0fb8a1c38c44989e089486579d989afddef314b2241d7d22e3e263b7a1e74
|