The WL500gPControl package

[Tags: bsd3, program]

The package consists of two command-line utilities to manage the Asus WL500g Premium router without logging to its admin page.

The main utility is WL500gPControl is used to ask the status of the connection (Connected/Disconnected), connection parameters (DNS servers, Local IP, Foreign IP etc, log), and perform connection, disconnection and reconnection.

Other utility - WL500gPStatus created only to ease integration into xmobar and return only Connected or Disconnected string, enclosed into format tags (when option -c is given).

The last argument of these two utilities is a credentials file. It has simple format:

user: <user name>
password: <password>
host: <host name or IP address>

The password should be in plain text, so it is recommended to protect this file from reading for everyone except you.

If credentials file is not given, than programs will try to use default credential file, which should be located:

Sometimes paths could be different. To determine the read path to the default credentials file run WL500gPControl -s and look at the error string, where will be sayed where it searches credentials file.


[Skip to ReadMe]

Properties

Versions0.3.1, 0.3.2, 0.3.4
Change logNone available
Dependenciesbase (<4), directory, filepath, mtl, unix, Win32, WL500gPLib (>=0.3) [details]
LicenseBSD3
AuthorVasyl Pasternak <vasyl.pasternak@gmail.com>
MaintainerVasyl Pasternak <vasyl.pasternak@gmail.com>
CategoryNetwork, UI
ExecutablesWL500gPControl, WL500gPStatus
UploadedWed Oct 28 20:21:11 UTC 2009 by VasylPasternak
Downloads597 total (37 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-05-18 [all 1 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for WL500gPControl-0.3.4

Asus WL500g Premium command-line tool

Latest releases could be obtained from 
http://hackage.haskell.org/packages/archive/WL500gPControl

Author: Vasyl Pasternak

This program access to the WL500g Premium router through the web admin
interface and performs following actions:

 - query connection status
 - query log
 - sends connect command
 - sends disconnect command
 - sends clear log command
 - reconnects the WAN (disconnect -> wait -> connect)

Connection info consists of login user name, login password and router
host name (or IP address) and stored in credeintials file

Credentials file format: 

user: <login name>
password: <login password>
host: <router's host name or IP address>

Default credentials file stored in the
'$HOME/.WL500gPControl/credentials' file on Linux or in the 
'C:\Documents And Settings\<username>\Application Data\WL500gPControl\credentials' 
file on Windows.

Also you can specify another credentials file in each call to the WL500gPControl
tool. Its name should be the last parameter to the command.

WL500gPControl accepts following parameters:

-c, --connect                    Send connect command to the router
-d, --disconnect                 Send disconnect command to the router
-r[wait], --recornnect[=wait]    Reconnect, wait parameter specifies the period
                                 between disconnect and connect (in seconds)
-s, --status                     Prints connection status
-l[N], --log[=N]                 Prints last N lines of the router's log
-x, --log-clear                  Clear log