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.