This is a discussion on garbage filters in "DisplayString" within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1610832923== Content-Type: multipart/alternative; boundary="----=_NextPart_000_012E_01C8513D.896B88C0" This ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============1610832923== Content-Type: multipart/alternative; boundary="----=_NextPart_000_012E_01C8513D.896B88C0" This is a multi-part message in MIME format. ------=_NextPart_000_012E_01C8513D.896B88C0 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable gentelmen, could somebody please explain the following curiosities i am = experiencing with net-snmp (i'm converting oid's to ascii = representation, but can not achieve same result as snmp-agend does) below is a correct output of snmp-agent: JUNIPER-FIREWALL-MIB::jnxFWCounterPacketCount.=20 "Balticum_in"."Balticum_in".counter =3D Counter64: 5708439665 =20 JUNIPER-FIREWALL-MIB::jnxFWCounterPacketCount.=20 "Balticum_in"."Balticum_in-input".policer =3D Counter64: 27 =20 JUNIPER-FIREWALL-MIB::jnxFWCounterPacketCount.=20 "microlink_peer_in"."microlink_peer_in".counte r =3D Counter64: = 105103046552 but, oid values (representing decimaly indexed ascii symbols) seems to = have some aditional info (marked red): ..1.3.6.1.4.1.2636.3.5.2.1.4. 11.66.97.108.116.105.99.117.109.95.105.110.11.66.9 7.108.116.105.99.117.10= 9.95.105.110.2 =3D Counter64: 5708439665 ..1.3.6.1.4.1.2636.3.5.2.1.4. 11.66.97.108.116.105.99.117.109.95.105.110.17.66.9 7.108.116.105.99.117.10= 9.95.105.110.45.105.110.112.117.116.3 =3D Counter64: 27 ..1.3.6.1.4.1.2636.3.5.2.1.4. 17.109.105.99.114.111.108.105.110.107.95.112.101.1 01.114.95.105.110.17.10= 9.105.99.114.111.108.105.110.107.95.112.101.101.11 4.95.105.110.2 =3D = Counter64: 105103046552 Acording to = (http://net-snmp.sourceforge.net/docs...textconventio= ns) - graphics characters (32-126) are interpreted as US ASCII, 0-31 = have speciall meaning. Here's the whole table of aditional indexes i've found. (symbols in = double quotes "" arre allready converted to ascii) 11 11 2 11 17 3 12 21 2 12 25 2 12 30 3 12 "&" 3 17 17 2 17 29 3 18 18 2 18 30 3 18 18 2 18 30 3 19 19 2 19 " " 3 22 22 2 22 "&" 3 23 23 2 23 "(" 3 23 23 3 25 21 3 26 26 2 26 " " 3 27 "$" 2 27 "(" 2 27 "(" 2 27 "-" 3 27 5 3 27 20 3 29 29 2 29 " " 3 30 30 2 30 """ 3 31 31 31=20 31 "#" 3 31 31 2 31 """ 3 "#" "#" 2 "$" 1 3 "'" "'" 2 "'" "7" 3 "(" "(" 2 "(" "9" 3 =20 As you can see - i have a garbage in output [ symbols like = &,$,#,",),(,7,9 ] So, instead of "Balticum_in"."Balticum_in" i have = "Balticum_in9Balticum_out" etc... Is this a faulty mib issue? How does the snmp agent manages to show = correct results? I've taken a look at sources, but was unable to find an explanation of = this misbehaviour. any thoughts are welcome... thank you ------=_NextPart_000_012E_01C8513D.896B88C0 Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1257"> <META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>gentelmen,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>could somebody please explain the = following=20 curiosities i am experiencing with net-snmp (i'm converting oid's to = ascii=20 representation, but can not achieve same result as snmp-agend = does)</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>below is a correct output of=20 snmp-agent:</FONT></DIV> <DIV> <DIV><FONT face=3DArial = size=3D2>JUNIPER-FIREWALL-MIB::jnxFWCounterPacketCount.<SPAN=20 class=3D912500412-07012008><FONT = color=3D#0000ff> </FONT></SPAN></FONT></DIV> <DIV><FONT size=3D+0><FONT face=3DArial><FONT size=3D2><SPAN=20 class=3D912500412-07012008> </SPAN>"Balticum_in"."Balticum_in".count= er =3D=20 Counter64: 5708439665<BR><SPAN class=3D912500412-07012008><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></FONT></DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT face=3DArial><FONT = size=3D2><SPAN=20 class=3D912500412-07012008> </SPAN>JUNIPER-FIREWALL-MIB::jnxFWCounte= rPacketCount.<SPAN=20 class=3D912500412-07012008><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></FONT></FONT></DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT size=3D+0><FONT = face=3DArial><FONT=20 size=3D2><SPAN=20 class=3D912500412-07012008> </SPAN>"Balticum_in"."Balticum_in-input"= ..policer=20 =3D Counter64: 27<BR><SPAN class=3D912500412-07012008><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></FONT></FONT></FONT></= DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT size=3D+0><FONT = size=3D+0><FONT=20 face=3DArial><FONT size=3D2><SPAN=20 class=3D912500412-07012008> </SPAN>JUNIPER-FIREWALL-MIB::jnxFWCounte= rPacketCount.<SPAN=20 class=3D912500412-07012008><FONT=20 color=3D#0000ff> </FONT></SPAN></FONT></FONT></FONT></FONT></FONT></= FONT></DIV> <DIV><FONT size=3D+0><FONT size=3D+0><FONT size=3D+0><FONT = size=3D+0><FONT=20 face=3DArial><FONT size=3D2><SPAN=20 class=3D912500412-07012008> </SPAN>"microlink_peer_in"."microlink_pe= er_in".counter=20 =3D Counter64: = 105103046552</FONT></FONT></FONT></FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>but, oid values = (representing decimaly indexed=20 ascii symbols) seems to have some aditional info (marked=20 red):<BR>.1.3.6.1.4.1.2636.3.5.2.1.4.<BR><FONT=20 color=3D#ff0000>11</FONT>.66.97.108.116.105.99.117.109.95.105.110.<FON T=20 color=3D#ff0000>11</FONT>.66.97.108.116.105.99.117.109.95.105.110.<FON T=20 color=3D#ff0000>2</FONT> =3D Counter64: 5708439665</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>.1.3.6.1.4.1.2636.3.5.2.1.4.<BR><FONT=20 color=3D#ff0000>11</FONT>.66.97.108.116.105.99.117.109.95.105.110.<FON T=20 color=3D#ff0000>17</FONT>.66.97.108.116.105.99.117.109.95.105.110.45.1 05.= 110.112.117.116.<FONT=20 color=3D#ff0000>3</FONT> =3D Counter64: 27</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>.1.3.6.1.4.1.2636.3.5.2.1.4.<BR><FONT=20 color=3D#ff0000>17</FONT>.109.105.99.114.111.108.105.110.107.95.112.10 1.1= 01.114.95.105.110.<FONT=20 color=3D#ff0000>17</FONT>.109.105.99.114.111.108.105.110.107.95.112.10 1.1= 01.114.95.105.110.<FONT=20 color=3D#ff0000>2</FONT> =3D Counter64: 105103046552</FONT></DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><FONT = color=3D#000000>Acording to=20 (</FONT><A=20 href=3D"http://net-snmp.sourceforge.net/docs/mibs/ucdDlmodMIB.html#textco= nventions">http://net-snmp.sourceforge.net/docs...dMIB.html#tex= tconventions</A><FONT=20 color=3D#000000>) - graphics characters (32-126) are interpreted as US = ASCII, 0-31=20 have speciall meaning.</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Here's the whole table of aditional = indexes i've=20 found. (symbols in double quotes "" arre allready converted to=20 ascii)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>11 11 2</FONT></DIV></DIV> <DIV><FONT face=3DArial size=3D2>11 17 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>12 21 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>12 25 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>12 30 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>12 "&" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>17 17 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>17 29 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>18 18 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>18 30 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>18 18 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>18 30 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>19 19 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>19 " " 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>22 22 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>22 "&" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>23 23 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>23 "(" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>23 23 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>25 21 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>26 26 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>26 " " 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 "$" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 "(" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 "(" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 "-" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 5 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>27 20 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>29 29 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>29 " " 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>30 30 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>30 """ 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>31 31 31 </FONT></DIV> <DIV><FONT face=3DArial size=3D2>31 "#" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>31 31 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>31 """ 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"#" "#" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"$" 1 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"'" "'" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"'" "7" 3</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"(" "(" 2</FONT></DIV> <DIV><FONT face=3DArial size=3D2>"(" "9" 3</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>As you can see - i have a garbage in = output [=20 symbols like &,$,#,",),(,7,9 ]</FONT></DIV> <DIV><FONT face=3DArial size=3D2>So, instead of = "Balticum_in"."Balticum_in" i have=20 "Balticum_in9Balticum_out" etc...</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Is this a faulty mib issue? How does = the snmp agent=20 manages to show correct results?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I've taken a look at sources, but was = unable to=20 find an explanation of this misbehaviour.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>any thoughts are = welcome...</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>thank you</FONT></DIV></BODY></HTML> ------=_NextPart_000_012E_01C8513D.896B88C0-- --===============1610832923== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1610832923== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============1610832923==-- |