I'm trying to script an integration for adding various nodes to Orion using Python, swis and the python orion sdk. I've looked through all the code samples provided with the Powershell SDK and the Python SDK, and there seem to be bits missing.
Ideally, I'd like to add all the nodes via one script, and then later in the evening run a separate script to run discovery on everything, as opposed to doing a Discover and Add at the same time, due to the number of nodes I can potentially be dealing with at one time.
I've found I can add nodes successfully using `swis.create('Orion.Nodes', **nodeProps)` where NodeProps has the basic properties of ip, caption, and things like (for example for linux) ObjectSubType, SNMPVersion, Community.
I can then use swis.update to update properties and custom properties appropriately. I can also use swis.create to assign pollers to the device for things like ICMP, SNMP etc.
However, none of this stuff kicks in unless we go to the UI and and do a Rediscover of the device after the fact. Not even so much as an ICMP Status.
I feel like after creating, updating props, and creating poller relationships, I need to possibly do some Invokes of some sort to have this stuff activated, but can find nothing on it. the Python SDK samples have an invoke_test sample, which runs an invoke over all the nodes, but doesn't really explain what it's doing, and based on the aliases output I'm not certain that it's even working correctly.
Certainly none of the poller relationships that I add using swis.create show up in the Audit history for the node. Yet going in to look at resources via the UI causes the audit history to show me as adding various pollers.
Any idea what I'm missing?
Paul