Skip to main content

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

jumpstarter_driver_snmp-0.7.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jumpstarter_driver_snmp-0.7.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file jumpstarter_driver_snmp-0.7.0.tar.gz.

File metadata

File hashes

Hashes for jumpstarter_driver_snmp-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6b5c29b7449d21a522d37f4c9e852cf372ab36b84d1c4f6a595a08db87b6750b
MD5 38029cabb539922fce39bce15fee45b2
BLAKE2b-256 b92608d8303396cca4ea1f2f6a1d4ac4ff9cdc9c4c49393aab0f2c80eecde09a

See more details on using hashes here.

File details

Details for the file jumpstarter_driver_snmp-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jumpstarter_driver_snmp-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8d22af47cf37d4577d2f359748f5b21a9b5fb2ce5430bef97692ab033fc1b5
MD5 05bffe52ed379ec7552b7f8994f27b07
BLAKE2b-256 f9acbf9e92fceda97af7a3f7d2ea4bd75fffcad609d9e8508f4bee188ea19957

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