Hi,
What we are trying to do is:
---------------------------------
We want to monitor the OD connectivity 24/7 and alert when there is a change in status.
This monitoring script will run on the OD Base server (TS server) and connect to all the OD Receivers (Target server) to find the status.
Note:
-------
We cannot use SNMP protocol until SNMPv3 is support in TeamSite/DD. Feature Request for SNMPv3 is in place.
Details required
----------------
We have the following script, based on
http://search.cpan.org/~gbarr/IO-1.25/lib/IO/Socket.pm, which is good enough to know whether the connectivity is successful or not.
#perl
my $sock = IO:
ocket::INET->new(
PeerAddr => "icmstarget”,
PeerPort => 20014,
Proto => "tcp",
Type => SOCK_STREAM,
Timeout => 10);
if($sock) {
close($sock);
print "SUCCESS\n";
} else {
print "FAILED\n";
}
At this time, this script can’t identify the following scenario:
The receiver denied the connecting host. Hostname is NOT specified as the allowed host in the odrcvr.xml configuration file.
We want to capture the following error message in the above perl script if possible:
LIB0006 Connection failed: Could not find matching OpenDeploy client for (host).
We tried this but it didn’t work/help.
$sock->read($data) until $sock->atmark;
Can we write some predefined test/command to the PORT that is open to the receiver and get the needed response?
$sock->send(“like get status”);
$sock->read($data) until $sock->atmark;
print $data;
How can we do this?
Thanks