Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • alarm table implementation

    0 answers - 1838 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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)
    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
    Net-snmp-users mailing list
    Net-snmp-users (AT) lists (DOT) sourceforge.net
    Please see the following page to unsubscribe or change other options:

Re: alarm table implementation


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Networking"

EMSDN.COM