On 6 January 2012 08:50, <[email protected]> wrote: > I was trying to extend functionality of the snmpd using AgentX API. > > And I have successfully extended the Net-SNMP for some of my custom MIBs > also. > But when I am trying to extend it for “dot1qVlanStaticTable”, I am stuck > with a compilation error. > > > > I have looked into many tutorials like “MIB for Dummies”. > All of them are taking ifTable as an example. > And ifTable compiles without any problem. > I followed the same process for dot1qVlanStaticTable also. > > > > [root@localhost vlan]# mib2c -c mib2c.mfd.conf dot1qVlanStaticTable > [root@localhost vlan]# net-snmp-config --compile-subagent vlan --norm > dot1qVlanStaticTable.c
But that is only compiling *one* of the code files generated by mib2c. I'm no expert on the MfD framework, but checking the tutorial, it uses three invocations of mib2c to generate the necessary files: mib2c -c mib2c.mfd.conf dot1qVlanStaticTable mib2c -c mfd-makefile.m2m dot1qVlanStaticTable mib2c -c subagent-m2c dot1qVlanStaticTable and then compiles the subagent using make -f dot1qVlanStaticTable_Makefile Have you tried this approach? Dave ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
