Hi,
  Earlier I have posted a question regarding the linking of .c and .h files with an OID, but the answer I got was not actually i asked for. May be I was not able to state my problem clearly. Let me restate the problem once more.  
   I am using Red Hat Linux Advanced Server 3.0 (kernel 2.4.21-4.ELsmp). This Advanced Server distribution comes with net-snmp-5.0.8 installed by default. There are other application running on my machine which uses this net-snmp. So, it is not possible for me to uninstall the package.
   All the header files associated with this 'rpm' are located under /usr/include/net-snmp folder and all MIBs are located under /usr/share/mibs folder.
   I have created a MIB file and generated the .c and the .h files corresponding to the MIB. Now I want that whenever there is a snmpget or a snmpset request for an OID in the MIB( my generated) file, from any other machine, it should execute the code, corresponding to the OID, as specified in the .c file. 
   How can i generate the .o file from my .c and .h files and how can i link the .o file with the existing net-snmp. As I have not installed any net-snmp package seperately, i don't have any folders like mibgroups. The mibgroups folder doesn't get created when  the default net-snmp rpm gets installed with the OS. I cannot use the ./configure, make and make install options, as I am not installing any net-snmp package seperately.
    Can anyone suggest me what  are the steps to be followed.
 
Regards and thanks,
Rana.

Reply via email to