 'Expert Power Control NET' - epc_control.pl
===============================================

 epc_control.pl is a command line tool to control the 'Expert Power Control NET'
 Use epc_control.pl to get the current state of your EPC or to switch it On/Off.
 
 epc_control.pl is a script written in Perl, so you need to have Perl
 interpreter software installed on your PC.
 Additionaly you need the Perl modul "LWP::UserAgent". Most Linux ditributions
 come with an already installed Perl version. On Windows machines we recommend
 to use the ActivePerl distribution by ActiveState:
        http://www.activestate.com/Products/ActivePerl/

 
  I. epc_control.pl Command line parameter description :
        [--host=192.168.0.2]     : define the IP-Adress of your device)
        [--password=mypasswd]    : define HTTP Password if needed
        [--powerswitch=X],[-p=X] : select Powerswitch Nr.X (default: 0)
        [--switch_on], [-on]     : switch PowerSwitch X ON
        [--switch_off],[-off]    : switch PowerSwitch X OFF
        [--switch_toggle],[-t]   : toggle PowerSwitch X from ON<->OFF
        [--all,[-a]              : switch all available ports
        [--delay=X,[-d=X]        : when --all, delay X seconds after each switch action
        [--silent],[-s]          : no console output
		

 II. expample calls :

        epc_control.pl --host=192.168.1.101
            this will show you the current state of your EPC at IP Address 192.168.1.101
			
        epc_control.pl --host=192.168.1.101 -on
            this will switch on the EPC at IP Address 192.168.1.101
 			
        epc_control.pl --host=192.168.1.101 -off --password="mypwd"
            this will switch off the EPC at IP Address 192.168.1.101 with
            password protection enabled


 III. expample calls for multi port EPCnet:
 
        epc_control.pl --host=192.168.1.101 -on -p=2
            this sill switch on switch ports 2 on 192.168.1.101

        epc_control.pl --host=192.168.1.101 -on --all --delay=5
            this will switch on all ports on 192.168.1.101 with a 
            delay of 5 seconds after switching each port
            !! Attention: delay musst be >= 1 second !!
            
            
            
 Reboot your server with 'timeout_reset.pl'
============================================

 timeout_reset.pl is a sample script which demonstrates how to use
 epc_control.pl to supervise a server in your intranet.
 
 timeout_reset.pl tries constantly to ping a your server with a certain
 host IP-address. Once this ping is not replied, it assumes your server
 is down and calls epc_control.pl to switch off the host's powersupply,
 and switch it on again after a certain idle time.
 
 Please modify the option-variables such as your host's IP-Address and
 the IP-Address of your EPCnet at the beginning of the script file.
 Please us any ascii text editor to do so.
 	
 	
 	
DISCLAIMER
------------
 Usage of this perl scripted software is at your own risk. This
 software is provided "as is", and is being distributed without fee.
 Due to its free source code, you are allowed to modify what every
 you need.
 
----------------------------------------------------------------------------------------------
 (c) Gude Analog- und Digitalsysteme GmbH, Martin Bachem
 $Id: README.txt,v 1.4 2004/10/07 14:31:39 martinb1 Exp $
 		