Re: Very Newbie: Converting a complex MIB file with mib2c

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 2 July 2010 14:51, Joan Landry <[email protected]> wrote:
> You have to use mib2c for each table and scalor:
> Example:
> mib2c -c mib2c.scalar.conf SNMP-USER-BASED-SM-MIB:usmUserSpinLock
> mib2c -c mib2c.table_data.conf SNMP-USER-BASED-SM-MIB:usmUserTable

Minor correction:
  You should be able to run "mib2c -c mib2c.scalar.conf" once, giving it the
root of the MIB in question, and it will generate code for *all* scalar objects
within that MIB.

But for tables, it is normal to run mib2c on each table individually.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.