Mostafa Salari
2015-08-25 14:59:07 UTC
Hello,
In a subagent, when I want to update the value of an (for example) INTEGER
mib, I use the following line in Netsnmp_Node_Handler * myhandler(...):
snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
v->value, sizeof(long));
HOW can I update the value of a Counter32 mib? In other word: what should I
put instead of ASN_INTEGER?
I cant find the appropriate definition in "asn.h"
Thanks,
Mostafa
In a subagent, when I want to update the value of an (for example) INTEGER
mib, I use the following line in Netsnmp_Node_Handler * myhandler(...):
snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
v->value, sizeof(long));
HOW can I update the value of a Counter32 mib? In other word: what should I
put instead of ASN_INTEGER?
I cant find the appropriate definition in "asn.h"
Thanks,
Mostafa