9 Replies Latest reply on Sep 11, 2015 11:46 PM by tdanner

    Silence Group of Nodes




        I have a number of servers in various locations that get updates on a regular basis.  When this happens, the application monitors we have set up go haywire and send out all sorts of unnecessary alerts.  The person who does these updates is not someone who has access to Solarwinds, and therefore he does not silence the nodes while he does his updates.  We would like to come up with an easy solution for this guy to just click something and silence these alerts for the hour or so it takes him to push out the updates and then set them back to alerting.  I have been told that this is not something that we can do through existing methods on Solarwinds, but that I should use the SDK to accomplish our goal.  Has anyone done anything similar?  Is there a good starting point for learning about the SDK?  I'm finding the documentation a bit thin.



        • Re: Silence Group of Nodes

          Does your server engineer plan for these updates somewhere?

          We put in an integration between our change management system where the assets dates and times are pushed into Solarwinds node table to unmanage them.

          • Re: Silence Group of Nodes

            If you want to whip up some sort of app or script for this guy to unmanage some nodes, that is pretty straightforward with the Orion API. There's an example in PowerShell here: https://github.com/solarwinds/OrionSDK/wiki/PowerShell#invoke-swisverb. If you want a sample in a different language, let me know.

            • Re: Silence Group of Nodes

              I'm starting to get the hang of this, and was able to run a script for a single node.  I am running into a small problem when I try to loop through a group of nodes, though.  Here's what I've written:


              Add-PSSnapin SwisSnapin

              $creds = Get-Credential

              $swis = Connect-Swis -Hostname ourserver -Credential $creds

              $now = [DateTime]::UtcNow

              $later = $now.AddMinutes(1)

              $groupid = Get-SwisData $swis "SELECT ContainerID FROM Orion.ContainerMembers WHERE Name LIKE 'test'"

              $nodeid = @(Get-SwisData $swis "SELECT MemberPrimaryID FROM Orion.ContainerMembers WHERE ContainerID LIKE '$groupid'");


              foreach ($nodeid in $groupid) {

                Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N: $nodeid ", $now ,$later , "false")



              When I run it, I get the following error:


              Invoke-SwisVerb : no viable alternative at input '<EOF>' in Where clause

              At C:\unmanage_group.ps1:11 char:17

              +     Invoke-SwisVerb <<<<  $swis Orion.Nodes Unmanage @("N: $nodeid ", $now ,$later , "false")

                  + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

                  + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb


              Does anyone see where I've gone wrong?