Hi,
Dave, thanks for the reply.
> 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?
Yes, I have already tried this approach also.
And I believe the conf file in 3rd command is subagent.m2c instead of
subagent-m2c
I think you are referring to this tutorial
http://www.net-snmp.org/wiki/index.php/MFD:ifTable:mib2c
They give another set of errors.
[root@localhost vlan]# make -f dot1qVlanStaticTable_Makefile
gcc -I. `net-snmp-config --base-cflags` -Wall -Wstrict-prototypes -c -o
dot1qVlanStaticTable_data_access.o dot1qVlanStaticTable_data_access.c
dot1qVlanStaticTable_data_access.c: In function
âdot1qVlanStaticTable_container_loadâ:
dot1qVlanStaticTable_data_access.c:327: error: âdot1qVlanStaticName_lenâ
undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:327: error: (Each undeclared identifier is
reported only once
dot1qVlanStaticTable_data_access.c:327: error: for each function it appears in.)
dot1qVlanStaticTable_data_access.c:327: error: âdot1qVlanStaticNameâ undeclared
(first use in this function)
dot1qVlanStaticTable_data_access.c:346: error: âdot1qVlanStaticEgressPorts_lenâ
undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:347: error: âdot1qVlanStaticEgressPortsâ
undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:369: error:
âdot1qVlanForbiddenEgressPorts_lenâ undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:370: error: âdot1qVlanForbiddenEgressPortsâ
undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:392: error:
âdot1qVlanStaticUntaggedPorts_lenâ undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:393: error: âdot1qVlanStaticUntaggedPortsâ
undeclared (first use in this function)
dot1qVlanStaticTable_data_access.c:411: error: âdot1qVlanStaticRowStatusâ
undeclared (first use in this function)
make: *** [dot1qVlanStaticTable_data_access.o] Error 1
But it remains a fact that these are the exact set of errors you will get, when
you try to compile all the c files using
[root@localhost vlan]# net-snmp-config --compile-subagent --norm vlan *.c
These variables are declared and defined in dot1qVlanStaticTable.h and the file
is included also.
Ideally this should work.
I have no idea of how to solve this error.
Moreover I found out one thing in these days..
I know this is not the correct way to try.
But if you manually edit the Q-BRIDGE-MIB: dot1qVlanStaticTable to some other
name, say ipAddressTable or ifTable
(The new name should be the name of a table which Net-SNMP already supports.)
The subagent will get created.
We can attach to snmpd and it will create some entries also...
But it will not work the way it is expected to be.
I have previously extended snmpd for my custom mib.
I should say they work perfectly.
But they were all scalars.
But now this is a table with dynamic row creation and all the magic stuff.
All I need is a compilable framework of that table.
So I think there is some bug in mib2c preventing me to compile or
Most probably I may be doing something terribly wrong.
Thanks and Regards,
Basil Joseph
------------------------------------------------------------------------------
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