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
Built Distribution
File details
Details for the file rs232_to_tripplite_pdu-1.0.9.tar.gz
.
File metadata
- Download URL: rs232_to_tripplite_pdu-1.0.9.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2344be2595e4bf4db21503eab42c091ee1d3876b9f03ed174b1116f5532b977 |
|
MD5 | 1a42a5fd926f1da6c0b888354a6e0368 |
|
BLAKE2b-256 | 247f63af74be63d30a92b59691d1d9820b21afa001320ec748cfefc289b3c6bb |
File details
Details for the file rs232_to_tripplite_pdu-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: rs232_to_tripplite_pdu-1.0.9-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e363545c6fedaf945e784f995c3b571af555ebbe0f867611ac6ea75c642762f |
|
MD5 | 573726f15746b059500fc883a4c69391 |
|
BLAKE2b-256 | 6dbc9102bec422455b0eb4dbf342f17038fe0e4e9c96a237dc57c838a5dd4dd5 |