solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
394 stars 139 forks source link

How to get nodeID from solarwinds #355

Open mounikamaddirala opened 4 months ago

mounikamaddirala commented 4 months ago

i used below query in powershell to get the nodeId from solarwinds , but not getting the nodeID.

$query = "SELECT NodeID FROM Orion.Nodes WHERE SysName LIKE '%$serverName'" 

$nodeId = (Get-SwisData -SwisConnection $swisConnection -Query)
jm-sysadmin commented 2 months ago

This appears to be a script issue, not an issue with the SDK.

If you need script related help, your best bet is the user forum: https://thwack.solarwinds.com/products/the-orion-platform/f/orion-sdk