Testing that a server can be found

The dbping command-line utility is provided to help troubleshoot connections. In particular, you can use it to test if a server with a certain name is available on your network.

The dbping utility takes a connection string as a command-line option, but by default only those pieces required to locate a server are used. It does not attempt to start a server.

Example 1

The following line tests to see if a server named Ciaran is available over a TCP/IP connection:

dbping -c “eng=Ciaran;CommLinks=tcpip”

The following command tests to see if a default server is available on the current machine:

dbping

For more information on dbping options, see the Utility Guide.

For more information about printing more output during connection attempts, see “LogFile connection parameter [LOG]”. This feature is especially useful in conjunction with the Logfile connection parameter, described in the same chapter.