psPingServer

Description

     This program pings an ASE or Open Server by testing whether
a connection can be established.   Remember that this program, like
any PS program, will exit with a non-zero if it cannot succeed for
any reason.

 

Syntax

psPingServer -Sserver -Uusername -Ppassword -Ddatabase
-Ttime_to_wait -Ooptions

 

Arguments

-S

Sybase Server Name

-U

Sybase Server User's Name

-P

Sybase Server User's Password

-D

Sybase Server Database

-T

Maximum time to wait for server to be completely up [0 seconds]

-O

Options

 

Options

a

Tests if user has sa role

b

Tests if user has sso role

c

Tests if user has oper role

n

Tests if user has navigator role

r

Tests if user has replication role

d

Test that the database can be used

w

Test that the database is write-enabled

u

Test that the user is the database owner

t

Do NOT test whether all databases are suspect or recovering

o

Ping an Open Server

s

Write return code to standard output too

e

Turn on error messages

 

Environment Variables Behind the Scenes

DSQUERY

When -S is not specified.

SYB_USER

When -U is not specified.

SYB_PASS

When -P is not specified.

SYB_DATABASE

When -D is not specified.

PS_SYSMSG_FILE

Name of the tool's messages file.

 

Maximum Time for Server to Come Up

   I will continue trying the server every 5 seconds until
   either the server is up or until the maximum time (-T option) is
   exceeded.   I will always ping the server at least once.  If your
   server is a SQL Server, I also verify that all databases are
   recovered and not suspect.

 

Go to DBPowerSuite 7.9 List of Programs.


Updated: Thu Jun 18 21:12:26 2009