<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#032DFD;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#032DFD;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Awesome, thanx. Will give it a try.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lerch, Alfred <alfred_lerch@mentor.com> <br>
<b>Sent:</b> Thursday, May 24, 2018 10:15 AM<br>
<b>To:</b> Beck, Zak <zak.beck@accenture.com>; Chris Pretorius <chrisp@lightstoneauto.co.za>; xymon@xymon.com<br>
<b>Subject:</b> RE: custom scripts for windows servers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I found the hard way that BBwin is running in a 32.bit context and that bbwin.cfg requires 8.3 file notation and a full path for the script as well<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">You might try<o:p></o:p></span></p>
<p class="MsoNormal"><load value=" C:\groovy~1\bin\groovy C:\Progra~2\BBwin\ext\test.groovy" timer="1m" /><span lang="EN-GB" style="color:#032DFD"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Use dir /x to find out how the ~ strings are on your system<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Alfred  <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">PS: I’d rather recommend WinPSClient and PowerShell – well supported and 64-bit proof
</span><span style="font-family:Wingdings;color:#1F497D">J</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Xymon [<a href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Beck, Zak<br>
<b>Sent:</b> Freitag, 18. Mai 2018 14:57<br>
<b>To:</b> Chris Pretorius <<a href="mailto:chrisp@lightstoneauto.co.za">chrisp@lightstoneauto.co.za</a>>;
<a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] custom scripts for windows servers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">I’m no BBWin expert – have you tried supplying the full path to the groovy executable?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><load value=" C:\groovy-2.4.15\bin\groovy test.groovy" timer="1m" /><span lang="EN-GB" style="color:#032DFD"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Zak <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Chris Pretorius [<span lang="DE"><a href="mailto:chrisp@lightstoneauto.co.za"><span lang="EN-US">mailto:chrisp@lightstoneauto.co.za</span></a></span>]
<br>
<b>Sent:</b> Friday, 18 May 2018 13:11<br>
<b>To:</b> Beck, Zak <<span lang="DE"><a href="mailto:zak.beck@accenture.com"><span lang="EN-US">zak.beck@accenture.com</span></a></span>>;
<span lang="DE"><a href="mailto:xymon@xymon.com"><span lang="EN-US">xymon@xymon.com</span></a></span><br>
<b>Subject:</b> [External] RE: custom scripts for windows servers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Our dev decided to create a groovy script since the tests it needs to do is complex.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">He created a small test script which I copied to the ext folder:<o:p></o:p></p>
<p class="MsoNormal">test.groovy<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-ZA" style="font-family:"Courier New"">def file1 = new File('C:/Program Files (x86)/BBWin/tmp/test.txt')<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-ZA" style="font-family:"Courier New"">file1.write 'Test message'<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Added to externals block:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><externals><o:p></o:p></p>
<p class="MsoNormal">                <setting name="timer" value="3m" /><o:p></o:p></p>
<p class="MsoNormal">                <setting name="logstimer" value="60s" /><o:p></o:p></p>
<p class="MsoNormal">                <load value="groovy test.groovy" timer="1m" /><o:p></o:p></p>
<p class="MsoNormal">                <!-- externals launch examples <o:p></o:p></p>
<p class="MsoNormal">                <load value="cscript mybbscript.vbs" /><o:p></o:p></p>
<p class="MsoNormal">                <load value="myexternal.exe" /><o:p></o:p></p>
<p class="MsoNormal">                <load value="cscript wlbs.vbs" timer="15m" /><o:p></o:p></p>
<p class="MsoNormal">                <load value="cluster.exe" timer="90s" /> --><o:p></o:p></p>
<p class="MsoNormal"></externals><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I Also tried the full path to test.groovy.<o:p></o:p></p>
<p class="MsoNormal">Restarted the client, I even set the log on as from Local system to Administrator.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The file “test.txt” is not created. <o:p></o:p></p>
<p class="MsoNormal">There’s no errors logged in the BBWin.log<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can I be sure BBwin is executing the script?<o:p></o:p></p>
<p class="MsoNormal">Groovy is installed. “C:\groovy-2.4.15\bin\groovy”<o:p></o:p></p>
<p class="MsoNormal">I am able to run the script from command prompt and the test.txt file is created.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Beck, Zak <<span lang="DE"><a href="mailto:zak.beck@accenture.com"><span lang="EN-US">zak.beck@accenture.com</span></a></span>>
<br>
<b>Sent:</b> Friday, May 4, 2018 12:37 PM<br>
<b>To:</b> Chris Pretorius <<span lang="DE"><a href="mailto:chrisp@lightstoneauto.co.za"><span lang="EN-US">chrisp@lightstoneauto.co.za</span></a></span>>;
<span lang="DE"><a href="mailto:xymon@xymon.com"><span lang="EN-US">xymon@xymon.com</span></a></span><br>
<b>Subject:</b> RE: custome scripts for windows servers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Hi Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">BBWin or WinPSClient do not have a built in scripting language, they only support scripts that the OS already knows how to run. This will depend on what tools you have installed on your servers.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">By default, Windows servers will definitely run VBScript (VBS) and most newer versions (Windows Server 2008 onwards, Windows 7 onwards) will run Powershell.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">There are a number of script samples in BBWin in the externals folder and for WinPSClient, the documentation is fairly complete in this area.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Both BBWin and WinPSClient can return data from any script if that script writes a text file to the tmp folder (which is a subfolder of BBWin or WinPSClient).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Below is a Powershell example of testing DNS lookup for google.com – this is not necessarily the best way to test DNS, it is provided as a simple example of an external script.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">If this were saved as “google-dns.ps1”, and a SHA1 hash of the file generated, it can be used with the WinPSClient by adding a line like this to client-local.cfg – you do not need to replace the
 {script} with anything, the client will do that:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#032DFD">external:everyscan:sync:http://<xymon server>/PS_Updates/google-dns.ps1|SHA1|<sha1 value>|powershell.exe|-executionpolicy remotesigned -noprofile -file "{script}"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD">Zak <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">param(<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    [string] $TestName = 'googledns'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    )<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$scriptdir = split-path -parent $MyInvocation.MyCommand.Definition<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$datadir = join-path $scriptdir '..\tmp' -Resolve<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$groupColour = 'green'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">try<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $results = [System.Net.DNS]::GetHostAddresses('www.google.com')<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">catch<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $groupColour = 'red'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $message = "Error performing DNS query: $_"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">if ($groupColour -eq 'green')<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $ips = $results | foreach { $_.IPAddressToString }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $message = "Result of DNS query:`r`n"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">    $message += ($ips -join "`r`n")<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$timeFormatted = Get-Date -Format 'dd-MMM-yyyy HH:mm'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$output = `<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">@"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$($groupColour)+10m $TestName as at $timeFormatted (updated approx every 5 minutes)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">DNS query for
