Need help with snmptrapd command
Hemanth Kumar <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJx9mc4WrR4TAP_SRtEUPpVki0cKqGhquUKpsgYKMizEr=Wm_A@mail.gmail.com> |
HI, I am trying to figure out a way by which I can send following trap command without adding/mentioning the port number. The receiver is receiving the trap when the custom port number is mentioned snmptrap -v 2c -c rscommunity <DEST-IP-ADDRESS>:166 "" TRAP-TEST-MIB::demotraps SNMPv2-MIB::sysLocation.0 s "some message" By default, the following command does not require the port number to be mentioned when the snmptrapd is using the default port-161. snmptrap -v 2c -c rscommunity <DEST-IP-ADDRESS> "" TRAP-TEST-MIB::demotraps SNMPv2-MIB::sysLocation.0 s "some message" Additional info: firewall opened for the above mentioned custom port SELINUX /etc/sysconfig/selinux has the following edit "SELINUX=disabled" (essentially SELINUX is off) So far, I have been following the http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html to understand/test Test Bed 2xservers with NET-SNMP version: 5.7.2 on CentOS 7.2 Thanks in advance -Hemanth ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ 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