Hi Dave,

Is this the only way to do it? Are there any alternatives other than changing 
the read_mib function?

Regards,
Sowmya

-----Original Message-----
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf 
Of Dave Shield
Sent: Tuesday, May 26, 2009 5:19 PM
To: Sowmya P Venkatesh
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Getting the MIB Name by reading the file

2009/5/26 Sowmya P Venkatesh <svenkat...@ixiacom.com>:
> What my requirement is
> Load the mib files and check if they are valid. If so return the mib name.

Have a look at the source code for 'read_mib'
(in the file snmplib/parse.c)

You should be able to tweak (a copy of) this to return the
module name, rather than the head of the MIB tree.

Dave

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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

Reply via email to