loading snmp object name to OID mappings

Frank Fock Frank.Fock____t-online.de
Tue Jun 24 00:39:02 CEST 2003


Hi Patrick,

SNMP++ does not contain any MIB compiler code.
Thus, if you need to parse MIBs at runtime, you
will have to use libSMI, which is a free C library
to access MIB information. If it is OK, to compile
your MIBs at runtime, then you could use AgenPro
to create appropriate C++ objects or data structures.
AgenPro is fully customizable by code generation
templates. See http://www.agentpp.com for more
details.

Best regards,
Frank Fock

Cosmo, Patrick wrote:
> Hi,
> 
> I have an application that allows administrators to configure snmp 
> object name=value parameters. The application itself must be able to 
> lookup the OID for the objectname in order to set a value on the device. 
> So, somehow, we need to get the OID to object name mappings into the 
> snmp manager.
> 
> Are there any suggestions on how this can be done? We are considering 
> the following:
> 
> 1. We have access to the snmp_pp MIB compiler, but it doesn't look like 
> any source code for compiling MIBs was included with the snmp_pp libs. 
> Is this source available? If so, we could possible modify it to compile 
> the MIBs and load the object name and OID mappings into the manager. (We 
> don't want to write our own MIB compiler from scratch).
> 
> 2. I haven't verified this yet, but was told that the snmp_pp MIB 
> compiler can compile a MIB and generate a resulting "MIB database" file. 
> If so, there are two options I think:
> 
>       A. does the snmp_pp library already have code that can import/load
>       this "MIB database"?
>       B. is the format of this "MIB database" documented/spec'd
>       somewhere so that we could write our own code to import/load this
>       MIB database.
> 
> Any other suggestions?
> 
> thanks,
> Patrick
> 
> *Patrick Cosmo*
>  
> */Senior Product Engineer/*//
> Incognito Software Inc
> Vancouver: (604) 688-4332 ext: 254
> Toll-Free: 1-800-877-1856
> _http://www.incognito.com_
>  
> 






More information about the AGENTPP mailing list