RE: is agentx support is there in 5.0.9 on solaris ????

umashankar tm <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

    Thanks, the sub-agent is working fine on 32-Bit kernel mode both as an agentx subagent and shared lib with dlmod. It is registering right OID.

    Is there a work-around for the problem on 64-bit machine? 


Regards,
Umashankar



--- On Thu, 19/2/09, Mike Ayers <[email protected]> wrote:

> From: Mike Ayers <[email protected]>
> Subject: RE: is agentx support is there in 5.0.9 on solaris ????
> To: "umashankar tm" <[email protected]>, "Dave Shield" <[email protected]>, [email protected]
> Date: Thursday, 19 February, 2009, 11:49 PM
> > From: umashankar tm [mailto:[email protected]]
> 
> > 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
> [email protected]
> Please see the following page to unsubscribe or change
> other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.