Hi Dave,
As suggested, i have used mib2c with "mib2c.table_data.conf"
configuration file, while registration with
netsnmp_create_handler_registration(), it gave the mib handler routine,
where the set/get for the objects takes place.
Here is my exact requirement, i will have 2 interfaces to the snmp table
which i will be registering with the netsnmp with a sub agent.
1. I have to SET/GET the OID values via snmp SET/ SNMP GET.....It is a
straignt forward one.(The OID's values will be stored in the containers)
2. Second interface is CLI, via which i have to configure(SET/GET) the
value's of OID's. (I will maintain an user defined linked)
when i SET/GET via snmp interface, i can use IPC to send a notification
about the change in the value of a particular OID to cli so that cli will
make changes in it's data structure.
*If cli changes the value of an OID(in it's user defined data structure),
then it has to get updated in the netsnmp containers...*i am not sure if it
is possible?
can you please let me know if it is possible.
Thanks in Advance
Regards,
Anil.
On Wed, Apr 20, 2011 at 3:32 PM, Dave Shield <[email protected]>wrote:
> On 20 April 2011 07:26, Anil Murala <[email protected]> wrote:
> > can some one please point me, where will my MIB handler routine gets
> created
> > in the code? so that i can tweak the code to GET/SET the values from my
> data
> > store.
>
> This is normally handled by running 'mib2c', which will generate a code
> framework for the table. You can then tweak this as required, and compile
> it within an agent/subagent.
>
> See the project website (tutorials, FAQ, etc) for more info.
>
> Dave
>
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users