USER MANUALS


Use of the Ping Script (Scheduler Index)

The ping script checks that a Scheduler Index server is “alive”. This script is located in the directory <DENODO_HOME>/tools/arn-index.

Its syntax is the following:

Syntax of the ping script
ping [-t timeout] [-h host] [-p port] [-l login] [-P password] [-v]
  • -t. Optional. Time to wait for a response, in milliseconds (ms). If after this period the script does not receive a response, it returns an error.

  • -h. Optional. Host where the Scheduler Index server is running. If not present, the script sends the request to the default Scheduler Index host: localhost.

  • -p. Optional. Port where the Scheduler Index server is running. If not present, the script sends the request to the default Scheduler Index port: 9000.

  • -l. Optional. User login for the Scheduler Index server. If not present, the script performs an anonymous ping.

  • -P. Optional (mandatory when using -l). User password for the Scheduler Index server. You can provide the password encrypted by prefixing it with encrypted:. (Use the encrypt_password script to encrypt the password).

  • -v. Optional. If present, the script displays the status and the time taken to receive a response from the Scheduler Index 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 9000 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: 9000.

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

Add feedback