Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

No entry for imports generated in DiscoveryLogs when using Invoke/Orion.Discovery/ImportDiscoveryResults

$
0
0

Hello Thwack Community,

 

Before you read on, my apologies for the extremely long title for this post.

 

I'm quite happy to say that I have finally successfully set up automation to run discoveries/imports using REST exclusively with the following verbs:

 

Invoke/Orion.Discovery/CreateCorePluginConfiguration

Invoke/Orion.NPM.Interfaces/CreateInterfacesPluginConfiguration

 

and then building/running discovery via :

Invoke/Orion.Discovery/StartDiscovery

 

In the config of Invoke/Orion.Discovery/StartDiscovery - I have set "IsAutoImport" to "False" -

I'm doing some provisioning of imported items (removal of key nodes/interfaces/volumes) prior to importing discovery results.

 

At that point, I capture the NodeIDs (for Example 1-10) from the "DiscoveredNodes" table (using SQL or SWIS) matching my ProfileID.

 

I then run the import using:

Invoke/Orion.Discovery/ImportDiscoveryResults

 

The issue, however, is that after running the import, I don't see an entry for the import in the  "DiscoveryLogs" table (using SQL or SWIS).

I know that I should have an entry for that import, along with an appropriate BatchID as when this is done manually through the UI, an entry is generated.

This allows me to do a table join via BatchID on the "DiscoveryLogItems"(joining with DiscoveryLogs)  table in order to capture the actual NodeID values for the nodes being imported, as well as track progress of the import.

Is there a property I need to set in order for this to get generated, or some other verb that needs to be called to have the Import job show up in the DiscoveryLogs table?

Any help with this would greatly be appreciated.

 

Thank you,

 

=SWQL


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>