Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
Any feedback on this? I am also interested in such a script.

Thanks,
Simon


On Wed, Nov 9, 2011 at 1:11 PM, Suresh kumar skjaiswa...@hotmail.comwrote:

  Hello all
 i want convert entire MIB object to c/h file using mib2c  at once
 can any once do this before please let me know .
 if not what i need change in mib2c script.

 Thanks in advance.
 ~suresh



 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 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/listinfo/net-snmp-users


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
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/listinfo/net-snmp-users


Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 9 November 2011 18:11, Suresh kumar skjaiswa...@hotmail.com wrote:
 i want convert entire MIB object to c/h file using mib2c  at once

What do you mean by converting the MIB object?
What sort of MIB object(s) do you have in mind.

If these are scalar objects, then try

mib2c -c mib2c.scalar.conf  MY-MIB::myTopLevelObject

If this is a MIB table, then try

mib2c -c mib2c.table_data.conf  MY-MIB::myTable

(or one of the other table-based helper frameworks)


Naturally, you should use the appropriate values instead
of MY-MIB::myTopLevelObject and MY-MIB::myTable

Dave

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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/listinfo/net-snmp-users


Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Simon Chamlian
I think what he means (or what I mean) is to have one config file that
converts the whole MIB file (which contains any possible object) into C.

Simon



On Thu, Nov 10, 2011 at 10:30 AM, Dave Shield d.t.shi...@liverpool.ac.ukwrote:

 On 9 November 2011 18:11, Suresh kumar skjaiswa...@hotmail.com wrote:
  i want convert entire MIB object to c/h file using mib2c  at once

 What do you mean by converting the MIB object?
 What sort of MIB object(s) do you have in mind.

 If these are scalar objects, then try

mib2c -c mib2c.scalar.conf  MY-MIB::myTopLevelObject

 If this is a MIB table, then try

mib2c -c mib2c.table_data.conf  MY-MIB::myTable

 (or one of the other table-based helper frameworks)


 Naturally, you should use the appropriate values instead
 of MY-MIB::myTopLevelObject and MY-MIB::myTable

 Dave


 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 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/listinfo/net-snmp-users

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
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/listinfo/net-snmp-users


Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 10 November 2011 15:41, Simon Chamlian simon.chaml...@gmail.com wrote:
 I think what he means (or what I mean) is to have one config file that
 converts the whole MIB file (which contains any possible object) into C.

If the MIB contains scalar objects, then the command I gave will do
exactly that.

If the MIB contains tables (or a mixture of tables and scalars),  then
you should
look at implementing one table at a time.

You can always combine the implementation code for related tables into a
single file manually, but the mib2c templates are typically designed to work
with just one table at a time.

Dave

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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/listinfo/net-snmp-users