We simply place nodes in groups relative to their purpose and tick one box to unmanage / remanage all at once. Look into Custom Properties and create a Group for the nodes you need to bulk manage.
It sounds like you're talking about using a custom property called "Group" rather than the Groups built into SolarWinds, yeah? I have a group set up that includes all nodes from a dynamic query and am hoping to modify maintenance mode on that group.
Save this as .ps1 and run it. This will use your AD credentials to authenticate to your Orion server and unmanage a node named NODEYOUWANTTOUNMANAGE for 10 minutes from now.
$swis = Connect-Swis -host YOURORIONSERVER -Trusted
$nodeid = Get-SwisData $swis "SELECT NodeID FROM Orion.Nodes WHERE SysName LIKE 'NODEYOUWANTTOUNMANAGE'"
$now =[DateTime ]:: Now
Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N: $nodeid ", $now ,$later , "false")
Thanks a lot for it. Just to confirm I need to give the Orion sever FQDN (YOURORIONSERVER) and I should give multiple node names here ('NODEYOUWANTTOUNMANAGE') in comma separated values?
What Powershell version is required for this, Because i get Snap-in error as below
You need the install the plugin Releases · solarwinds/OrionSDK · GitHub
The information about SWIS is here GitHub - solarwinds/OrionSDK: SDK for the SolarWinds Orion platform, including tools, documentation,...
There are a lot of examples here on THWACK. The script should work once you get the plugin installed.
Thanks Guys for all your Help..
Yes, I'm aware of the above options which you provided. I feel this becomes hard for me when i have to unmanage/re-manage more 10 nodes at a time. I need to go search for them if i have 100's of nodes. So i'm looking for any other options which makes this little simpler
you may be using custom property and can identify the nodes using custom property ,from manage nodes page you can select them based on custom property and unmanage/remanage as required.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.