Scotty Counter/Counter32 returned values

Douglas Rabe (darabe@ans.net)
Fri, 19 Jan 1996 14:37:55 -0500 (EST)

Greetings...

I am running scotty-2.0.2 on AIX 3.2. For some reason Counter and Counter32
defined values get returned in what looks like u_char values.

Assume that the syntax of (someCounterVariable) is defined in mymib.mib as
Counter.

$ scotty
% mib load mymib.mib
% set s [snmp session -address host -community read-only]
% $s get (someCounterVariable.index)
{(someCounterVariable.index) Counter 254}
% mib syntax (someCounterVariable)
Counter

When I use another tool to get the instance:
$ snmpinfo ... -v -md -h host -c community (someCounterVariable.index)
(someCounterVariable.index) 4294967294

It looks like scotty is using u_char, where as it should be using unsigned
int. Can anyone shed some light?

-- 
Douglas Rabe
ANS Senior Associate Engineer
darabe@ans.net