Pdu component manager
This module implements component management for PDUs.
- class PduComponentManager(host, port, authority, max_objects_per_pdu, logger, communication_state_callback, component_state_callback, attributes, poll_rate, power_marshaller_trl)
A component manager for a PDU.
- __init__(host, port, authority, max_objects_per_pdu, logger, communication_state_callback, component_state_callback, attributes, poll_rate, power_marshaller_trl)
Initialise a new instance.
- Parameters:
host (
str) – the hostname of the pduport (
int) – port of the pduauthority (
str|dict[str,str]) – the snmp authority of the pdumax_objects_per_pdu (
int) – max objects per pdulogger (
Logger) – loggercommunication_state_callback (
CommunicationStatusCallbackType) – callback to be called when the status of the communications channel between the component manager and its component changescomponent_state_callback (
Callable[...,None]) – callback to be called when the component state changesattributes (
Sequence[SNMPAttrInfo]) – pdu attributespoll_rate (
float) – how often the pdu pollspower_marshaller_trl (
Optional[str]) – trl of power marhsaller
- schedule_power(attached_device_info, device_trl, command_str, on_off)
Request a power schedule from the marshaller.