mib2c-system information help

2012-09-05 Thread Jatin Bodarya
Hello all, I want to add some system information with my enterprise OID. Can anyone help me ? how can I do this? My mib2c generated code is not allowing me to call the "system" function to run another program from it or " fscanf" function to read from the file .. Please help

RE: A primary OID handler for a whole subtree

2012-09-05 Thread Jatin Bodarya
Than try it snmp_set_var_typed_value(requests->requestvb, ASN_OCTET_STR, (u_char *) &datapointer, strlen(datapointer)); and also try with defining datapointer as an array or char* ---

RE: A primary OID handler for a whole subtree

2012-09-05 Thread Jatin Bodarya
Could anyone point me in the right direction concerning my MIB module? Do I need to implement it in a different way and/or am I missing something? It does not seem like request for any child elements of test are directed to its handler. Though if I register all 3 scalars with same handler method (