Hi, I am new to Solar Winds and PowerOrion.
I am writing a powershell script to check the status of one group from Solar Winds Operations console.
Below is my current script which can get all the Orion nodes names from solar winds console but now I need to change the script to get the status (Running or Stopped) of one group in SolarWinds console and I am not sure how do I do that. I do not know what query would work in that regard. I know I need to write a new query in last line but I do not know how? Please help.
if (!(Get-PSSnapin -Name "SwisSnapin" -ErrorAction SilentlyContinue))
{
Add-PSSnapin SwisSnapin -ErrorAction SilentlyContinue
}
$swisTarget = "172.0.0.0"
$username="Userid"
$password="Password"
$SWIS_Connection = Connect-Swis -host $swisTarget -UserName $username -Password $password
$Results = Get-SwisData $SWIS_Connection "Select nodeid, Caption from Orion.Nodes"