Bluehost.com Web Hosting $6.95

NET-SNMP can not translate multi-index!

This is a discussion on NET-SNMP can not translate multi-index! within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C5AC6B.5A818826 Content-Type: text/plain; charset="us-ascii&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2005
Ying Wang
 
Posts: n/a
Default NET-SNMP can not translate multi-index!

This is a multi-part message in MIME format.

------_=_NextPart_001_01C5AC6B.5A818826
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I want to use name instead of oid to access data though net-snmp, so I
do following work:

=20

All bases on net-snmp-5.2.rc4.

=20

1. I add my private mibs into the net-snmp configure file, like this:

if test "x$mini_agent" =3D "xyes"; then

new_module_list=3D"......"

default_mibs=3DSNMPv2-MIB:RFC1213-MIB

default_mibs_install=3D" "

else

new_module_list=3D"mibII/vacm_vars mibII/vacm_conf mibII/vacm_context
snmpv3mibs ucd_snmp $new_with_mib_modules"

default_mibs=3DIP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MI=
B
:RFC1213-MIB:PRIVATE-MIB

=20

2. After recompile and reinstall net-snmp, I can use name to access
uni-index table and scalar data.

But, access to multi-index table fails!

2.1 Run net-snmp with debug "snmpd -D", the debug information stops
in:

......

trace: netsnmp_handle_request(): snmp_agent.c, 2975:

results: request results (status =3D 0):

trace: netsnmp_handle_request(): snmp_agent.c, 2978:

results: (stop here!)

2.2 Run net-snmp without debug "snmpd", "segment fault" appears!

=20

Please help me! Thanks!


------_=_NextPart_001_01C5AC6B.5A818826
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:SimSun;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:15.6pt'>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>I want to use name instead =
of oid
to access data though net-snmp, so I do following =
work:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'><o:p>&nbsp;</o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>All bases on =
net-snmp-5.2.rc4.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'><o:p>&nbsp;</o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>1. I add my private mibs =
into the net-snmp
configure file, like this:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>if test =
&quot;x$mini_agent&quot; =3D
&quot;xyes&quot;; then<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>new_module_list=3D&quot;</sp=
an></font><font
size=3D1><span lang=3DEN-US =
style=3D'font-size:8.0pt'>……</span></font><font
size=3D1 face=3D宋体><span lang=3DEN-US =
style=3D'font-size:8.0pt;
font-family:SimSun'>&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>default_mibs=3DSNMPv2-MIB:RF=
C1213-MIB<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>default_mibs_install=3D&quot=
; &quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>else<o:p></o:p></span></font=
></p>


<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>new_module_list=3D&quot;mibI=
I/vacm_vars
mibII/vacm_conf mibII/vacm_context snmpv3mibs ucd_snmp
$new_with_mib_modules&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:8.0pt;font-family:SimSun'>default_mibs=3DIP-MIB:IF-MIB=
:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:<b><font
color=3Dred><span =
style=3D'color:red;font-weight:bold'>PRIVATE-MIB<o:p></o:p></span></font>=
</b></span></font></p>

<p class=3DMsoNormal><b><font size=3D1 color=3Dred =
face=3D宋体><span
lang=3DEN-US =
style=3D'font-size:8.0pt;font-family:SimSun;color:red;font-weight:
bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>2. After recompile and =
reinstall
net-snmp, I can use name to access uni-index table and scalar =
data.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>&nbsp;&nbsp; But, access =
to multi-index
table fails!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>&nbsp;&nbsp; 2.1 Run =
net-snmp with
debug </span></font><font size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>“</span></font><font
size=3D2 face=3D宋体><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:SimSun'>snmpd -D</span></font><font size=3D2><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>”</span></font><font size=3D2 =
face=3D宋体><span
lang=3DEN-US style=3D'font-size:10.0pt;font-family:SimSun'>, the debug =
information
stops in:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
</span></font><font size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>……</span></font><font
size=3D2 face=3D宋体><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:SimSun'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
trace: netsnmp_handle_request(): snmp_agent.c, =
2975:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-indent:35.0pt'><font size=3D2 =
face=3D宋体><span
lang=3DEN-US style=3D'font-size:10.0pt;font-family:SimSun'>results: =
request results
(status =3D 0):<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-indent:35.0pt'><font size=3D2 =
face=3D宋体><span
lang=3DEN-US style=3D'font-size:10.0pt;font-family:SimSun'>trace:
netsnmp_handle_request(): snmp_agent.c, =
2978:<o:p></o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-indent:35.0pt'><font size=3D2 =
face=3D宋体><span
lang=3DEN-US style=3D'font-size:10.0pt;font-family:SimSun'>results: =
(<b><span
style=3D'font-weight:bold'>stop =
here!</span></b>)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>&nbsp;&nbsp; 2.2 Run =
net-snmp
without debug </span></font><font size=3D2><span lang=3DEN-US =
style=3D'font-size:
10.0pt'>“</span></font><font size=3D2 =
face=3D宋体><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:SimSun'>snmpd</span></font><font
size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>”</span></font><font
size=3D2 face=3D宋体><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:SimSun'>, </span></font><font size=3D2><span lang=3DEN-US
style=3D'font-size:10.0pt'>“</span></font><b><font size=3D2 =
face=3D宋体><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:SimSun;font-weight:bold'>segment
fault</span></font></b><font size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>”</span></font><font
size=3D2 face=3D宋体><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:SimSun'> appears!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'><o:p>&nbsp;</o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3D宋体><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:SimSun'>Please help me! =
Thanks!<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C5AC6B.5A818826--


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0