Skip to main content

No project description provided

Project description

RS-232 to Tripplite PDU Tool

The RS-232 to Tripplite PDU tool allows admins to send byte strings through an RS-232 connector to control a Tripplite PDU. Supported operations are to turn a specific outlet port ON, OFF, and CYCLE.


Supported Serial Commands

This tool expects commands conforming to the grammar below.

Turn outlet on: on <bank> <port>
Turn outlet off: of <bank> <port>
Cycle (restart) outlet: cy <bank> <port>

In all cases, <bank> and <port> are expected to be uint8 values.
In all cases, this tool will send a SET command to the SNMP agent.


Config Format

This tool expects a configuration file called config.yaml, placed under /etc/ser2snmp/. This file must conform the yaml format and have the following sections.

serial_configs:
- serial_port: string value of serial port tty file
- timeout: time in seconds before timing out serial connection

snmp_retry: - max_attempts: integer value of maximum attempts allowed for an SNMP command
- retry_delay: time in seconds to wait between SNMP command retries
- timeout: time in seconds before timing out SNMP commands

banks: - <bank number>*  - pdu_auth:    - user: string value of SNMP username
   - auth: string value of authentication protocol
   - auth_passphrase: string value of authentication passphrase
   - priv: string value of privacy protocol
   - priv_passphrase: string value of privacy passphrase
  - ip_address: string value of IP address of SNMP agent
  - snmp_port: integer value of network port of SNMP agent
  - ports:
   - <port number>*: string value of OID for this port


SNMP Command Buffering

To prevent the SNMP agent from being overwhelmed by commands, this tool will not send a command to the SNMP agent until a response for the previous command has been received. As such, all queued commands will be stored in a priority buffer. The priority given to commands will follow the order the commands were received by the tool. This is to prevent commands being sent out of order.


Health Check

This tool will perform a health check on a regular interval. Each health check will send a GET command to the SNMP agent. If a response is successfully received, the health check is considered to have passed. If the command timed-out or returned an error, the health check is considered to have failed. At this point, the tool will log this event, but continue on with other operations.

Health checks will have priority over other commands. Even though health checks will be placed into the same buffer as others, health checks will always have the highest possible priority.

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

rs232_to_tripplite_pdu-1.0.7.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

rs232_to_tripplite_pdu-1.0.7-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file rs232_to_tripplite_pdu-1.0.7.tar.gz.

File metadata

File hashes

Hashes for rs232_to_tripplite_pdu-1.0.7.tar.gz
Algorithm Hash digest
SHA256 dc917c3fd2bd3364ddfde8a58b61b5ddf5c810d7517a3074feb586c0aa120d68
MD5 7e1468b84a8a5f3b22eed14bad643df8
BLAKE2b-256 e811964690936cb315c815505a8a1ffe2face484680def31e17237493cb6bf01

See more details on using hashes here.

File details

Details for the file rs232_to_tripplite_pdu-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for rs232_to_tripplite_pdu-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6a486810c7e66bb332f8adf83f7ec9e3ddad6e30663780e23f9abbe33e6214f9
MD5 03b1aed49b096aee526685ba1ab129d6
BLAKE2b-256 7c8baa9ed526a9096063e685a77931ea76e85f9c05caf43d33fa750ba450945e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page