Hello,
I am updating a node status by SWIS, however, when an HA Failover occurs, the node status reverts back to the prior status. I can't figure out what I am missing. I've verified it isn't being polled when it fails over, it is just reverted to the previous status.
Below is the script I am using for testing.
# Connect to SWIS
$hostname = "localhost"
$username = "xxxxxxx"
$password = "xxxxxxx"
$swis = Connect-Swis -host $hostname -UserName $username -Password $password -IgnoreSslErrors
$status = @{
Status="1";
StatusDescription="Testing API"
StatusIcon="Up.gif"
}
$uri = "swis://localhost/Orion/Orion.Nodes/NodeID=11362";
$setNodeStatus = Set-SwisObject $swis -URI $uri -Properties $status
Any clue on how I can get past this would be very very appreciated, going crazy on this.
Thanks for the help,
Tom