<div dir="ltr"><div><div><div><div>Zak,<br><br></div>    Given this entry:<br><br><p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(13,19,255)">[hostname]</span></p>
<span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(13,19,255)">external:everyscan:sync:<wbr>batchfile.bat<br><br></span></div>Where would the batchfile.bat located on the Xymon Server?  Would it be in the HOME directory of ~xymon/server/etc?<br><br></div><br></div>Dave<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 11:33 AM, Beck, Zak <span dir="ltr"><<a href="mailto:zak.beck@accenture.com" target="_blank">zak.beck@accenture.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div class="m_1605026965854969293WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">If you’re using XymonPSClient, you need to tell the client to execute it. You do this via configuration on the server in client-local.cfg,
 something like this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">[hostname]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">external:everyscan:sync:<wbr>batchfile.bat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">I think that should work! If you want to get more advanced, you can also have the client download the batch file from a web server
 and this enables you to update the batch file remotely (see the doc file).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff">Zak
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0d13ff"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0d13ff"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.<wbr>com</a>]
<b>On Behalf Of </b>Steve Brown<br>
<b>Sent:</b> 03 July 2017 15:54<br>
<b>To:</b> David Boyer <<a href="mailto:davieb@gmail.com" target="_blank">davieb@gmail.com</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [External] Re: [Xymon] Powershell external scripts<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Thank you for the reply. I have a bat file in the "<externalscriptlocation>" folder but it is not being executed. If I schedule it through the Windows
 Task scheduler it does get executed.  Is there something else I need to do in the xymon powershell to have it execute the bat file?  It appears I’m missing something.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Thank you for your help<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> David Boyer [<a href="mailto:davieb@gmail.com" target="_blank">mailto:davieb@gmail.com</a>]
<br>
<b>Sent:</b> Sunday, July 02, 2017 2:59 PM<br>
<b>To:</b> Steve Brown <<a href="mailto:sgb@pics.com" target="_blank">sgb@pics.com</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] Powershell external scripts<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">The "<externalscriptlocation>" is the folder where the scripts are located. They can be written in anything you like.<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">Dave<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Thu, Jun 29, 2017 at 11:13 PM, Steve Brown <<a href="mailto:sgb@pics.com" target="_blank">sgb@pics.com</a>> wrote:<u></u><u></u></span></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">What format to external scripts <externalscriptlocation> need to be?  Can they be windows bat files or do they need to be powershell .ps1 scripts or something
 else?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#888888" lang="EN-US">Steve<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=LpEH5mi4BBdGxqvJGmLapbOSpq299arjLUfbVo98MsE&s=Zitmt7g1XCELmzuj1X33oPX_CipHyQRPoEkHECmMzvA&e=" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><u></u><u></u></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div></div></div>
<br>
<hr>
<font size="1" face="Arial" color="Gray"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. <br>
______________________________<wbr>______________________________<wbr>__________________________<br>
<br>
<a href="http://www.accenture.com" target="_blank">www.accenture.com</a><br>
</font>
</div>

</blockquote></div><br></div>