In a LINUX machine, I created virtual IP Addresses to have multiple agents running with different IP addresses in the same machine.
nets-nmp version - net-snmp-5.2.1
This configuration went fine and I had more than one snmp agent running with different IP Address. In our NMS, we are discovering the device using the IP Address of the snmp device. There is a enterprise specific read-only oid for holding the snmp agent/device IP address using which the device will be discovered. So here the problem came.
I had only one MIB copy, but mulitple agents. This obviuosly led to have the same IP Address(hard coded in the C file) for the above mentioned OID which conflicted while a snmp agent with a different IP address returns a different hard coded IP Address. Since we are validating this in our NMS, conflict arised.
I tried with the following option.
1. To get the IP address in runtime(ie., when snmp request is made) to which the request has been made and assign the value to the enterprise specific oid -- But I'm unable to do this. This operation failed when accessed from NMS
I would like to make another try and I hope it solves my problem. It is that, to have multiple MIB copies each for one agent.
How could I proceed with this? Is any configuration changes required?
Thanks.
