Test teradata database status

Tools
N/A

Test teradata database status

Hi All

I have requriment to test a database is up or down.

I selected BTEQ to do my testing and below is my logic. As bteq is continously trying to logon, my script is running continously with out existing.

BTEQ Interactive Mode:

$
$
$bteq

Teradata BTEQ 12.00.00.00 for UNIX5.
Copyright 1984-2007, NCR Corporation. ALL RIGHTS RESERVED.
Enter your logon or BTEQ command:
.logon 90.11.111.111/abc123

.logon 90.11.111.111/abc123
Password:

*** Warning: DBS CRASHED OR SESSIONS RESET. RECOVERY IN PROGRESS>
*** Warning: DBS CRASHED OR SESSIONS RESET. RECOVERY IN PROGRESS>
*** Warning: DBS CRASHED OR SESSIONS RESET. RECOVERY IN PROGRESS>

assume 90.11.111.111 is valid UNIX Server with NO TERADATA DATABASE because my test will success for valid server and valid database.

Could someone help me in identifying the right bteq paramerters.

Thanks