On 29 October 2012 11:56, Sverre Moe wrote:
> Why does this work for my 3 hard coded scalars, but not my list of scalars?
>
> const oid scalar_oid[] = { 1,3,6,1,4,1,45678,1,1 };
> OID_LENGTH(scalar_oid) gives value 9.
>
> const oid *scalar_oid = wrapper.getOid(); //Has same oid within. Returns a
>
mp-users"
Sendt: 29. oktober 2012 12:38:51
Emne: Re: Debugging SNMP
On 29 October 2012 10:46, Sverre Moe wrote:
> I have also tried to output the handler memory address, and its not
> always unique. Don't know if it has anything to do with the problem.
Hmmm as far
On 29 October 2012 10:46, Sverre Moe wrote:
> I have also tried to output the handler memory address, and its not
> always unique. Don't know if it has anything to do with the problem.
Hmmm as far as I can tell, this structure should be unique,
but this duplication could well be a symptom of
uot;
Sendt: 29. oktober 2012 11:20:30
Emne: Re: Debugging SNMP
On 29 October 2012 10:10, Sverre Moe wrote:
> I have tried to seperate the registration call into two separate statements,
> same result. None of these are actually failing. When I call
> ne
On 29 October 2012 10:10, Sverre Moe wrote:
> I have tried to seperate the registration call into two separate statements,
> same result. None of these are actually failing. When I call
> netsnmp_register_scalar(handler), it returns -1 which is
> MIB_DUPLICATE_REGISTRATION.
So the 'netsnmp_create
agent" ?
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 29. oktober 2012 11:01:33
Emne: Re: Debugging SNMP
On 29 October 2012 09:34, Sverre Moe wrote:
> I have tried to manually register 3 hard code
On 29 October 2012 09:34, Sverre Moe wrote:
> I have tried to manually register 3 hard coded scalars, one by one, each
> with its own handler:
[snip]
> This works fine and snmpget returns a value. However, if I put these 3 hard
> coded scalars OID in a list, iterate over that list and register
_string.c_str();
int returnValue = netsnmp_register_read_only_scalar(
netsnmp_create_handler_registration(buffy,
handle_snmp,
oid_value,
OID_LENGTH(oid_value),
HANDLER_CAN_RONLY
));
}
- Original Message -
Fra: "Jatin Bodarya"
Til: "Sverre Moe"
Sendt: 29. oktober 2012 09:5
unique. So why does
it returns MIB_DUPLICATE_REGISTRATION?
/Sverre - Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:52:18
Emne: Re: Debugging SNMP
On 26 October 2012 13:29, Sverre Moe wr
: hostname 1.3.6.1.4.1.40463.2.4
And none of these occur more than once.
Don't understand you last question.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:52:18
Emne: Re: Deb
On 26 October 2012 13:29, Sverre Moe wrote:
> Full code of my scalar registration. Changed to register all scalars one by
> one instead of in group.
>
> The oid_wrapper class is a wrapper around oid that contains an oid pointer
> and the length of that oid.
Try printing out the value of 'scalar_o
;
}
The output is always only 1.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:13:04
Emne: Re: Debugging SNMP
On 26 October 2012 12:16, Sverre Moe wrote:
> The first s
On 26 October 2012 12:16, Sverre Moe wrote:
> The first scalar group I tried to register got value 0(MIB_REGISTERED_OK).
>
> All the others got value -1(MIB_REGISTRATION_FAILED or
> MIB_DUPLICATE_REGISTRATION).
Do the other groups use the same "root" OID as the first registration
tead of in groups.
/Sverre
- Original Message -
Fra: "Sverre Moe"
Til: "net-snmp-users"
Sendt: 26. oktober 2012 10:19:24
Emne: Debugging SNMP
Hello, me again. Have been sending a few messages lately. Hope I am not nagging
to much.
Is there a way I c
Hello, me again. Have been sending a few messages lately. Hope I am not nagging
to much.
Is there a way I could debug snmp. I have gotten my C++ program to work as an
SNMP AgentX. I have managed to register 3 hard coded test scalars and it works
when I snmpget on those scalars.
Thus remo
15 matches
Mail list logo