It would be useful to have PSU/PDU metadata to map the connections of system resources to smart PDUs. This would be similar to network interface tracking that lends itself to switch port management. A few useful commands to go along with it:
# Show the current PSU -> PDU mappings
quads --host host01.example.com --ls-psus
# Turn off power to a specific PSU
quads --host host01.example.com --mod-psu --psu-id 1 --psu-state off
# Turn off power to all PSUs
quasd --host host01.example.com --power-state off
The PSU -> PDU metadata should contain several bits of information:
PDU_ID
PDU_PORT
And the PDUs would be defined to have:
PDU_IP
PDU_USER
PDU_PASS
PDU_TYPE
Depending on the type of PDU and support (e.g. APC), the power toggle subcommands would function as desired.