I have a few hundred routers I need to disable NetFlow collection as well as CBQoS on globally, so naturally I'd like to script it. I've been looking for an entity to call using Python. Can anyone provide what I'm after, and possibly an example use?
This feature has not been implemented yet; it's something we're considering. This kind of feedback is very useful, thanks!
jreves
This sounds like a job for NCM's Cirrus.ConfigArchive.ExecuteScript verb. See https://github.com/solarwinds/OrionSDK/wiki/NCM-Config-Transfer#verb-executescript on the GitHub wiki.
Had to think about what you meant for a second, and then I realized I probably wasn't clear: what I'm looking for is to change collection sources from within SolarWinds NTA to disable NetFlow and cbQoS collection. I think I may have found it though... Netflow.Source.Enabled and cbQoSEnabled?
Actually, neither of those are working. Using OrionSDK Python like so:
swis.update(uri, Enabled = False)
swis.update(uri, cbQoSEnabled = False)
where Uri is from
results = swis.query("""SELECT n.Uri FROM Orion.Netflow.Source n WHERE n.InterfaceID=%d""" % inf)
Oh, I see - you want to update Orion's configuration, not the configuration of the devices themselves. I'll get someone from the NTA team to look at this question.
Appreciate it, Tim.