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.8.tar.gz
.
File metadata
- Download URL: rs232_to_tripplite_pdu-1.0.8.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 | 94f154fabdf4c61c4a6965b30a1d1cd2fe849bd441ed66c7eed758bfdc0ed9a1 |
|
MD5 | 148650bee46afc186adda37137008cac |
|
BLAKE2b-256 | cb77b1e7791a173c88491235e6af2554ee6d279dd054e141b9a4e889eb5b2ff4 |
File details
Details for the file rs232_to_tripplite_pdu-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: rs232_to_tripplite_pdu-1.0.8-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 | 6361ba751d1d68ec69d904859b6a2f512eec5fabe639193b57bbf5f1cf318852 |
|
MD5 | 5ca78b3dbc2516bbe5eaa7ca0168f7d5 |
|
BLAKE2b-256 | e3e2e17b070f7f60742e035121f81528860bc960e49f445a23ef1c8e58260016 |