Created custom properties when discovering devices
- 21 days ago
I've not used Netscans much but thought it seemed like a fair straight forward requirement - putting some custom properties on a device discovered by a Netscan. I can't see an option to do it though. A scripted custom netscan would do it, but seems overkill having to write a groovy script to scan a range and discover devices so you can add some custom properties.
Another option.. you could write some really simple property sources that output static values for the properties (like the location, application) and apply them based on the contents of system.ips.
LM provide this example in the AppliesTo documentation (https://www.logicmonitor.com/support/terminology-syntax/scripting-support/what-is-lms) so you could use this to set the applies to on each of your property sources
join(system.ips,",")=~"192\\.168\\.100\\." Matches resources with an IP address on the subnet 192.168.100.X. The ability to match on the partial IP address of a resource is useful for grouping devices by
Then you need a script that writes out the properties you need, you could make those static, something like
println "application=finance"
println "location=london-datacentre"