[Xymon] powershell script with BBWin

Dugan, Darin D [ITSYS] dddugan at iastate.edu
Thu Dec 12 17:04:05 CET 2013


Likely you're outputting Unicode via script. The PowerShell externals I use with BBWin/Xymon force ASCII with something like:

"$color+13h $now $scriptName $version`n`n$body" | Out-File -FilePath "$path\$TestName" -Encoding ascii

Cheers.
Darin

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Neil Simmonds
Sent: Thursday, December 12, 2013 9:20 AM
To: bbwin-help at lists.sourceforge.net
Cc: xymon at xymon.com
Subject: [Xymon] powershell script with BBWin

I've created a powershell script that upon completion creates a file in C:\Program Files (x86)\BBWin\tmp just as I have many VBS scripts doing. The file is called Trans and disappears from the tmp directory as would be expected, however the Trans column never updates on the relevant page in Xymon.

If I copy the contents of the file and create a new file with exactly the same name, then paste the contents in, it disappears as expected and the column updates on Xymon.

Has anyone any idea why the powershell generated file is not successfully updating Xymon ?

I've checked all the logs and there is nothing there.

Regards,
Neil Simmonds
Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.
Express Gifts Limited is authorised and regulated by the Financial Conduct Authority
________________________________
NOTE: This email and any information contained within or attached in a separate file is confidential and intended solely for the Individual to whom it is addressed. The information or data included is solely for the purpose indicated or previously agreed. Any information or data included with this e-mail remains the property of Findel PLC and the recipient will refrain from utilising the information for any purpose other than that indicated and upon request will destroy the information and remove it from their records. Any views or opinions presented are solely those of the author and do not necessarily represent those of Findel PLC. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. No warranties or assurances are made in relation to the safety and content of this e-mail and any attachments. No liability is accepted for any consequences arising from it. Findel Plc reserves the right to monitor all e-mail communications through its internal and external networks. If you have received this email in error please notify our IT helpdesk on +44(0) 1254 303030

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131212/0e3fff89/attachment.html>


More information about the Xymon mailing list