On 28 September 2011 07:56, Vivek Nagaraj <nagaraj.vi...@gmail.com> wrote:
> I am building an application which sends SNMP trap which executes
> 'snmptrap' command.

> Is there anyway that I can make it send to custom port other than
> 162???

    $ man snmpcmd

    AGENT SPECIFICATION
           <transport-specifier>       <transport-address> format
           udp                         hostname[:port] or IPv4-address[:port]

Note the ':port' element.
So if you specify a trap destination of    someHost:99162
the trap will be sent to that port, instead of the default 162

Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to