Hey Team!
I'm just wondering what the best way to do this is.
I have a script that pulls the all the pollers for a bunch of nodes, with the hopes of being able to check which are enabled and which aren't and then enabling some.
Everything works great but I'm struggling to find out how to save the enabled status back to solarwinds.
I have tried creating a poller SwisObject but unsure how to get that into solarwinds
$poller = @{
NetObject="N:"+$currentPoller.PollerId;
NetObjectType="N";
NetObjectID=$currentPoller.PollerId;
PollerType=$currentPoller.PollerType;
Enabled = $true;
}$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
I've also tried using Swis-Invoke and Set-SwisObject but I must be doing something wrong.
Thanks in advance for any assistance!