Power::Outlet::iBootBarGroup - Control and query multiple Dataprobe iBootBar power outlets together
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
Power::Outlet::iBootBar is a package for controlling and querying multiple outlets together on a Dataprobe iBootBar network attached power outlet.
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");
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
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
Sets and returns the outlets CSV list as labeled on the back of the device.
Default: "1,2,3,4,5,6,7,8"
Sends a TCP/IP message to the iBootBar device to query the current state
Sends a TCP/IP message to the iBoot device to Turn Power ON
Sends a TCP/IP message to the iBoot device to Turn Power OFF
Queries the device for the current status and then requests the opposite.
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
Please log on RT and send an email to the author.
DavisNetworks.com supports all Perl applications including this package.
Michael R. Davis CPAN ID: MRDVT DavisNetworks.com
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.
To install Power::Outlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Power::Outlet
CPAN shell
perl -MCPAN -e shell install Power::Outlet
For more information on module installation, please visit the detailed CPAN module installation guide.