Forum Discussion
Anonymous
2 years agoWhat I’ve done in situations like this is change the DS so that it uses ActiveDiscovery to create the instances based on a list I put in a property. Then I can apply that property to a group of devices and they’ll each get the same list of instances.
Clone the PingMulti- DS (or use the existing one but understand the ramifications of enabling ActiveDiscovery).
Turn on discovery
Switch to script
Use this script:
hostProps.get("ping_destinations").tokenize("|").each{pair->
println(pair.tokenize(",")[0] + "##" + pair.tokenize(",")[1])
}
return 0
Then create the property called `ping_destinations` on the device or group of devices in the following format:
destination_1_IP,destination_1_displayName|destination_2_IP,destination_2_displayName|destination_3_IP,destination_3_displayName
Related Content
- 4 years ago
- 2 years ago