KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

SNMP cant read 64Bit counters

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Jax



Joined: 12 Jan 2004
Posts: 13

PostPosted: Thu Jan 29, 2004 7:48 pm    Post subject: SNMP cant read 64Bit counters Reply with quote

When trying to retrieve any 64Bit counter value via SNMP I get:
"Error: cannot retrieve data. Unknown variable (OID)"

I have verified my oid and I can get the value via a command line snmp get.

Here are is one example on 64Bit IF counters on Cisco switches
1.3.6.1.2.1.31.1.1.1.1.3 Returns if Name works ok
1.3.6.1.2.1.31.1.1.1.6.3 Returns the error because it is a counter 64.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Jan 30, 2004 6:09 pm    Post subject: Reply with quote

There are must be some another reason for this error because
- HostMonitor know how to work with 64bits counters
- If HostMonitor gets some value but don't know how to handle it, it displays "Unknown type" error.
- "Unknown variable (OID)" it is answer from mgmtapi.dll

Can I access your router for testing?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Jax



Joined: 12 Jan 2004
Posts: 13

PostPosted: Sun Feb 01, 2004 5:21 pm    Post subject: Reply with quote

Unfortunately the switches I have a problem with are on a private network and cant be accessed via internet.

My description was not exactly accurate, if I use a snmp browser like OidView I can read the oid however command line progs like snmpget or snmputil and HM report an error.

I tried on cisco 6509 6009 2948G running CatOs and they all have the problem.

This problem is not critical, I can use the 32bit equivalent counters.

Thanks
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Feb 02, 2004 8:38 pm    Post subject: Reply with quote

May be some problem with mgmtapi.dll...
I think we will implement SNMP test in RMA without using this DLL

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
ironmike



Joined: 22 Jun 2003
Posts: 15

PostPosted: Wed May 05, 2004 2:46 pm    Post subject: Same problem Reply with quote

I have a Cisco CSS 11800 and I can't use the 64-bit counters on it either, though I can view them with OIDview....

Mike
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu May 06, 2004 12:06 am    Post subject: Reply with quote

Did you try to use RMA for this purpose? Unlike HostMonitor, RMA ( version 1.18 ) does not use mgmtapi.dll

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
ironmike



Joined: 22 Jun 2003
Posts: 15

PostPosted: Thu May 06, 2004 8:02 am    Post subject: Reply with quote

I just tried it out. With HostMonitor, I get:
Error: Cannot retrieve data. Unknown variable (OID).

With RMA, I get:
SNMP error: No such name.

I am able to get some some information looking at other OIDs (from both RMA and Hostmonitor), so I know that it should not be an access issue. If it helps, here is some info on the OID that I am trying to access:

ASN Name: ap64ifInOctets
MIB: ap64stats
Object Identifer: 1.3.6.1.4.1.2467.1.44.3.1.10
Argument Type: Counter64
Range: 0-18446744073709551615
Description:
The total number of octets received on the interface, including framing
characters.

I am accessing the OID by numeric index, for example:
1.3.6.1.4.1.2467.1.44.3.1.10.35
(I also tried 1.3.6.1.4.1.2467.1.44.3.1.10.35.0 without luck)
to get me information on octet count for interface 35.

Let me know if you need any more information.

thanks,
Mike
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu May 13, 2004 8:21 am    Post subject: Reply with quote

Sorry for delay, investigation was not easy. Here is draft conclusion:

Counter64 was introduced in SNMPv2. HostMonitor know how to work with this data type but it sends request to SNMP agent with version=1 in the header.
Looks like some SNMP agents do not provide counter64 data if request indicates version 1. On the other hand if HostMonitor will send v2 request, SNMPv1 agents will not respond.

Good solution is not very easy - implement MIB compiler and provide databases to the monitor. In this case HostMonitor will know what request it should use for each OID.
Unfortunately it will not be implemented in nearest version. Probably version 4.80...

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index