Need to dynamically insert index in Trap(Notification OID)

Suresh kumar <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi we are using net-snmp-5.7.1 and generate code using env MIBS="+XXXX-MIB" mib2c -c mib2c.notify.conf xxxxxxx_module for notification(TRarp)
 
we need to dynamically insert index in following oid in function can anyone let me how to resolve this problem.   
 
 
Int send_EnvOverTemp_trap()
{
   
const oid XXXConnCustName_oid[] =
        { 1, 3, 6, 1, 4, 1, 4960, 2, 5, 1, 1, 3, 1, 14,
/* insert index here */ };  // we need to add idex like 1000 dynamically 
    const oid calientTConnAdminState_oid[] =
        { 1, 3, 6, 1, 4, 1, 4960, 2, 5, 1, 1, 3, 1, 9,
/* insert index here */ };
    const oid calientTConnOperState_oid[] =
        { 1, 3, 6, 1, 4, 1, 4960, 2, 5, 1, 1, 3, 1, 10,
/* insert index here */ };
 
……..
………………
}
  Regards
~Suresh

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.