man SatUtils::DW6000 () - interface to DW6000 VSAT Modem
NAME
SatUtils::DW6000 - interface to DW6000 VSAT Modem
SYNOPSIS
use SatUtils:DW6000; my $m=SatUtils::DW6000->new;
DESCRIPTON
This is an interface to the DW6000 VSAT Modem. It can be used to extract some values from the modem, as well as reboot it and do a few other useful things. It's fairly limited so far.
METHODS
- new
- Opens a connection to the DW6000. By default connects to an IP address as defined by dw6000address in the config file, or a reasonable default, but a parameter can be passed with an IP address or hostname of the controller to connect to. Returns an object representing this connection. Note that the DW6000 only supports one connection at a time, and blocks other connections until the current one is closed.
- reboot
- Reboots the DW6000.
- getvalues
- Returns a hash of values from the DW6000. Currently limited to values from the satelite interface stats main statistics page.
- DESTROY
- The DW6000's telnet interface is fragile; leaving it without properly existing can hang the device hard. This module uses a DESTROY hook to try to always shut down connections cleanly.
BUGS
Interrupting a program that uses this module in the middle of a command canhang the DW6000.
AUTHOR
Joey Hess <joey@kitenet.net>