On 21 July 2010 11:49, <[email protected]> wrote: > I am new to NET-SNMP .I am facing problem when i perform SNMPGET on > dot1dBridge(Bridge-Mib).I did following steps > 1. I included the dot1dBridge.c & dot1dBridge.h file in /agent/mibgroup
Where did you get these files from? Is this a module that you are coding yourself, or is this code from somebody else? > 2. I configure using the command ./ configure --with-perl-modules > --prefix =/home/visakha/snmpinst > --with-mib-files=dot1dBridge --with-mib-modules=BRIDGE-MIB No. "--with-mib-modules" should take the name of the code file that implements the MIB module (i.e. --with-mib-modules=dot1dBridge) Don't bother with "--with-mib-files" Instead, make sure that the dot1dBridge.h file includes the line config_add_mib( BRIDGE-MIB ) (note - no trailing semicolon). > But when i do snmpget -c public 10.9.10.195 .1.3.6.1.4.1.272.4.8 I wouldn't expect that to work (depending on the structure of the relevant MIB module). You're probably better off using snmpgetnext rather than snmpget. But I don't understand why you are querying an enterprise-specific OID anyway, if you've added a module from the Bridge MIB. What has BinTec (who own the 272 enterprise number) got to do with things? Why aren't you querying something under .1.3.6.1.2.1.17 ? 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-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
