This is a discussion on COUNTER64 Error within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C63158.7C751BA4 Content-Type: text/plain; charset="iso-8859-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C63158.7C751BA4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, I am using ASN_COUNTER64 as type in the function = 'snmp_set_var_typed_value' the value is of type "unsigned long long int" = but the manager is i.e snmpget/snmpgetnext is displaying large value. sample implemntation is=20 unsigned long long int lval =3D 0; lval =3D 21; snmp_set_var_typed_value(request->requestvb, ASN_COUNTER64, (u_char *)&lval, sizeof(lval)); The output is: txrxframes127.4900010.1 =3D Counter64: 133143986176 But the expected out put is 21. Rgards, Sasikumar. ------_=_NextPart_001_01C63158.7C751BA4 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.5.7638.1"> <TITLE>COUNTER64 Error</TITLE> </HEAD> <BODY> <!-- Converted from text/plain format --> <P><FONT SIZE=3D2>Hi All,<BR> I am using ASN_COUNTER64 as type in the function = 'snmp_set_var_typed_value' the value is of type "unsigned long long = int" but the manager is i.e snmpget/snmpgetnext is displaying large = value.<BR> <BR> sample implemntation is<BR> <BR> unsigned long long int lval =3D 0;<BR> lval =3D 21;<BR> snmp_set_var_typed_value(request->requestvb, ASN_COUNTER64,<BR> &n bsp; &= nbsp; &nb sp; &n= bsp; &nbs p; &nb= sp; (u_char *)&lval,<BR> &n bsp; &= nbsp; &nb sp; &n= bsp; &nbs p; &nb= sp; sizeof(lval));<BR> <BR> The output is:<BR> <BR> txrxframes127.4900010.1 =3D Counter64: 133143986176<BR> <BR> But the expected out put is 21.<BR> <BR> Rgards,<BR> Sasikumar.<BR> </FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C63158.7C751BA4-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|