Hi,

Please see the mail thread below, Mike suggetions didn't solve my
problem.

I am using Net SNMP version 5.0.9 shipped with Solaris10 and iReasoning
Agent builder for sub agent building. This subagent requires a TCP port
on which the master agent is listening to establish a connection. I
tried to enable TCP AgentX connection on port 705 by adding the
following two lines in the /etc/sma/snmp/snmpd.conf file,

master agentx
agentxSocket tcp:localhost:705

But this doesnot help. The same thing worked on Linux. Even netstat -an
doesnot show the agent listening on 705 tcp port and my subagent fails
to connect to the Net Snmp master agent.

I also tried the following,

bash-3.00# /usr/sfw/sbin/snmpd -f -L -d -X -x localhost:705

Error: Failed to connect to the agentx master agent: Unknown host
(Connection refused)

Sending 46 bytes to 127.0.0.1
0000: 30 2C 02 01  00 04 06 70  75 62 6C 69  63 A1 1F 02
0,.....public...
0016: 04 34 92 C8  F0 02 01 00  02 01 00 30  11 30 0F 06
.4.........0.0..
0032: 0B 2B 06 01  04 01 2A 02  0F 0A 01 01  05 00
.+....*.......


Resending 46 bytes to 127.0.0.1
0000: 30 2C 02 01  00 04 06 70  75 62 6C 69  63 A1 1F 02
0,.....public...
0016: 04 34 92 C8  F0 02 01 00  02 01 00 30  11 30 0F 06
.4.........0.0..
0032: 0B 2B 06 01  04 01 2A 02  0F 0A 01 01  05 00
.+....*.......

seaproxy_sendReq: SEA Master Agent not responding dlopen failed:
ld.so.1: snmpd: fatal: /usr/sfw/lib/amd64/libseaProxy.so: wrong ELF
class: ELFCLASS64 dlopen failed: ld.so.1: snmpd: fatal:
/usr/sfw/lib/amd64/libseaExtensions.so: wrong ELF class: ELFCLASS64
/etc/sma/snmp/snmpd.conf: line 105: Warning: Unknown token: trap2sink.
NET-SNMP version 5.0.9
Error: Failed to connect to the agentx master agent: Unknown host
(Connection refused)
Error: Failed to connect to the agentx master agent: Unknown host
(Connection refused)

How can I enable the TCP AgentX connector? 
-----Original Message-----
From: Sinha, Birendra (Birendra) 
Sent: Monday, July 28, 2008 11:56 AM
To: Thipse, Amruta (Amruta); Chatterjee, Amarnath (Amarnath)
Subject: FW: Solaris 10's Net-SNMP requires Unix Domain Sockets 

 
-----Original Message-----
From: Mike Ayers [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2008 11:03 PM
To: Sinha, Birendra (Birendra); [EMAIL PROTECTED]
Subject: RE: Solaris 10's Net-SNMP requires Unix Domain Sockets 

> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Sinha, Birendra (Birendra)
> Sent: Friday, July 25, 2008 2:41 AM

> I am using iReasoning Agent builder for building the subagent. 
> Solaris 10's Net-SNMP requires Unix Domain Sockets for Agentx. Java 
> doesn't supprt Unix Domain Sockets, therefore, no Java subagents for 
> Solaris 10's Net-SNMP.

        The net-snmp AgentX implementation supports TCP connections.
See the snmpd.conf manpage for details.  Note that the TCP AgentX
connector is known to be insecure, which is why the agent is usually
shipped with it turned off.


        HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to