If you only want the "disable" or "enable" to apply to a group of hosts, you can search for hosts matching any tag you wish using xymongrep.  So for instance, if you have the following:<div><br></div><div>

192.168.1.1 <a href="http://www.test.com">www.test.com</a> # http telnet CORP</div><div>192.168.1.2 <a href="http://mail.test.com">mail.test.com</a> # smtp telnet FINANCE</div><div>192.168.1.3 <a href="http://ftp.test.com">ftp.test.com</a> # ftp ssh CORP</div>

<div><br></div><div>Then you can disable the first and third (in "CORP" group) for 90 minutes with:</div><div><br></div><div>xymongrep CORP | while read IP NAME REST; do xymon $XYMSRV "disable $NAME.* 90m disabled group 1 servers"; done</div>

<div><br></div><div>If you want to disable at a future time, use the "schedule" command to submit the "disable" command at the right time.  Or put the above into a script and schedule it using "at".</div>

<div><br></div><div>You can be very flexible with the entries in the host.cfg file, and they are normally ignored by Xymon unless then happen to match a test tag being used elsewhere.  So instead of "CORP" and "FINANCE" you could have "GROUP=corp" and "GROUP=finance", and then match that string format appropriately, such as: xymongrep GROUP=corp.  You're less likely to match another tag this way.</div>

<div><br></div><div>Then you can match all hosts that are in any group with: xymongrep 'GROUP=*'.  You can even have hosts in multiple groups like: GROUP=CORP,Linux,prod; then match all corporate hosts with something like: xymongrep 'GROUP=' | egrep '=CORP|,CORP'</div>

<div><br></div><div>If you already have "NET:location" definitions in hosts.cfg, then you can match these with: xymongrep 'NET:*'  Or you can match any untagged entries with </div><div><br></div><div>See the man page on xymongrep for more info.<br>

</div><div><br></div><div>J</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 7 December 2012 01:50,  <span dir="ltr"><<a href="mailto:d.tom.schmitt@l-3com.com" target="_blank">d.tom.schmitt@l-3com.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">I have a request to take an entire area of hosts and place setup a maintenance window starting at a certain time and for say 3 hours.<u></u><u></u></p>

<p class="MsoNormal">Is there a script that I can send it a list and have it place all of the devices in maintenance mode?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">All corporate servers will require a window of 3 hours at 6pm tonight.<u></u><u></u></p>

<p class="MsoNormal">Also, is there any option on the HOST line that will not show up (like an actual comment not the COMMENT: entry) that can be used to select them from.<u></u><u></u></p><p class="MsoNormal">e.g.  the word ‘CORP’ in the options like that will normally be ignored by Xymon?<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am running Xymon 4.3.0-0.beta2.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Also, is there a way to show the COMMENT or DESCRIPTION on the line like it does in the non-green view under this release?<u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Thanks,<u></u><u></u></span></i></b></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></i></b></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none">

<b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Tom Schmitt<u></u><u></u></span></i></b></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Senior IT Staff</span></i><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Salt Lake City, UT  84116<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:.5in;text-autospace:none">

<span style="font-size:8.0pt;font-family:"Arial","sans-serif"">Phone (801) <i>594-3030</i><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none">
<b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">            </span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">\\\\||////</span></b><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></i></b></p>

<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">               </span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">\ ~  ~ /  </span></b><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></i></b></p>

<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;font-family:"Arial","sans-serif"">               </span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">| @  @ |<u></u><u></u></span></b></p>

<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">--oOo---(_)---oOo--<u></u><u></u></span></b></p><p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none">

<b><span style="font-size:8.0pt;font-family:"OCR A Extended""> Have A Nice Day !<u></u><u></u></span></b></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:Stencil;color:#7030a0">It is not necessary to change.<u></u><u></u></span></b></p>

<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:Stencil;color:#7030a0">Survival is not mandatory.<u></u><u></u></span></b></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:Stencil;color:#7030a0">        -- W. Edwards Deming<u></u><u></u></span></b></p>

<p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>