MAC address in ifPhyAddress

2010-09-28 Thread Norasyikin MD Ali
Hi all, I'm having some trouble interpreting the data type for ifPhysAddress for the ifTable. I get that if a 6 byte data format and it seems ok in the code. But the agent crashes when i walk the ifTable. In th agent I interprete the mac address as an octet string but it doesn't seem to be ret

Agent returns table index

2010-08-26 Thread Norasyikin MD Ali
Hi, I've a question regarding agent behaviour. I've built a table using mib2citerate.conf template in the agent and I would like the agent to return an available index of the table to the NMS for SET purposes without the manager polling it. Does the manager try to do a set without specifying th

Re: Trap receivers, table_data.conf

2010-08-25 Thread Norasyikin MD Ali
ed to use the data structure in my internal MIB would using iterator be better? As always, any input is greatly appreciated. Syikin *be kind, i'm just an intern* Wes Hardaker wrote: On Fri, 20 Aug 2010 10:02:57 +0200, Norasyikin MD Ali said: NMA> Currently I'm tryi

Trap receivers, table_data.conf

2010-08-20 Thread Norasyikin MD Ali
Hi, First of all thank you Wes and Dave for you helpful replies to my various posts. Currently I'm trying to create a dynamic registration table so that an NMS can register and de-register to via snmpset. Is that feasible using table_data.conf? And will it's handler take care of creating and

Generating a trap with table infomation

2010-08-13 Thread Norasyikin MD Ali
Hello, I'm trying to generate a trap containing all the information from my activeAlarmTable which has 8 columns. In my agent, I created a function : tr_status tr_mib_agent_generate_alarm_event_trap(int type, const char *oidstr1, uint32_t id, cons

Re: snmp_parse_oid

2010-08-02 Thread Norasyikin MD Ali
hield wrote: On 30 July 2010 09:47, Norasyikin MD Ali wrote: value = val->s; snmp_parse_oid(value,root,&rootlen); How are you defining the variable 'root'? What value does 'rootlen' have before you call this routine? Remember that you need to initialise

snmp_parse_oid

2010-07-30 Thread Norasyikin MD Ali
Hi, I posted before and I got a very helpful reply from Dave but I can't find the thread. It worked on the application I was working on at the time but in another function snmp_parse_oid seems to corrupt some memory. I'm trying to build an agent to handle ASN_OBJECT_ID types. Everywhere in my

snmp_parse_oid usage

2010-07-06 Thread Norasyikin MD Ali
Hello, I'm trying to build an agent to handle ASN_OBJECT_ID types. Everywhere in my application code i define the OIDs as a string (also the way i concatenate them with table indexes). In the agent : char *value; oid root[MAX_OID_LEN]; int rootlen = MAX_OID_LEN; case TR_MIB_OID: value