<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)">
<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 Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been using MRTg and related lib for year now without problems but now I come against something strange and my guess is it is due to 64 bit integers.<o:p></o:p></p>
<p class="MsoNormal">I have been using the SNMP informant tool up to version 2013 without issues to query Windows machines for several info’s. 2013 was 32 bit oriented. The new version, 2014, is 64bit oriented.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I use SNMP_util (version 1.15) in my own Perl scripts to query the CPU instances it returns me up nicely all instances when query is against version 2013.<o:p></o:p></p>
<p class="MsoNormal">Eg.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$VAR1 = [for CPU's ...<o:p></o:p></p>
<p class="MsoNormal"> '1.48:0',<o:p></o:p></p>
<p class="MsoNormal"> '1.49:1',<o:p></o:p></p>
<p class="MsoNormal"> '6.95.84.111.116.97.108:_Total'<o:p></o:p></p>
<p class="MsoNormal"> ];<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I use SNMP_util to query the CPU instances it returns me higher values when query is against version 2014.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$VAR1 = [for CPU's ...<o:p></o:p></p>
<p class="MsoNormal"> '1.48:4294967295',<o:p></o:p></p>
<p class="MsoNormal"> '1.49:4294967295',<o:p></o:p></p>
<p class="MsoNormal"> '6.95.84.111.116.97.108:4294967295'<o:p></o:p></p>
<p class="MsoNormal"> ];<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">One would think that the problem is due to SNMP Informant but when I use GetIf, or Mib Browser from MG-soft or Mib Browser from ManageEngine, they all return me the ‘right’ values: 0, 1, …<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Using ManageEngine, one can debug the data and there I see that the return packet from the 2013 look like this<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Type: GET. RequestID: 54 to "10.2.144.33:161".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Time: Mon Dec 01 09:09:06:748 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 40<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 26 02 01 00 04 06 70 75 62 6c 69 63 a0 19 02 01 36 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 0e 30 0c 06 08 2b 06 01 02 01 01 02 00 05 00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Type: GETNEXT. RequestID: 55 to "10.2.144.33:161".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Time: Mon Dec 01 09:09:06:748 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 44<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 2a 02 01 00 04 06 70 75 62 6c 69 63 a1 1d 02 01 37 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 12 30 10 06 0c 2b 06 01 04 01 cb 00 01 02 41<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">01 01 05 00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Packet from: 10.2.144.33:161 RequestID: 54<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Received Time: Mon Dec 01 09:09:06:748 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 52<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 32 02 01 00 04 06 70 75 62 6c 69 63 a2 25 02 01 36 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 1a 30 18 06 08 2b 06 01 02 01 01 02 00 06 0c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">2b 06 01 04 01 82 37 01 01 03 01 02<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Packet from: 10.2.144.33:161 RequestID: 55<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Received Time: Mon Dec 01 09:09:07:622 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 47<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 2d 02 01 00 04 06 70 75 62 6c 69 63 a2 20 02 01 37 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 15 30 13 06 0e 2b 06 01 04 01 cb 00 01 02 41<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">01 01 01 30 04 01 30<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> While looking at a 2014 result it looks like <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Type: GET. RequestID: 49 to "10.2.144.155:161".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Time: Mon Dec 01 09:08:34:673 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 40<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 26 02 01 00 04 06 70 75 62 6c 69 63 a0 19 02 01 31 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 0e 30 0c 06 08 2b 06 01 02 01 01 02 00 05 00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Type: GETNEXT. RequestID: 50 to "10.2.144.155:161".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Sent Time: Mon Dec 01 09:08:34:673 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 44<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 2a 02 01 00 04 06 70 75 62 6c 69 63 a1 1d 02 01 32 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 12 30 10 06 0c 2b 06 01 04 01 cb 00 01 02 41<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">01 01 05 00<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Packet from: 10.2.144.155:161 RequestID: 49<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Received Time: Mon Dec 01 09:08:34:673 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 52<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 32 02 01 00 04 06 70 75 62 6c 69 63 a2 25 02 01 31 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 1a 30 18 06 08 2b 06 01 02 01 01 02 00 06 0c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">2b 06 01 04 01 82 37 01 01 03 01 02<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Packet from: 10.2.144.155:161 RequestID: 50<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Received Time: Mon Dec 01 09:08:34:689 CET 2014<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Length of SNMP DATA: 51<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">DATA:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">30 31 02 01 00 04 06 70 75 62 6c 69 63 a2 24 02 01 32 02 01<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">00 02 01 00 30 19 30 17 06 0e 2b 06 01 04 01 cb 00 01 02 41<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">01 01 01 30 42 05 00 ff ff ff ff<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And there I see that an extra <span style="font-family:"Courier New"">ff ff ff ff</span><span style="font-family:"Calibri Light",sans-serif"> </span>is return which SNMP_util interpretes in a different way.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way to tell SNMP_util that it needs to handle this kind of data as 64 bit integer, as I guess this is a 64 bit integer) and not as something else?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thx for helping me to solve this puzzle of 32 & 64 bit stuff.<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>
<p class="MsoNormal"><b><i><span style="font-family:"Verdana",sans-serif;color:teal;mso-fareast-language:EN-GB">Marc Engrie</span></i></b><span style="color:black;mso-fareast-language:EN-GB"><br>
</span><i><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:EN-GB">ICT Infrastructure Manager</span></i><span style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:EN-GB">Tel: +32 15 67 8398</span></i><span style="color:black;mso-fareast-language:EN-GB"><br>
</span><i><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:EN-GB">GSM: +32 476 52 35 45</span></i><span style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>