Hello All.
I have built several custom services for whatsup, but I need to build
one that's got me stumped. I need to check and see if I can connect to
an oracle database. The command I issue from a dos prompt is TNSPING
(database name)
It works like this:
C:\>tnsping HRMS
TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on
01-APR-
03 15:34:06
(c) Copyright 1997 Oracle Corporation.  All rights reserved.
Attempting to contact
(ADDRESS=(PROTOCOL=TCP)(HOST=ADP-ORCL-PROD)(PORT=1521))
OK (100 msec)

All I need to do is make sure I get an 'OK' in the return. I have
written monitoring scripts before for whatsup, but they just used a
straight TCP/IP connection. They didn't need to use a third party
executable like I need to here.
Anyone have any ideas on this?

Thanks,
Matthew Kitchin


Confidentiality Notice: This email message, including any attachments, contains 
information that is confidential and/or legally privileged. The information is 
intended only for the individual(s) named above. If you are not the intended recipient 
or the person responsible for delivering the email to the intended recipient, be 
advised that you have received this email in error and that any use, dissemination, 
distribution, forwarding, printing, or copying of this email is strictly prohibited. 
If you have received this email in error, please purge it immediately and notify the 
sender.



Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to