Hi, I did some more testing. It seems that I need to use ip variable vs. hostname variable for test_service callback and I can put either actual ip or hostname as the value.
However, I noticed the following:
1. when I issue test_service command via net_connect probe utility, I see ICMP traffic being initiated and returned state of the command = 1
2. when I run below script, I get state = 0 and I don't see any ICMP (or any other protocol) traffic being initiated to the host of interest (I am using sniffer to look @ the traffic)
hubaddr="..."
net_connect="net_connect"
variable_ip="10.5.43.253"
args = pds.create()
pds.putString (args,"ip",variable_ip)
status,rc = nimbus.request(net_connect,"test_service",args)
if rc ~= 0 then
printf("Unable to query the net_connect probe '%s'",net_connect)
exit(1)
end
for k,p in pairs (status) do
print(k,":",p)
end
result:
----------- Executing script at 10/8/2010 3:34:31 PM ----------
port:0
tused:0
hostname:
status:0
ip:10.5.43.253
Any thoughts why I see the differentce between results returned by probe utility and script?
-Marius