Hello Robert,
Thanks for you advice.
I understand table container is the way to add rows to ifTable in the code IF-MIB/data_access/interface_linux.c and interface_common.c. The function to create more rows is netsnmp_access_interface_entry_create(), so I modified it to create row #5 to #8 for example. The first 3 rows are IPv4 interfaces in /proc/net/dev, and the rest of rows are what my switchport subagent want to support.
- IF-MIB::ifDescr.1 = STRING: IPv4 interfaces
IF-MIB::ifDescr.2 = STRING: IPv4 interfaces
IF-MIB::ifDescr.3 = STRING: IPv4 interfaces
IF-MIB::ifDescr.5 = STRING: switch port
IF-MIB::ifDescr.6 = STRING: switch port
IF-MIB::ifDescr.7 = STRING: switch port
IF-MIB::ifDescr.8 = STRING: switch port
Thanks again for your support.
Emi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
