RE: Getting the MIB Name by reading the file

Sowmya P Venkatesh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <3FBA1A58DACAC3478AEC243DD10BAF510F49B343D0@IXCAEXCH07.ixiacom.com>
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: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Tuesday, May 26, 2009 5:19 PM
To: Sowmya P Venkatesh
Cc: [email protected]
Subject: Re: Getting the MIB Name by reading the file

2009/5/26 Sowmya P Venkatesh <[email protected]>:
> 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
[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.