Sébastien Aperghis-Tramoni > RackMan-1.14 > RackMan::Device::PDU::APC_RackPDU

Download:
RackMan-1.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: RackMan-1.18

NAME ^

RackMan::Device::PDU::APC_RackPDU - Role for APC Rack PDUs

DESCRIPTION ^

This module is the role for APC Rack PDUs.

It works by fetching the configuration from the corresponding PDU (obviously, you need a network access to it) and updating it with the values from the RackTables database. The resulting configuration file can then be compared with the original or pushed back to the device.

PUBLIC METHODS ^

write_config

Write the PDU configuration file, config.ini, in the directory specified in RackMan's config (section [general], parameter path).

Arguments:

1. options (hashref)

diff_config

Fetch the PDU configuration from the device twice, modify one according to the database, compute and print the differences between the two.

The exit status of the program is set to 1 if there are differences, 0 otherwise.

Arguments:

1. options (hashref)

push_config

Push the configuration from disk (where write_config wrote it) to the PDU device.

Arguments:

1. options (hashref)

INTERNAL METHODS ^

fetch_from_database

Fetch the PDU configuration from the device via FTP and modify it according to the information from the RackTables database.

Arguments:

1. options (hashref)

Return:

fetch_from_device

Fetch the PDU configuration from the device via FTP.

Arguments:

1. options (hashref)

Return:

store_to_device

Store the PDU configuration to the device via FTP.

Arguments:

1. options (hashref)
2. PDU configuration (RackMan::File instance)

CONFIGURATION ^

See "Section [device:pdu:apc_rackpdu]" in rack

AUTHOR ^

Sebastien Aperghis-Tramoni

syntax highlighting: