On Fri, Jan 21, 2011 at 01:48:47PM +0300, Egor wrote:
> I wrote my own simple MIB module, used mib2c.scalar.conf. So, I made my
> example like delayed_instance.c.
> this is received by gdb:
> Program received signal SIGSEGV, Segmentation fault.
> _int_malloc (av=, bytes=) at
> malloc.c:4339
> 433
I wrote my own simple MIB module, used mib2c.scalar.conf. So, I made my
example like delayed_instance.c.
You can see source code here
/*
* Note: this file originally auto-generated by mib2c using
*: mib2c.scalar.conf 11805 2005-01-07 09:37:18Z dts12 $
*/
#include
#include
#include
#
1). when i am accessing snmpget -O qv -I r -c public x.x.x.x -v 3 -u admin
-a MD5 -A Key -x DES -X Key -l authPriv
mibname.id.mac-address(01.00.5E.01.01.01)
it shows that:
Unknown Object Identifier (Index out of range: 5E)
what could be the problem?
How i will give the mac-address ?So, that the
Thanks so much.
But, do I have to use the snmp library? And include the header files into my
project?
2011/1/13 Wes Hardaker
>
> The better way would be to use the API to send a trap. Rather than call
> snmptrap from within a system call, look at the insides of the
> apps/snmptrap.c file and co
On Thu, Jan 06, 2011 at 08:23:14AM -0800, Wes Hardaker wrote:
> Err... I think you're right. It should probably be checked. Can you
> delete it and try using the modules in both in-and-out of the agent?
Sorry for the late reply, I only now found time to test this properly.
So here are the resu