On 17 March 2011 09:55, Manjit <manjit.si...@globaledgesoft.com> wrote: > I am trying to include the example ( data set ) with the net-snmp. > For this i have configured the snmp with examples and as a result of this > file data_set.c is compiled. > I can see the init method also in mib_module_init.h ( if > (should_init("data_set")) init_data_set(); ) > But when i am running snmpd and using the command for a walk on the > table it shows "No Such Object". > #snmpwalk -v 2c -c private localhost 1.3.6.1.4.1.8072.2.2.1 > NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable = No Such Object available on > this agent at this OID > > Do i need to something else to make it work. I can see in the file > data_set.c, code for creating rows > with some values are present. > > Please, help me out.
Three possibilities spring to mind: - the agent binary that you are querying is not the same one that you compiled (and hence does not include the example/data_set module) - the data_set code has omitted to create any entries in this table (although by default, it should set up one row - so you'd have had to explicitly remove this code) - the access control settings are blocking access to this table. Try running the command snmpgetnext -v 2c -c private localhost 1.3.6.1.4.1.8072 What does that report? If you don't get something like NET-SNMP-AGENT-MIB::nsModuleName."".1.0.0 = STRING: (or at least something under one of the NET-SNMP-xxx MIBs), then I'd double check the access control settings. If you do get this, then try the command snmpgetnext -v 2c -c private localhost UCD-SNMP-MIB::versionCDate.0 That will give you the compilation date of the running agent. Does this match what you would expect? Dave ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders