<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>How would I go about getting involved? I’d be willing to put some effort into this, but I’ve never contributed to a project in sourceforge, so I’m not sure if I have to be authorized of if anyone can do it.</div>
<div><br>
</div>
<div>I don’t have the familiarity with BBWin to determine what other functionality needs to be added to WinPSClient, but if you can point me in the right direction I can check it out. I’ve been working with PowerShell for a few years, so I’m pretty up to speed
 in order to be useful. :)</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">---<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">Jason Richards Pagh<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><br>
</p>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David Baldwin <<a href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, November 12, 2013 at 8:55 PM<br>
<span style="font-weight:bold">To: </span>Jason Richards Pagh <<a href="mailto:jasonrp@techheads.com">jasonrp@techheads.com</a>>, "<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>" <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>><br>
<span style="font-weight:bold">Cc: </span>David Baldwin <<a href="mailto:David.Baldwin@ausport.gov.au">David.Baldwin@ausport.gov.au</a>><br>
<span style="font-weight:bold">Subject: </span>[Xymon] Re: WinPSClient - Updates?<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Jason,<br>
<br>
Thanks for the email.<br>
</div>
<blockquote cite="mid:CEA8239B.B889%25jasonrp@techheads.com" type="cite">
<div>So it looks like the WinPSClient hasn’t been updated in a few months. I had seen a thread from quite a while ago about some issues David was running into, but can’t tell if he’s still around and willing/able to work on it.</div>
<div><br>
</div>
</blockquote>
In principle I am interested, but don't have a lot of time to work on it at present.<br>
<blockquote cite="mid:CEA8239B.B889%25jasonrp@techheads.com" type="cite">
<div></div>
<div>I’ve been able to get XymonPSClient.exe (aka SrvAny) to run powershell natively as a 64-bit executable. The only change necessary to enable this was changing the PowerShell executable to running as %windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe.
 The sysnative portion prevents a 32-bit program (SrvAny) from being redirected to %windir%\SysWow64. (See <a moz-do-not-send="true" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx</a>).</div>
<div><br>
</div>
</blockquote>
Thanks - I found the "sysNative" workaround a month or two ago also. Very useful for running PS scripts from BBWin since it is still 32-bit only.<br>
<blockquote cite="mid:CEA8239B.B889%25jasonrp@techheads.com" type="cite">
<div></div>
<div>I also found a better service wrapper than SrvAny, namely nssm (<a moz-do-not-send="true" href="http://nssm.cc">http://nssm.cc</a>/). This has the ability to detect if powershell fails and restart it, which is something SrvAny lacks. It also comes in both
 32-bit and 64-bit versions, so when using the latter the sysnative piece isn’t necessary. I’ve only been working at this for a day or two, so it probably needs more testing, but it looks promising.</div>
<div><br>
</div>
</blockquote>
That's an awesome improvement. Definitely a big advance :)<br>
<blockquote cite="mid:CEA8239B.B889%25jasonrp@techheads.com" type="cite">
<div></div>
<div>Is there any work (design contemplation) about how xymonclient.ps1 could handle external scripts? I assume this was just a future phase and not so much a limitation or barrier that hadn’t yet been overcome.</div>
<div><br>
</div>
</blockquote>
I'd played around with things like start-job in PS, but I hadn't worked through all of the legacy reporting mechanisms from BBNT/BBWin (e.g. writing text files into directory - that's an easy one in practice) but more to the point worked out throttling mechanisms
 for long-running scripts that don't exit, etc. Had also considered just running external scripts as scheduled tasks, but not had time to investigate.<br>
<br>
>From memory there were some other issues such as dealing with memory leaks (periodic service restart would solve that).<br>
<br>
David.<br>
<pre class="moz-signature" cols="72">-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617
</pre>
<br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">
www.ausport.gov.au</a> <br>
<br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the
 information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</div>
</div>
</span>
</body>
</html>