2009/2/5 Alexander Bubnov <alexander.bub...@gmail.com>:
> I have run "snmpd -Le -f -Dagentx" under one consloe and "./subagent"
> compiled from that sources under other console.
>
> I have added to the subage code:
>
> ...
>
>   debug_register_tokens("nstAgentSubagentObject");
>   debug_register_tokens("snmp_alarm");
>   debug_register_tokens("agentx");
>   snmp_set_do_debugging(1);
>   netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
> NETSNMP_DS_AGENT_X_SOCKET, "udp:localhost:705");

Have you done the same (or equivalent) to the master agent?
Is it actually listening on *UDP* port 705?
   (AgentX was designed to use a connection-oriented-transport,
so would normally use a *TCP* port, not UDP).


Does the master agent display anything when the subagent
connects and registers?

Try walking the NET-SNMP-AGENT-MIB::nsMibRegistry.
Can you see an entry that relates to nstAgentSubagentObject?

Try running both subagent and master agent using the '-d' flag.
Do you see packets going between them when the request comes in?

Dave

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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