Discussion:
how can I handle a Counter32 MIB?
(too old to reply)
Mostafa Salari
2015-08-25 14:59:07 UTC
Permalink
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
j***@rego.org
2015-08-25 20:12:43 UTC
Permalink
Have you tried ASN_COUNTER?
--------- Original Message --------- Subject: how can I handle a Counter32 MIB?
From: "Mostafa Salari" <***@gmail.com>
Date: 8/25/15 9:59 am
To: net-snmp-***@lists.sourceforge.net

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

------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list Net-snmp-***@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...