[AGENT++] multiple ports
Michelle Lam
mydlam at yahoo.com
Sat May 7 01:04:29 CEST 2011
My agent needs to listen to two different ports (161 and 10161). One of the archive messages said it's impossible for one agent to listen to 2 different ports. Is this true?
How should I handle this? Do I need to have 2 different agents, each listen to 1 port? Can one application runs two agents?
I tried to do
rSnmp = new Snmpx(status, port1);
dSnmp = new Snmpx(status, port2);
created 2 mibs, one for each agent, pretty much duplicate the code in atm_mib for the 2nd agent after the 1st agent. However I got "Timeout: No Response from localhost" for the first agent, and sometimes the second agent.
Your help is greatly appreciated!
Michelle
More information about the AGENTPP
mailing list