COUNTER64 Error

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


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-14-2006
 
Posts: n/a
Default COUNTER64 Error

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>
&nbsp;&nbsp;&nbsp; I am using ASN_COUNTER64 as type in the function =
'snmp_set_var_typed_value' the value is of type &quot;unsigned long long =
int&quot; 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-&gt;requestvb, ASN_COUNTER64,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; (u_char *)&amp;lval,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0