Thank you, I've got it. Just needed to know the basic usage of the probe as I've never used it before.
I think it will become a good friend now
I'm going to try this script out to activate certain commands on demmand:
if trigger.state("Customer_Primary") and not trigger.state("Customer_Secondary") then
i = 1
probename = "nexec"
probeaddr1 = "/MyDomain/PrimaryDomain/myserver02/nexec"
args = pds.create()
pds.putString(args,"profile","Customer failover")
while i <= 4 do
reply,rc = nimbus.request(probeaddr1,"run_profile",args)
if rc == NIME_OK then break end
i = i + 1
sleep(15000)
end
pds.delete(args)
if i > 4 then
body1 = body1.." [Request failed]"
else
body1 = body1.." [Request succeeded in "..i.." attempts]"
end
action.email (recipients,title1,body1)
end