On 6 April 2010 03:18, Fatima Peter <[email protected]> wrote:
> Hello All,
> I am not sure whether this is new issue or has been discussed already.
> We used to be able to specify trap while creating trap session like
> "host:port" in earlier versions. But in net-snmp.5.5, we seem to be
> getting the following notice:
>
> "Using separate port number is deprecated, Please correct the sink
> specification instead."
How exactly are you specifying the trap destination?
That message is intended to encourage you to use a destination
host of the form "host:port", rather than separate "host" and "port"
parameters.
What confuses me is that you seem to indicate that you are already
using this syntax.
> Does this mean we cannot override the default port of 162 or is there
> another format we should use in the calls to create_trap_session() and
> other calls.
It would be easier to answer, if you told us exactly what you are currently
using. But a call such as
create_trap_session( "localhost:16261", 0, "public",
SNMP_VERSION_1, SNMP_MSG_TRAP);
should work OK.
Dave
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders