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.
Hi,
currently, NTA does not expose such operation through API. The NTA team is looking if this can be improved anytime soon.
I will update this thread if anything certain will be known.
Regards
Pawel
any updates
#necrobump
Unfortunately; the newly updated schema page is erroring on that entity so I cannot tell you if there's been an update on this: http://solarwinds.github.io/OrionSDK/schema/Orion.Netflow.cbQoSConfigurationDetails.html
That being said, if you download the SDK and connect to your Orion instance via SWQL Studio; you should be able to navigate the the Orion.Netflow.cbQoSConfigurationDetails entity and poke around for some ideas.
CC: dan jagnow for the Schema website issue and jreves in case he knows off the top of his head if this feature was ever implemented.