Re: How to i configure default port from 162 to some other port

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGbhWMS3R17ZG4yjVmWzY8Vc1RtwbkZDK7GG5yHSuF+sow@mail.gmail.com>
On 4 January 2013 03:05, Ashish Sharma <[email protected]> wrote:
> How do i configure snmptrap command to send trap to someother port like
> (3211) instead of default port 162.
>
> I am trying with this command but it is not taking.
>
> snmptrap -v 1 -c  -h 10.1.100.22:1622 "" "" 1 0  ""

That's basically the right idea.
Though did you really mean to specify the community string "-h" ?

And this command is sending a trap to port 1622, rather than 3211

A more typical command would be something like

   snmptrap  -v 1 -c public   10.1.100.22:3211  ''  ''  1  -  ''

Dave

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.