On 12/03/2008, Nagaraju Surulivel wrote:
> But i want to set a soruce & destination port number as 161. I set the
> destionation number using trap2sink xx.xx.xx.xx:161 public

Why do you want to send SNMP traps to the standard port for
information requests? (GET/SET/etc). That would normally have
an SNMP agent running on it, which wouldn't be geared up
for processing traps as well.
The normal port for traps is 162

But choice of port apart, that directive should have worked.

> The receiving port is always 3072.

The receiving (destination) port, or the sending (source) port?

The destination port can be set using the trap2sink directive,
just as you've tried.
The source port is chosen at random, and doesn't need to
be set explicitly. The value of this port is not important.
Don't worry about it.


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Net-snmp-users mailing list
Please see the following page to unsubscribe or change other options: