Dear:
I have a question about snmpget&snmpset.
In the program:
u_char *var_sgcc (struct variable *vp, oid * name, size_t * length,int exact, size_t * var_len, WriteMeth
Hi,
I am aware that we can override the NetSNMP default implementation of
the standard MIBs with our own implementation, I have been able to do that for
ifTable and ifXTable.
Somehow when I tried to do the same for the Host Resource MIB, specifically
"hrSystemNumUsers" , by adding "-I-h
I found the problem, you are right, I forgot to set my var_typed_value to
ASN_UNSIGNED, like so,
snmp_set_var_typed_value(requests->requestvb, ASN_UNSIGNED, (unsigned int *)
&my_oid, sizeof(my_oid));
Thanks!!!
Leo;
--- On Tue, 5/10/11, Dave Shield wrote:
From: Dave Shield
Subject: Re:
On 10 May 2011 03:08, Leo Lin wrote:
> I have a scalar OID of unsigned32. On my mib module, I declare a variable
> that hold an unsigned int, like so,
>
> unsigned int my_oid;
Such variables are typically declared as 'long' rather than 'int'.
But I doubt that's the cause of the problems you are