Agent server host
Jochen Katz
katz____agentpp.com
Tue May 21 21:03:55 CEST 2002
Hi,
> 1. Can I bind the SNMP server part of a agent to a specific
> ip (network)? I have to install the agent on a Solaris 2.8
> machine with 2 different network cards (IPs). But the agent
> should only listen to one network.
yes, you can use the following code (see atm_mib example):
UdpAddress inaddr("127.0.0.1");
inaddr.set_port(port);
Snmpx snmp(status, inaddr);
> 2. Our software already has some logging functionality. I had
> to include the Agent++ logging into our own logging.
> Currently I'm using a thread with a pipe to forward the
> Agent++ logging in our own logging. Is there an easier way?
Did you already modify log.cpp? If not, you can change the fprintf in
AgentLogImpl::operator+=() to whatever you need. Or you could set
agent++ to log to a file.
Kind regards,
Jochen
More information about the AGENTPP
mailing list