Re: What is this OID?a very strange,long OID problem.

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 11 August 2010 00:12, Alexander King <[email protected]> wrote:
> Like previous mails,I got the generated code use
>     " mib2c -S cache=-1 -c mib2c.iterate.conf "

I've just reviewed the mib2c.iterate.conf template, and that is not
going to work in the way that you expect.

     The option "-S cache={something}"   is a simple on-off flag.
If it has a (non-empty) value, then the cache code will be included.
If it's not specified, then the cache code will not be included.
The actual value is not important -  "-S cache=-1"  means exactly
the same as "-S cache=1"   or   "-S cache=whiteElephant"

If you need to change the cache timeout, then this is done by editing
the header file (xxx_TIMEOUT).    The -S cache value is not relevant.


> but I got " NetsnmpCachefree " type comflict problem,in
> my uit.c file, I deleted the " int " return type keyword before the
> XXXcachefree function, then the compiling wrong cleared

That problem has been fixed in the code tree, and is included
in recent releases (5.2.6, 5.4.3 and the upcoming 5.6).   The
fix will also be included in the next releases on the other active
lines (5.3.4 and 5.5.1)



> and then I run "make install" command got snmpd snmptrapd executable program
> and run it in my device,every time when I use MG-soft walk the whole
> MIB-tree,the snmpd corrupted

What do you mean by "the snmpd corrupted"?

> when the browser run the OID( something like
> the attachment,the red line in the pic).
>
> I cannot find where my code is wrong,and what the OID's value is.

The OID mentioned in your image is part of the NET-SNMP-VACM-MIB
(in particular, NET-SNMP-VACM-MIB::nsVacmStatus)
Try loading the NET-SNMP* MIBs into your MIB browser, or use
the Net-SNMP tools ("snmpwalk")   -  this should then interpret the
OID index values for you:

   $ snmptranslate
.1.3.6.1.4.1.8072.1.9.1.1.5.9.77.121.82.87.71.114.111.117.112.0.0.1.6.110.111.116.105.102.121
   NET-SNMP-VACM-MIB::nsVacmStatus."MyRWGroup"."".0.noAuthNoPriv."notify"



It has absolutely nothing to do with your code.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.