Use of the Ping Script (Scheduler)¶
The ping
script checks that a Scheduler server is “alive”. This script is located in the directory <DENODO_HOME>/tools/scheduler
.
Its syntax is the following:
ping [-t timeout] [-h host] [-p port] [-l login] [-P password] [-a authType] [-v]
-t
. Optional. Time to wait for a response, in milliseconds. If after this period the script does not receive a response, it returns an error.-h
. Optional. Host where the Server is running. If not present, the script sends the request to the default Scheduler host:localhost
.-p
. Optional. Port where the Server is running. If not present, the script sends the request to the default Scheduler port:8000
.-l
. Optional. User login for the Server. If not present, the script performs an anonymous ping.-P
. Optional (mandatory when using -l). User password for the Server. You can provide the password encrypted by prefixing it withencrypted:
. (Use theencrypt_password
script to encrypt the password).-a
. Optional. Authentication type:local
orvdp
. If not present, the script useslocal
authentication.-v
. Optional. If present, the script displays the status and the time taken to receive a response from the Server.
The ping
script returns 0
if the status check is successful.
Otherwise, it returns 1
.
An example of running the ping command is shown below:
Example 1:
ping -t 1000 -v
Sends a ping request to localhost
and port 8000
in verbose mode
with a timeout of 1 second
Example 2:
ping myMachine
Sends a ping request to myMachine
. As the port is not set, the
script sends the request to the default port: 8000
.
Example 3:
ping -t 9000 -l admin -P encrypted:UjOsIu8972jviqGpcLP3Mg== -h localhost -p 5999
Sends a ping request to localhost
and port 5999
with a timeout
of 9 seconds. The password was encrypted by executing this command:
encrypt_password.bat mypassword