VB Script to place multiple servers into or out of maintenance

0 Likes
over 11 years ago

This is a VB Script that can allow you to place multiple servers into or out of maintenance mode - using a file or comma separated list as the input, and optionally using Control Center to locate the servers.


So for example you can input "server1,server2,server3" and have the script connect to Control Center to locate these servers no matter which QDB Repository they are hosted in, then enable or disable maintenance mode. An example of doing that would be:-


c:\> cscript AMMAintMode.vbs /ccserver:dent /maint:on /server=arthur,zaphod


There are instructions in the comments at the beginning of the script. Read those to see how this can be used with or without Control Center.



NetIQ does not test or validate any software, code or other materials provided in, on or through NetIQ Cool Solutions (collectively, "Materials"), so please use caution when downloading or accessing any Materials from Cool Solutions and ensure that you have reasonable and current security, spyware and anti-virus measures in place on your computer and/or network prior to downloading. Additionally, do not use any Materials downloaded from Cool Solutions in any production environment without first testing the Materials to ensure they are compatible with your version of NetIQ software or any other hardware or software present in your network or environment. Cool Solutions is not a substitute for authorized NetIQ support and should not be used as such. NETIQ COOL SOLUTIONS AND ANY MATERIALS ARE PROVIDED ON AN AS-IS, AS-AVAILABLE BASIS WITHOUT ANY WARRANTY OF ANY KIND. By downloading this file, you are agreeing to these terms of use. To report a problem please contact: coolguys-netiq@netiq.com. Your use of Cool Solutions is governed by the Cool Solutions Terms and Conditions. https://www.netiq.com/communities/coolsolutions/terms-and-conditions/

Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended