Modem Checker

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT.  IN NO EVEN SHALL PAUL WHITE
OR LIVINGSTON ENTERPRISES BE LIABLE FOR ANY CLAIM, DAMAGES,
OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
THIS SOFTWARE OR THE USE OF OTHER DEALINGS IN THIS SOFTWARE

This is a simple program written to watch the modems in a Livingston
Portmaster 3 and make sure none of the modems go into ADMIN state.
In the case of a modem going into the ADMIN state, it will try and
reset it back to READY.

chkmodems will read a list of Portmasters out of the default file
called pms.lst.  Here is an example file:

# Begin of PMS.LST
# Sample Portmaster List
#
# Notes:
#    portmaster
#      The portmaster is the IP Address of your PM or you can
#      use a hostname thats in your DNS server
#    port
#      This is the TCP Port it is listening on, otherwise
#      known as the "telnet port" inside the Portmaster 3.
#    login
#      The login name it should use for the CLI.  A suggestion
#      is to create an Admin Read-Only account in RADIUS for 
#      this.  That way, in the case of someone getting a hold
#      of this file they would only have READ access on your PM.
#    password
#      This is the password for the login/user you specified 
#      above.  For a blank password, put two double quotes
#      i.e. ""
#
# portmaster	port	login	password

portmaster1	23	!root	MyBox1
portmaster2	23	!root	MyBox2
portmaster3	23	!root	MyBox3
portmaster4     6666    !mchk   ""

# End of PMS.LST

You can have up to 10 Portmasters in the portmaster list.

Two command line arguments are supported:

	-t #		The number of seconds to wait between
	                checks (DEFAULT: 10 seconds)
	               
	-l Filename     An alternate filename for the list of
	                Portmasters (DEFAULT: pms.lst)

Please notice that this software will not be supported by
Livingston Enterprises, or by Paul White.
