Access the SNMP Counters without increasing them

2013-04-30 Thread Gustav Evertsson
I am developing an application that have both an SNMP interface and a GUI. I would like to access the SNMP counters like snmpInPkts, snmpOutPkts etc to show in the GUI. I have tested to send SNMP request to localhost and it works but it also increases the counters and is therefore not so nice. Relo

Re: Access the SNMP Counters without increasing them

2013-04-30 Thread Gustav Evertsson
cket application, maybe not> But how can it be so important? It should be reassuring that your> enquiry traffic is also shown. Do you want to avoid incrementing the> interface counters as well?  Gesendet: Dienstag, 30.> April 2013 um 09:47 Uhr Von: "Gustav

Re: Access the SNMP Counters without increasing them

2013-05-01 Thread Gustav Evertsson
running count of> course)Gesendet: Dienstag, 30. April 2013 um 15:35 Uhr Von:> "Gustav Evertsson" An: "Tim Cox" > Cc: net-snmp-coders@lists.sourceforge.net Betreff: Re: Access the> SNMP Counters without increasing them   Yes, the problem is that they> ar

Re: Access the SNMP Counters without increasing them

2013-05-02 Thread Gustav Evertsson
>static struct sockaddr_in  here = { AF_INET } ;>static int sixteen = 16;>  >static int s = -1;> >int x;> >   >if (s < 0)>{>   s = socket(AF_INET, SOCK_DGRAM);> >   if (s < 0) return -1;> >   x = bind(s, (struct s