<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=utf-8"><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:"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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-GB;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:blue;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:blue;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Hi<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Thanks for the patch.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Regarding the BBwin / powershell identifier, my proposal is to default to bbwin but to allow this to be overridden using the local client XML config – does this sound reasonable?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>The %<number> stuff is the zone index (<a href="https://en.wikipedia.org/wiki/IPv6_address#Link-local_addresses_and_zone_indices">https://en.wikipedia.org/wiki/IPv6_address#Link-local_addresses_and_zone_indices</a>) – i.e. the adaptor number.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>I'm not sure how useful this is to Xymon and could probably be removed with a slight amendment to your patch like the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console";color:darkblue'>function</span><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'> <span style='color:blueviolet'>XymonIfstat</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>{<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:blue'>WriteLog</span> <span style='color:darkred'>"XymonIfstat start"</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:darkred'>"[ifstat]"</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:darkgray'>[</span><span style='color:teal'>System.Net.NetworkInformation.NetworkInterface</span><span style='color:darkgray'>]::</span>GetAllNetworkInterfaces() <span style='color:darkgray'>|</span> <span style='color:blue'>?</span>{(<span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>OperationalStatus <span style='color:darkgray'>-eq</span> <span style='color:darkred'>"Up"</span>) <b><span style='color:darkgray'>-and</span> (<span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>NetworkInterfaceType <span style='color:darkgray'>-ne</span> <span style='color:darkred'>"loopback</span></b><span style='color:darkred'>"</span>)} <span style='color:darkgray'>|</span> <span style='color:blue'>%</span>{<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ad</span> <span style='color:darkgray'>=</span> <span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>GetIPv4Statistics() <span style='color:darkgray'>|</span> <span style='color:blue'>select</span> <span style='color:blueviolet'>BytesSent</span><span style='color:darkgray'>,</span> <span style='color:blueviolet'>BytesReceived</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ip</span> <span style='color:darkgray'>=</span> <span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>GetIPProperties()<span style='color:darkgray'>.</span>UnicastAddresses <span style='color:darkgray'>|</span> <span style='color:blue'>select</span> <span style='color:blueviolet'>Address</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:darkgreen'># some interfaces have multiple IPs, so iterate over them reporting same stats</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ip</span> <span style='color:darkgray'>|</span> <span style='color:blue'>%</span>{ <span style='color:darkred'>"{0} {1} {2}"</span> <span style='color:darkgray'>-f</span> (<span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>Address<span style='color:darkgray'>.</span>IPAddressToString –replace '%\d+')<span style='color:darkgray'>, </span><span style='color:orangered'>$ad</span><span style='color:darkgray'>.</span>BytesReceived<span style='color:darkgray'>,</span><span style='color:orangered'>$ad</span><span style='color:darkgray'>.</span>BytesSent }<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    }<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:blue'>WriteLog</span> <span style='color:darkred'>"XymonIfstat finished."</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>} <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>I have not tested this but I think it should work.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Thanks<o:p></o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue'>Zak Beck<br>Infrastructure Tech Support Specialist<br>Accenture<br>Tel: +44 (0) 1785 764609<br>Email: <a href="mailto:zak.beck@accenture.com">zak.beck@accenture.com</a><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:blue'>Upcoming PTO (leave): Feb 20<sup>th</sup>, April 7<sup>th</sup>-10<sup>th</sup>, Jul 3<sup>rd</sup>, Jul 24<sup>th</sup>-Aug 10<sup>th</sup> <o:p></o:p></span></p><p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center'><i><span style='font-size:7.5pt;font-family:"Arial",sans-serif;color:blue'>Our core values:</span></i><span style='color:blue'> </span><span style='font-size:7.5pt;font-family:"Arial",sans-serif;color:blue'>Stewardship - Best People - Client Value Creation - One Global Network - Respect for the Individual - Integrity</span><span style='color:blue'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Calibri",sans-serif;color:blue'>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private 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><br>Accenture means Accenture (UK) Limited (registered number 4757301), registered in England and Wales with registered address at 30 Fenchurch Street, London EC3M 3BD.</span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:blue'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Brandon Dale [mailto:BDale@kitchengroup.com.au] <br><b>Sent:</b> 04 March 2015 09:58<br><b>To:</b> Beck, Zak; jlaidman@rebel-it.com.au<br><b>Cc:</b> xymon@xymon.com<br><b>Subject:</b> RE: [Xymon] Xymon PowerShell Windows client<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I added in bbwin identifier and those two graphs started to appear.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>This is what I have under ifstat with ipv6 enabled.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:black'>[ifstat]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:black'>fe80::25a5:b99d:55cd:951f%12 2677339075 541438677<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:black'>10.250.100.163 2677339075 541438677<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:black'>::1 0 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:10.0pt;font-family:"Courier New";color:black'>127.0.0.1 0 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>This is what ends up on the graph, , the ipv6 address with the % symbol doesn’t display which might be a problem for some.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><img border=0 width=672 height=312 id="Picture_x0020_1" src="cid:image001.png@01D0568E.23A8BC70"></span><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I also changed the xymonifstat function on line 1895 in the ps client to get rid of the loop back addresses.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console";color:darkblue'>function</span><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'> <span style='color:blueviolet'>XymonIfstat</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>{<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:blue'>WriteLog</span> <span style='color:darkred'>"XymonIfstat start"</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:darkred'>"[ifstat]"</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:darkgray'>[</span><span style='color:teal'>System.Net.NetworkInformation.NetworkInterface</span><span style='color:darkgray'>]::</span>GetAllNetworkInterfaces() <span style='color:darkgray'>|</span> <span style='color:blue'>?</span>{(<span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>OperationalStatus <span style='color:darkgray'>-eq</span> <span style='color:darkred'>"Up"</span>) <b><span style='color:darkgray'>-and</span> (<span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>NetworkInterfaceType <span style='color:darkgray'>-ne</span> <span style='color:darkred'>"loopback</span></b><span style='color:darkred'>"</span>)} <span style='color:darkgray'>|</span> <span style='color:blue'>%</span>{<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ad</span> <span style='color:darkgray'>=</span> <span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>GetIPv4Statistics() <span style='color:darkgray'>|</span> <span style='color:blue'>select</span> <span style='color:blueviolet'>BytesSent</span><span style='color:darkgray'>,</span> <span style='color:blueviolet'>BytesReceived</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ip</span> <span style='color:darkgray'>=</span> <span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>GetIPProperties()<span style='color:darkgray'>.</span>UnicastAddresses <span style='color:darkgray'>|</span> <span style='color:blue'>select</span> <span style='color:blueviolet'>Address</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:darkgreen'># some interfaces have multiple IPs, so iterate over them reporting same stats</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>        <span style='color:orangered'>$ip</span> <span style='color:darkgray'>|</span> <span style='color:blue'>%</span>{ <span style='color:darkred'>"{0} {1} {2}"</span> <span style='color:darkgray'>-f</span> <span style='color:orangered'>$_</span><span style='color:darkgray'>.</span>Address<span style='color:darkgray'>.</span>IPAddressToString<span style='color:darkgray'>,</span><span style='color:orangered'>$ad</span><span style='color:darkgray'>.</span>BytesReceived<span style='color:darkgray'>,</span><span style='color:orangered'>$ad</span><span style='color:darkgray'>.</span>BytesSent }<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    }<o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>    <span style='color:blue'>WriteLog</span> <span style='color:darkred'>"XymonIfstat finished."</span><o:p></o:p></span></p><p class=MsoNormal style='background:white;text-autospace:none'><span lang=EN-AU style='font-size:9.0pt;font-family:"Lucida Console"'>} <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Output is:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>[ifstat]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>fe80::25a5:b99d:55cd:951f%12 2678370580 543079717<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>10.250.100.163 2678370580 543079717<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>And now I don’t see the loopback addresses on the graph which “looks” better.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><img border=0 width=224 height=73 id="Picture_x0020_4" src="cid:image002.png@01D0568E.23A8BC70"></span><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Regards, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000097;mso-fareast-language:EN-US'>Brandon </span></b><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-AU style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif'> <a href="mailto:zak.beck@accenture.com">zak.beck@accenture.com</a> [<a href="mailto:zak.beck@accenture.com">mailto:zak.beck@accenture.com</a>] <br><b>Sent:</b> Wednesday, 4 March 2015 7:48 PM<br><b>To:</b> <a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>; Brandon Dale<br><b>Cc:</b> <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br><b>Subject:</b> RE: [Xymon] Xymon PowerShell Windows client<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Hi<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>Unfortunately, you can't fake the BBWin identifier for just one section – you have to change the client to report in as BBwin. It was changed so that we could experimentally use separate configuration options for BBWin clients and Powershell clients.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>To change how the client reports itself, change line 2746 in the current commit:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>2745    WriteLog "Performing main and optional tests and building output..."<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>2746    $clout = "client " + $clientname + ".powershell powershell XymonPS" | Out-String<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>2747    $clsecs = XymonClientSections | Out-String<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>In the original Powershell client, this line was:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>                $clout = "client " + $clientname + ".bbwin win32" | Out-String<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>So you can see we've changed '.bbwin' to '.powershell' and 'win32' to 'powershell'.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>I appreciate this isn't very good and should probably be a configuration item.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'>[netstat] uses the output from netstat -s, but it appears the parsing is not very clever. [ifstat] uses a .Net object to pull out interface information. I haven't changed the code that generates either of these sections – quite likely it needs some work! I'll add it to the list.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue'>Zak </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:blue'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Jeremy Laidman [<a href="mailto:jlaidman@rebel-it.com.au">mailto:jlaidman@rebel-it.com.au</a>] <br><b>Sent:</b> 04 March 2015 06:24<br><b>To:</b> Brandon Dale<br><b>Cc:</b> Beck, Zak; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br><b>Subject:</b> Re: [Xymon] Xymon PowerShell Windows client<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal>On 4 March 2015 at 13:26, Brandon Dale <<a href="mailto:BDale@kitchengroup.com.au" target="_blank">BDale@kitchengroup.com.au</a>> wrote:<o:p></o:p></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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-AU style='color:#1F497D'>3.</span><span lang=EN-AU style='font-size:7.0pt;color:#1F497D'>       </span><span lang=EN-AU style='color:#1F497D'>On a windows machine running PowerShell client v1.98 I don’t get any network related graphs however I seem to have data available:</span><span lang=EN-AU><o:p></o:p></span></p><p style='margin-left:72.0pt'><span lang=EN-AU style='color:#1F497D'>a.</span><span lang=EN-AU style='font-size:7.0pt;color:#1F497D'>       </span><span lang=EN-AU style='color:#1F497D'>[ifstat] contains data e.g </span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:54.0pt'><span lang=EN-AU style='color:#1F497D'> </span><span lang=EN-AU><o:p></o:p></span></p><pre style='margin-left:36.0pt'><span lang=EN-AU style='font-size:8.0pt;color:black'>[ifstat]</span><span lang=EN-AU><o:p></o:p></span></pre><pre style='margin-left:36.0pt'><span lang=EN-AU style='font-size:8.0pt;color:black'>fe80::25a5:b99d:55cd:951f%12 2655878237 519887923</span><span lang=EN-AU><o:p></o:p></span></pre><pre style='margin-left:36.0pt'><span lang=EN-AU style='font-size:8.0pt;color:black'>10.250.100.163 2655878237 519887923</span><span lang=EN-AU><o:p></o:p></span></pre></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Yep, this should be parseable by Xymon.  In principle.<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><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><pre style='margin-left:36.0pt'><span lang=EN-AU style='font-family:"Arial",sans-serif;color:#1F497D'>At the moment I’m guessing the ifstat data isn’t in a format xymon will automatically graph and add to the trends page </span><span lang=EN-AU><o:p></o:p></span></pre></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Xymon will parse the [ifstat] data from a Windows machine, if it's in a suitable format.  From the source code, the regexp for this is:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>        ^([a-zA-Z0-9.:]+)\s+([0-9]+)\s+([0-9]+)<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I note that in the first [ifstat] line above, there's a percentage sign in the first token, which doesn't match the regexp.  I don't know of Xymon continues on looking for other lines to match, or if it rejects the whole [ifstat] section as corrupt.  But I wonder what would happen if the IPv6 address wasn't in the [ifstat] client data.  Any chance you can unbind IPv6 for testing?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Another thing to note is that some of the "powershell" processing in Xymon just re-uses the "bbwin" processing.  But there are some bits of parsing code, including for "ifstat" it seems, that only look for the bbwin OS string, and I can't see any place in the powershell handling code that tries to fake the bbwin OS for ifstat.  In other words, could be that the code simply isn't there to do what you want.  But it might also be the case that adjusting the powershell client to report itself as the bbwin client might do the trick.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>J<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></body></html>