</span><span lang="DE"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.google.com&d=DwMFAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=ehH4bK0KVKjrTOWMKx0blROIXhuYtKDkAY-5Dx33TAY&s=MQyttX_Krv5ePOOct2Oj-hvX5UZfhfvJCIir9vTbnEo&e="><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New"">www.google.com</span></a></span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$message<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><br><p>Information from $($Env:computername)</p><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">"@<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$dataFile = Join-Path $datadir $TestName<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:#032DFD">$output | Set-Content $datafile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#032DFD"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Xymon [<span lang="DE"><a href="mailto:xymon-bounces@xymon.com"><span lang="EN-US">mailto:xymon-bounces@xymon.com</span></a></span>]
<b>On Behalf Of </b>Chris Pretorius<br>
<b>Sent:</b> Friday, 4 May 2018 10:32<br>
<b>To:</b> <span lang="DE"><a href="mailto:xymon@xymon.com"><span lang="EN-US">xymon@xymon.com</span></a></span><br>
<b>Subject:</b> [External] [Xymon] custome scripts for windows servers<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal">Good day all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can someone please send links to example custom scripts for windows server.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are mostly a Linux shop but have a few Windows servers. They are monitored on xymon and it is currently a mix of BBwin and winpsclients.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My google skills has let me down as I could not find examples except for bash script examples..  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does BBwin or winpsclient support groovy script or can I only use VBscript?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><img border="0" width="185" height="95" style="width:1.927in;height:.9895in" id="Picture_x0020_1" src="cid:image001.png@01D3F34A.3D7D55F0" alt="https://lsc-assets.scdn1.secure.raxcdn.com/lssig/AUTOlogoW.png"><o:p></o:p></span></p>
</td>
<td width="22" style="width:16.5pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> <o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="height:.25in">
<td colspan="4" style="padding:0in 0in 0in 0in;height:.25in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:#1D3275">Chris Pretorius</span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:.25in">
<td width="23" style="width:17.25pt;padding:0in 0in 0in 0in;height:.25in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><img border="0" width="11" height="14" style="width:.1145in;height:.1458in" id="Picture_x0020_2" src="cid:image002.png@01D3F34A.3D7D55F0" alt="https://lsc-assets.scdn1.secure.raxcdn.com/lssig/phone.png"><o:p></o:p></span></p>
</td>
<td colspan="3" style="padding:0in 0in 0in 0in;height:.25in">
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1D3275">0872367740</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in;height:.25in"></td>
<td style="padding:0in 0in 0in 0in;height:.25in"></td>
</tr>
<tr>
<td width="23" style="width:17.25pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><img border="0" width="12" height="15" style="width:.125in;height:.1562in" id="Picture_x0020_3" src="cid:image003.png@01D3F34A.3D7D55F0" alt="https://lsc-assets.scdn1.secure.raxcdn.com/lssig/email.png"><o:p></o:p></span></p>
</td>
<td style="padding:0in 6.0pt 0in 0in">
<p class="MsoNormal"><a href="mailto:chrisp@lightstone.co.za"><span style="font-size:10.0pt;color:#1D3275">chrisp@lightstone.co.za</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td width="23" style="width:17.25pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><img border="0" width="11" height="15" style="width:.1145in;height:.1562in" id="Picture_x0020_4" src="cid:image004.png@01D3F34A.3D7D55F0" alt="https://lsc-assets.scdn1.secure.raxcdn.com/lssig/web.png"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.signio.co.za&d=DwMFAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=pSAlFEj4hRKElAZwLvHsRfWzfQja9_NJ4QDJTay2kjA&s=r79tHecFmkZS4Rbtj5kLMAraNByFoS72NbMZKxd1RA0&e="><span style="font-size:10.0pt;color:#1D3275">www.signio.co.za</span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td width="23" style="width:17.25pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><img border="0" width="12" height="15" style="width:.125in;height:.1562in" id="Picture_x0020_5" src="cid:image005.png@01D3F34A.3D7D55F0" alt="https://lsc-assets.scdn1.secure.raxcdn.com/lssig/address.png"><o:p></o:p></span></p>
</td>
<td colspan="3" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1D3275">Centurion Square, 3rd Floor, cnr Heuwel and Gordon Hood rd, Centurion</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
<td style="padding:0in 0in 0in 0in"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="3" valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:7.5pt;color:#1D3275"><br>
This communication is subject to Lightstone's email </span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lightstone.co.za_portal_content_email-2Ddisclaimer.aspx&d=DwMFAg&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=pSAlFEj4hRKElAZwLvHsRfWzfQja9_NJ4QDJTay2kjA&s=WjjJGAqyaTDuEZEXWKI9C5QN006jNlgDG-2MU9-IWoA&e="><span style="font-size:7.5pt;color:#1D3275">disclaimer</span></a><span style="font-size:7.5pt;color:#1D3275"> </span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Arial",sans-serif;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. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement
 at </span><span lang="DE"><a href="https://www.accenture.com/us-en/privacy-policy"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Arial",sans-serif">https://www.accenture.com/us-en/privacy-policy</span></a></span><span lang="EN-GB" style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">.
<br>
______________________________________________________________________________________<br>
<br>
</span><span lang="DE"><a href="http://www.accenture.com"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Arial",sans-serif">www.accenture.com</span></a></span><span lang="EN-GB"><o:p></o:p></span></p>
</div>
</body>
</html>