Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@superadm1n
Copy link
Contributor

Given there is no documentation that is easily found on how to invoke on Orion.AlertSuppression I created 3 examples showing how to mute alerts, resume alerts, and list the suppression state. #34



sw = orionsdk.SwisClient(server, username, password)
uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE NodeID=@node_id", IPAddress=ip_address)['results'][0]['Uri']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this script needs to be updated. The WHERE clause isn't quite right. It should be WHERE IPAddress=@IPAddress instead of looking for a node ID that isn't being supplied.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct I have since updated the queries in each of the 3 files I added to reflect the correct IPAddress=@IPAddress

Copy link
Contributor

@danjagnow danjagnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long delay. This looks good!

@danjagnow danjagnow merged commit 5aad8a2 into solarwinds:master Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants