Pdu Device

This module implements the PDU device.

class MccsPdu(*args, **kwargs)

An implementation of a PDU Tango device for MCCS.

__init__(*args, **kwargs)

Initialise a new instance.

Parameters:
  • args (Any) – positional arguments.

  • kwargs (Any) – keyword arguments.

create_component_manager()

Create and return a component manager.

Return type:

PduComponentManager

Returns:

SNMPComponent manager

delete_device()

Delete the device.

Return type:

None

healthReport()

Get the health report.

Return type:

str

Returns:

the health report.

init_device()

Initialise the device.

Return type:

None

pduPortOff(port)

Set pdu port OFF.

Parameters:

port (int) – The pdu port to turn off

Return type:

None

pduPortOn(port)

Set pdu port On.

Parameters:

port (int) – The pdu port to turn on

Return type:

None

main(*args, **kwargs)

Entry point for module.

Parameters:
  • args (str) – positional arguments

  • kwargs (str) – named arguments

Return type:

int

Returns:

exit code