Hi All,

 

  Any pointers to below question… the NET-SNMP version used is: 5.3.0.1.

 

Regards,

Raj.

 


From: RAJASEKHAR TELLIDEVULAPALLI (WT01 - Broadband Networks)
Sent: Tuesday, July 04, 2006 6:09 PM
To: 'net-snmp-users@lists.sourceforge.net'
Subject: alarm table implementation

 

Hi,

 

   Iam using latest Net-SNMP latest version for SNMP agent and subagents. Need to provide support for alarmTable for all the

   notifications SNMP agent sends on behalf of our subagents to trap destinations. For this I have modified the routine “send_v2trap

   routine in agent/agent_trap.c file.  Included alarmtable structure in agent_trap.h file.

 

   Using mib2c –c mib2c.iterate.conf file I have generated alarmTable.h and alarmTable.c. These files I have copied in mibgroup/alarmTable

   directory and registered the mib.

 

    So when a new alarm comes it writes to the alarm table structure and updates the pointer. Till this it is fine. Now my problem is

    that when Iam doing SNMP get on the table it uses the structure variable declared in agent_trap.c, but I don’t get the variable

    address pointer, it is always having NULL value.

 

    Has anyone faced this kind of problem? How can I get the address retrieved in another file?

 

   1)  agent_trap.c

          Struct alarmTable_entry *alarmTable_head;

 

  Send_v2trap()

     << updating the alarmTable_head pointer

 

  2)    Mibgroup/alarmTable/alarmTable.c

           Extern struct alarmTable_entry *alarmTable_head;

 

          If (alarmTable_head)   << This is always having NULL value.

                << SNMP get to retrieve values

  

  

   Thanks for the help in advance.

 

 Thanks & Regards,

  Raj.

 

  

 

 

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to