Hello,

I work for a company that creates a product which uses several WWAN modems, and 
to keep track of them, we rename their interfaces to something more manageable 
right after they have been created (but before connecting them).
I've read elsewhere that support for renaming interfaces in IF-MIB does not 
exist, and that it is not planned. We are currently only interested in querying 
the inOctets and outOctets of these modems.

We're using net-snmp-5.4.3~dfsg on Debian Squeeze, and I dug around a bit in 
the code, and found the place where a name change is recognised, but ignored 
(ifTable_data_access.c:218). Adding code there that renames the interface name 
(by doing a string copy), and then exits the function (so that 
_add_new_interface can recognise a name-clash and remove the old entry) seems 
to work.
My question is: Am I doing anything apparently stupid? Will this break 
something? Are there better ways?

Your insight in this would be much appreciated.

Regards,
Albert
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to