Snmp4J-Agent force preferredTransport

Hi,
is there a way I can specify the “preferredTransport” in an agent built with snmp4j (and agenpro).

What do you mean by “prefered transport” exactly? The supported transport mappings you configure the Agent.java.
The command sender choses the transport to be used, the command responder (=agent) cannot “change” it.

It’s a dumb question born from logs where I saw “preferredTransport = null”.

Thanks for your time.

The preferred transport can be set explicitly with the new DirectTarget and will be set by SNMP4J-Agent for all responses if the agent to make sure that the transport is used for sending the response that actually received the request. That is important for multi-homed agents.