RE: how can I handle a Counter32 MIB?

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <20150825131243.feb4017efaa820d231aba3d713490455.d383346982.mailapi@email14.secureserver.net>
 
Have you tried ASN_COUNTER?
--------- Original Message --------- Subject: how can I handle a Counter32 MIB?
From: "Mostafa Salari" <[email protected]>
Date: 8/25/15 9:59 am
To: [email protected]

  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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users

------------------------------------------------------------------------------

_______________________________________________
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.