On 31/03/2008, Umesh Kamath <[EMAIL PROTECTED]> wrote: > I am able to generate Traps messages by specifying the port number 162 > in command as below. > > snmptrap -v 1 -c public localhost:162 "" "" 2 0 "" > > > Why we need to mention port number 162 ?, By default it should bind to port > 162.
Which version of the "snmptrap" command are you using? ("snmptrap -V") There was a problem with the default trap port on some versions, but I thought this had been fixed on all current releases. > I have verified my config files to check whether i have mentioned default > port number other then 162, i found one entry in snmp.conf file. In that i > have mentioned default port number 161 and i did it because by assuming > this config file ment for agent hence i have given default port number 161 . Port 161 is the standard port for SNMP *requests* (GET, GETNEXT, SET). Port 162 is the standard port for SNMP *notifications* (TRAP, INFORM) Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users