Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Discovery auto import results

$
0
0

Hello all,

 

New to the SDK game so I'm here with some functionality questions. I'd like to automate the addition of discovered nodes to the Orion platform. I attempting to get the DiscoveredNodes and DiscoveredInterfaces tables into my script so that I can then run through them with the addNode script.

 

Is there a nice way to get this information into Power Shell so that I can call upon it? The variable I'm populating now is just returning nothing but the test I did for only one row of data will give me the data as long as I know the column name.

 

Also asked this in another post but figured I'd put it here as well since it pertains to what I'm doing. The XML that gets generated and fed to the discovery now routine has a section for IsAutoImported or something like that. If I change this to true and generate the discovery will Orion finally take care of importing the results automatically?

 

Thanks guys! Below is what I've used to get something/nothing into my variable.

 

$imports = Get-SwisData $swis "SELECT NodeID, ProfileID, IPAddress, IPAddressGUID, SnmpVersion, SubType, CredentialID, Hostname, DNS, SysObjectID, Vendor, VendorIcon, MachineType, SysDescription, SysName, Location, Contact, IgnoredNodeID, DisplayName, Description, InstanceType, Uri

FROM Orion.DiscoveredNodes"


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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