Re: about modifying files generated by mib2c

This is a discussion on Re: about modifying files generated by mib2c within the SNMP Users forums, part of the Networking and Network Related category; --===============0101474627== Content-Type: multipart/alternative; boundary="----=_Part_2301_22436859.1154078305618" ------=_Part_2301_22436859.1154078305618 Content-Type: text/plain; charset=ISO-8859-1; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2006
hqlittlepi@gmail.com (Ǿ
 
Posts: n/a
Default Re: about modifying files generated by mib2c

--===============0101474627==
Content-Type: multipart/alternative;
boundary="----=_Part_2301_22436859.1154078305618"

------=_Part_2301_22436859.1154078305618
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

oh,i'm sorry .i'm so sorry about my behavior to query the similar question
in "*didn't net-snmp support leaf nods too deep?"* list.(actually,that's
just because i thought out another simple test mib(not the m3uaMIB) to
describe the problem clearly just a few minutes after i have submited that
list.)sorry again ,never next time!

p.s there are no problem like that when I use the new mib2c.conf to generate
C codes((not old API)) other than mib2c.old-api.conf
of course i know it must be my fault to cause that problem,so i just want
to know how to solve them with your helps!
sorry again!
thanks sincerely!!


On 7/28/06, Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:
>
> On 28/07/06, <Qiang Hu> <hqlittlepi@gmail.com> wrote:
> > oid m3uaMIB_variables_oid[] = { 1, 3, 6, 1, 4, 1, 9997 };
> >
> > is it right or not?

>
> No.
> I can't tell what this should be since you've never given us the full
> definition of m3usMIB (it's like drawing teeth, sometimes! :-)),
>
> But your original message gave the structure of your MIB as
>
> > +--m3uaMIB(31)
> > |
> > +--m3uaManagement(1)
> > | |
> > | +--m3uaAttributes(1)
> > | | |
> > | | +--m3uaConfig(1)
> > | | | |
> > | | | +-- -R-- Unsigned m3uaVersion(1)
> > | | | +-- -R-- EnumVal m3uaProcType(2)

>
> so the OID definition should be something of the form:
>
> oid m3uaMIB_variables_oid[] = { 1, 3, 6, 1, 4, 1, ....,
> 31, 1, 1, 1 };
>
>
> Also - do you have any connection with the Virtual e-learning group
> (VEG) of Denmark? Because you appear to be using their enterprise
> number (9997).
> You should *NOT* choose an enterprise number at random - either apply
> for an official number for yourself (see the FAQ for details), or use
> something under NET-SNMP-MIB.::netSnmpPlaypen. That's what it's
> there for....
>
> Dave
>




--
Qiang

------=_Part_2301_22436859.1154078305618
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>oh,i'm sorry .i'm so sorry about my behavior to query the similar question in &quot;<span style="FONT-SIZE: larger"><b><font size="2">didn't net-snmp support leaf nods too deep?&quot;</font></b></span> list.(actually,that's just because i thought out another simple test mib(not the m3uaMIB)&nbsp;to describe the problem clearly just a few minutes after i have submited that list.)sorry again ,never next time! &nbsp;
</div>
<div>&nbsp;</div>
<div>p.s there are no problem like that when I use the new mib2c.conf to generate C codes((not old API)) other than mib2c.old-api.conf</div>
<div>
<div>of course i know it must be my fault to cause that problem,so i just want to know how to solve them with your helps!</div>
<div>sorry again!</div>
<div>thanks sincerely!!</div></div><br><br>
<div><span class="gmail_quote">On 7/28/06, <b class="gmail_sendername">Dave Shield</b> &lt;<a href="mailto:D.T.Shield@csc.liv.ac.uk">D.T.Shield@ csc.liv.ac.uk</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 28/07/06, &lt;Qiang Hu&gt; &lt;<a href="mailto:hqlittlepi@gmail.com">hqlittlepi@gmai l.com</a>&gt; wrote:
<br>&gt; oid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp; m3uaMIB_variables_oid[] = { 1, 3, 6, 1, 4, 1, 9997 };<br>&gt;<br>&gt; is it right or not?<br><br>No.<br>I can't tell what this should be since you've never given us the full<br>definition of m3usMIB (it's like drawing teeth, sometimes! :-)),
<br><br>But your original message gave the structure of your MIB as<br><br>&gt; +--m3uaMIB(31)<br>&gt;&nbsp;&nbsp; |<br>&gt;&nbsp;&nbsp; +--m3uaManagement(1)<br>&gt;&nbsp;&nbsp; |&nbsp;&nbsp;|<br>&gt;&nbsp;&nbsp; |&nbsp;&nbsp;+--m3uaAttributes(1)<br>&gt;&nbsp;&nbsp; |&nbsp;&nbsp;|&nbsp;&nbsp;|<br>&gt;&nbsp;&nbsp; |&nbsp;&nbsp;|&nbsp;&nbsp;+--m3uaConfig(1)
<br>&gt;&nbsp;&nbsp; |&nbsp;&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;|<br>&gt;&n bsp;&nbsp; |&nbsp;&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;+-- -R-- Unsigned&nbsp;&nbsp;m3uaVersion(1)<br>&gt;&nbsp;&n bsp; |&nbsp;&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;+-- -R-- EnumVal&nbsp;&nbsp; m3uaProcType(2)<br><br>so the OID definition should be something of the form:<br><br>oid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m3uaMIB_variables_oid[] = { 1, 3, 6, 1, 4, 1, ....,
<br>31, 1, 1, 1 };<br><br><br>Also - do you have any connection with the Virtual e-learning group<br>(VEG) of Denmark? Because you appear to be using their enterprise<br>number (9997).<br>You should *NOT* choose an enterprise number at random - either apply
<br>for an official number for yourself (see the FAQ for details), or use<br>something under NET-SNMP-MIB.::netSnmpPlaypen.&nbsp;&nbsp; That's what it's<br>there for....<br><br>Dave<br></blockquote></div><br><br clear="all"><br>--&nbsp;
<br>Qiang

------=_Part_2301_22436859.1154078305618--


--===============0101474627==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============0101474627==
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

--===============0101474627==--

Reply With Quote
Reply


Thread Tools
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

vB 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 11:57 AM.


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