internet connectivity via command line... / how
Monitor Internet connection
SLCheck provides the functionality to monitor your
internet connection by requesting two different URLs periodically.
The idea is that if two independent internet websites are not
available from your local area network your service “Internet
Browsing” is down.
This feature can help you
you want to control your internet service provider
you would like to be notified if your company's internet
connection is down
you need service level reports to improve or present
your service quality
Here is the command for Internet
connection monitoring (via proxy server). Open a command line and
-p 80 -a <proxy-address> -u http://www.website1.com -r
"HTTP/1.1 200 OK" -a2 <proxy-address> -u2
http://www.website2.com -r2 "HTTP/1.0 200 OK"
SLCheck tries to connect to
the proxy server and to send a HTTP GET request for www.website1.com.
Then it tries to connect to the same proxy server again and to send a HTTP GET request for www.website2.com.
There are four possibilities for the result:
and Website2 answer
with the expected answer string within the timeout (default =
2000ms) => CheckOK.cmd runs for both requests.
Website1 or Website2
don’t answer within the timeout or another answer string is
returned => CheckOK.cmd runs for the successful attempt and
CheckTimeout.cmd or CheckMismatch.cmd for the unsuccessful
and Website2 generate
a timeout or return a wrong answer string => CheckTimeout.cmd
or CheckMismatch.cmd are executed for the unsuccessful attempts.
An additional batch file will be executed to indicate a serious
Caution: SLCheck can NOT
perform authentication! Please configure your proxy server to allow
the IP address of the box that runs SLCheck without authentication.
If you are connected
directly to the Internet without proxy server, you can use the
-p 80 -a www.website1.com -u / -r "HTTP/1.1 200 OK" -a2
www.website2.com -u2 / -r2 "HTTP/1.0 200 OK"