> From: umashankar tm [mailto:umashankar_...@yahoo.co.in] 
> Sent: Thursday, February 19, 2009 4:38 AM

>    I am also facing the same problem with Solaris10 Net-SNMP 
> 5.0.9. My code works perfectly fine when it is run as a 
> master agent. But if I run it as a agentx subagent, it seems 
> to work fine but does not respond to any queries. 
> 
>   I found that the problem is in OID registration. Please see 
> the following snmpd logs in debug mode:
> 
> :
> :
> NET-SNMP version 5.0.9
> register_mib: registering "AgentX subagent 7, session   
> 554590, subsession   5550b0" at 
> .4294967296.12884901888.25769803776.4294967296.17179869184.429
> 4967296.45045617000448.4294967296.4294967296.21474836480
> :
> 
> It is taking some junk values for the oids. It was supposed 
> to be {1,3,6,1,4,1,107xx,1,1,5}

        The values above represent { 1, 3, 6, 1, 4, 1, 10488, 1, 1, 5 }, 
apparently with 32-bit swap:  { 0x0000000100000000, 0x0000000300000000, 
0x0000000600000000, etc ... } instead of { 0x0000000000000001, 
0x0000000000000003, 0x0000000000000006, etc ... }

> I also tried doing dlmod in snmpd.conf file by creating 
> shared library but without any success.
> I was getting the following
>  error:
> 
> dlopen failed: ld.so.1: snmpd: fatal: 
> /usr/sfw/lib/libseaProxy.so: wrong ELF class: ELFCLASS32
> dlopen failed: ld.so.1: snmpd: fatal: 
> /usr/sfw/lib/libseaExtensions.so: wrong ELF class: ELFCLASS32
> 
> I guess this is because I am using 64-bit machine, but my 
> libs are of 32-bit. Please let me know if I am missing out an 
> anything.

        I believe you should be able to operate in 32 bit mode, but you must 
build and link your subagent as 32-bit.


        HTH,

Mike

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to