I’m implementing some code which provides an SNMP interface for one of several equipment types, selectable by the user. So the code needs to select and use one of a number of MIBs at run-time, depending on the equipment type being supported (but only one MIB at a time).
I’ve found a slightly messy way to do this, but wondered if anyone else had come up with a way.