NAME
Power::Outlet::iBootBarGroup - Control and query multiple Dataprobe iBootBar power outlets together
SYNOPSIS
my $outlet=Power::Outlet::iBootBarGroup->new(
host => "mybar",
outlets => "1,2,3,4"
community => "private",
);
print $outlet->query, "\n"; #any on
print $outlet->on , "\n"; #all on
print $outlet->off , "\n"; #all off
DESCRIPTION
Power::Outlet::iBootBar is a package for controlling and querying multiple outlets together on a Dataprobe iBootBar network attached power outlet.
USAGE
CONSTRUCTOR
new
my $outlet=Power::Outlet->new(type=>"iBootBarGroup", "host=>"mylamp", outlets=>"1,2,3,4");
my $outlet=Power::Outlet::iBootBarGroup->new(host=>"mylamp", outlets=>"1,2,3,4");
PROPERTIES
host
Sets and returns the hostname or IP address.
Manufacturer Default: 192.168.0.254
Note: Set IP address via telnet User Name: admin, Password: admin then "help network"
set ipmode dhcp
OR
set ipmode static
set ipaddress 192.168.0.254
set subnet 255.255.255.0
set gateway 192.168.0.1
community
Sets and returns the SNMP community.
my $community = $outlet->community("private"); #read/write
my $community = $outlet->community("public"); #read only features
Note: Set SNMP community via telnet User Name: admin, Password: admin then "help snmp"
set snmp writecommunity private
set snmp readcommunity public
set snmp 1 enable yes
outlets
Sets and returns the outlets CSV list as labeled on the back of the device.
Default: "1,2,3,4,5,6,7,8"
METHODS
query
Sends a TCP/IP message to the iBootBar device to query the current state
on
Sends a TCP/IP message to the iBoot device to Turn Power ON
off
Sends a TCP/IP message to the iBoot device to Turn Power OFF
switch
Queries the device for the current status and then requests the opposite.
cycle
Sends a TCP/IP message to the iBoot device to Cycle Power (ON-OFF-ON or OFF-ON-OFF). Cycle time is determined by Setup.
Manufacturer Default Cycle Period: 10 seconds
BUGS
Please log on RT and send an email to the author.
SUPPORT
DavisNetworks.com supports all Perl applications including this package.
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
DavisNetworks.com
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.