Hi Wes,

Thanks. But, I figured out that some of the MIBs where not present in the mibs 
directory. Once these MIBs are copied my master comesup with no issues.

But my sub agent is not able to get attached 

THis is my debug trace of the master

NET-SNMP version 5.4.3
dumpx_recv:3C 00 00 00
dumpv_recv:  Integer:   60 (0x3C)
dumph_recv: AgentX Header
dumph_recv:   Version
dumpx_recv:    01
dumpv_recv:      Version:       1
dumph_recv:   Command
dumpx_recv:    01
dumpv_recv:      Command:       1 (Open)
dumph_recv:   Flags
dumpx_recv:    00
dumpv_recv:      Flags: 0x0
dumph_recv:   Reserved Byte
dumpx_recv:    00
dumpv_recv:      Reserved:      0x0
dumph_recv:   Session ID
dumpx_recv:    00 00 00 00
dumpv_recv:      Integer:       0 (0x00)
dumph_recv:   Transaction ID
dumpx_recv:    00 00 00 00
dumpv_recv:      Integer:       0 (0x00)
dumph_recv:   Packet ID
dumpx_recv:    D1 5B 36 10
dumpv_recv:      Integer:       271997905 (0x10365BD1)
dumph_recv:   Payload Length
dumpx_recv:    3C 00 00 00
dumpv_recv:      Integer:       60 (0x3C)
dumph_recv:   PDU
dumph_recv:       Subagent OID
dumph_recv:         OID Header
dumpx_recv:          05 04 00 00
dumpv_recv:            # subids:        5 (0x05)
dumpv_recv:             prefix:         4 (0x04)
dumpv_recv:             inclusive:      0 (0x00)
dumph_recv:         OID Segments
dumpx_recv:          01 00 00 00
dumpv_recv:            Integer: 1 (0x01)
dumpx_recv:          88 1F 00 00
dumpv_recv:            Integer: 8072 (0x1F88)
dumpx_recv:          03 00 00 00
dumpv_recv:            Integer: 3 (0x03)
dumpx_recv:          02 00 00 00
dumpv_recv:            Integer: 2 (0x02)
dumpx_recv:          0A 00 00 00
dumpv_recv:            Integer: 10 (0x0A)
dumpv_recv:         OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
dumph_recv:       Subagent Description
dumpx_recv:        19 00 00 00
dumpv_recv:          Integer:   25 (0x19)
dumpx_recv:        19 00 00 00 4E 65 74 2D 53 4E 4D 50 20 41 67 65
6E 74 58 20 73 75 62 2D 61 67 65 6E 74 00 00 00
dumpv_recv:        String: Net-SNMP AgentX sub-agent...


This is the debug trace of my subagent that is hanging during start upis below

verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)
trace: snmp_sess_select_info(): snmp_api.c, 5860:
sess_select: for all sessions: 28 (to in 1291717775.476069 sec) 17 15
sess_select: next alarm 0.1 sec
verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)
trace: snmp_sess_select_info(): snmp_api.c, 5860:
sess_select: for all sessions: 28 (to in 1291717775.476069 sec) 17 15
sess_select: next alarm 0.1 sec
verbose:sess_select: timer due *real* soon. 1 usec
verbose:sess_select: setting timer to 0.1 sec, clear block (was 1)
trace: snmp_sess_select_info(): s
[r...@salty bin]# tail -f /cisco-ar/logs/ar_snmp.log
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 392:
tdomain: Use application default domains "unix" "tcp"
trace: find_tdomain(): snmp_transport.c, 322:
tdomain: Found domain "unix" from specifier "unix"
trace: netsnmp_lookup_default_target(): snmp_service.c, 388:
defaults: netsnmp_lookup_default_target("agentx", "unix") -> 
"/var/agentx/master"
trace: netsnmp_tdomain_transport_full(): snmp_transport.c, 421:
tdomain: trying domain "unix" address "[NIL]" default address 
"/var/agentx/master"
trace: netsnmp_unix_transport(): snmpUnixDomain.c, 284:
netsnmp_unix: open remote Local IPC: /var/agentx/master

I see that my master is up and not my subagent. How should I proceed so that my 
subagent will register with Agent

Thanks,
Princy



________________________________
From: Wes Hardaker <harda...@users.sourceforge.net>
To: Princy Gift <ajpri...@yahoo.co.in>
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Mon, 6 December, 2010 9:28:17 PM
Subject: Re: Master-Agentx Registration fails

>>>>> On Mon, 6 Dec 2010 17:23:05 +0530 (IST), Princy Gift 
>>>>> <ajpri...@yahoo.co.in> 
>>>>>said:

PG> I am trying to setup a sample master - agentx setup of net-snmp using 5.4.3.

PG> MY snmpd.conf
PG> --------------------
PG> rocommunity public localhost
PG> rwcommunity private localhost
PG> master on
PG> agentXSocket /var/agentx/master

Note that the last line actually isn't needed, as that's the default.

PG> My snmpd start up logs are, I see some MIB objects are not
PG> registered in my master with "Cannot find module" errors. Does this
PG> have something to do with my master-agentx communication failure?

So some objects do get registered and others don't?
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to