Can you tell me if it is possible to configure subnet scanning (polling engine, scan interval etc) via the API?
I've looked through the schema but I can't find anything that allows this. I've also looked at the properties of a subnet that has scanning enabled (via swis.read('uri')) but it doesn't refer to the polling engine anywhere, and the output doesn't change if I disable the poller.
Any help would be greatly appreciated.
Take a look at the following documentation, under the CRUD operations for IPAM.Subnet heading. You should be able to set the ScanInterval property on IPAM.Subnet. I'm not sure whether it is possible to change the polling engine via the API.
I did see the scan interval property in IPAM.Subnet, but it does not appear to be related to the scan interval configured in asubnet's automatic scanning properties. I just tested by updating the automatic scanning interval through the GUI, and then pulling down the information via swis.read - there was no change.
Well, this is strange - if you will use CRUD on IPAM.Subnet it will actually update the ScanInterval for a given entity (you will see the updated value in the UI. If you will query IPAM.GroupNode - the entity IPAM.Subnet's data is based on - you will also see updated value). But if you will query IPAM.Subnet you will still see 'NULL' as ScanInterval. (I have reported this as a Bug - tracked as IPAM-2885)
So you can use CRUD operations for IPAM.Subnet to change the scan interval. Unfortunately, you can't use it to assign the subnet to specific PollingEngine (this is currently not supported from the API)
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.