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

Adding new UPS hardware poller via SDK?

$
0
0

Hello everyone,

 

I just found that there is a new UPS option under "list resources".  Is there a way to add that to a bunch of Nodes via the SDK?  Im am trying to use PowerShell and I can connect and get my list of nodes I want but I cannot find any example how to add anything except an interface.

 

$Nodes = Get-SwisData -SwisConnection $swis -Query 'SELECT NodeID, Caption FROM Orion.Nodes'
$UPSes = $Nodes | Where {$_.Caption -like '*UPS*'}
foreach($UPS in $UPSes){        $UPS.NodeID    Get-SwisObject $swis -Uri "swis://$hostname/Orion/Orion.Nodes/NodeID=$($UPS.NodeID)"    
}

 

I was able to connect to the nodes and run an interface discover on them but the UPS resource does not appear when using that.

https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/NPM.DiscoverAndAddInterfacesOnNode.ps1


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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