RE: mib2c config file format - testing read-only

"Finking, Robert" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A632AD91CF90F24A87C42F6B96ADE5C55E6AFE@rsys005a.comm.ad.roke.co.uk>
Thanks to both you and Peter Martin and also to Dave Shield who replied
direct =)

Raffles

PS this is yet another attempt at finding a way of sending mails that
avoids the annoying formatting problems - please bear with me!

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Makavy, Erez (Erez)
> Sent: 11 January 2006 11:18
> To: Finking, Robert
> Cc: [email protected]
> Subject: RE: mib2c config file format - testing read-only
> 
> 
>  
> I think this manual could be what you are looking for:
> 
> http://net-snmp.sourceforge.net/docs/man/mib2c.conf.html
> 
> Erez.
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf 
> Of Dave Shield
> Sent: Wednesday, January 11, 2006 1:11 PM
> To: Finking, Robert
> Cc: [email protected]
> Subject: Re: mib2c config file format - testing read-only
> 
> On Fri, 2005-12-23 at 10:41 +0000, Finking, Robert wrote:
> 
> > Is the mib2c config file format published anywhere,
> 
> Nope.
> Possibly in the darker recesses of Wes' subconscious, but 
> certainly nowhere useful.
> 
> >  is it just a case of looking at the mib2c source code?
> 
> That's what the rest of us have had to do.
> 
> 
> >  I note that the manual page reads as though the config 
> files shipped
> > with NetSNMP are really part of mib2c, but presumably it's not that 
> > hard to tweak it to your own design?
> 
> Nope.  Go right ahead.
> That's the advantage of Open Source - you have the freedom to 
> turn this to your own warped intentions :-)
> 
> 
> >  One particular thing I'd like to know, how do you test if 
> an object's
> 
> > access mode (in particular if it is read-only).
> 
> Have a look at some of the other mib2c.*.conf files:
> 
>   @foreach $i table@
>          :
>     reg = netsnmp_create_handler_registration(
>               "$i",     ${i}_handler,
>               ${i}_oid, ${i}_oid_len,
>     @if $i.settable@
>               HANDLER_CAN_RWRITE
>     @else@
>               HANDLER_CAN_RONLY
>     @end@
>               );
>          :
>   @end@
> 
> 
> That's for the table as a whole, but the same test can be 
> applied to individual column object (or scalars) too.  See 
> the existing configs for examples.
> 
> Dave
> 
> 
> 
> > The information contained in this e-mail and any attachments is
> > proprietary to Roke Manor Research Ltd and must not be 
> passed to any 
> > third party without permission. This communication is for 
> information 
> > only and shall not create or change any contractual relationship.
> 
> The information contained in this e-mail is not proprietary 
> in any manner, and may be passed to anyone who might find it 
> useful. This communication is for information only, and 
> contractual relationships don't enter into it.  There should 
> be no attachments or any other form of relationships either.
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files for problems?  Stop!  Download the new AJAX 
> search engine that makes searching your log files as easy as 
> surfing the  web.  DOWNLOAD SPLUNK! 
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> 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
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files for problems?  Stop!  Download the new AJAX 
> search engine that makes searching your log files as easy as 
> surfing the  web.  DOWNLOAD SPLUNK! 
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
> _______________________________________________
> 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
>
smime.p7s (application/x-pkcs7-signature, 3 KB) - not displayed
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.