Page 1 of 1

SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 10:02 am
by nathanplatt
Hi Everyone,

I'm trying to configure my 2930F to send logs to NLS, at the moment all the devices are on the same network and not blocked by any firewalls etc... but NLS isn't recieving anything.

I've screenshot the Aruba config... any ideas?

Re: SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 10:44 am
by cdienger
What's the input(https://www.elastic.co/guide/en/logstas ... ptrap.html) look like on the NLS side? Is port 162 open on the NLS side(netstat -na | grep 162)? Do you see the traps coming in on NLS(yum -y install tcpdump; tcpdump -i any port 162)? Port 162 is considered a privledged port and would need additional configuration to be opened(https://assets.nagios.com/downloads/nag ... Server.pdf).

Re: SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 12:14 pm
by nathanplatt
I've changed the logstat to root but still not recieving anything

Re: SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 12:31 pm
by cdienger
What does the input config look like?

Is port 162 open?

Do you see any incoming traffic on port 162?

Re: SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 12:49 pm
by nathanplatt
Where do i find that?

Re: SNMP Traps HP Aruba Switches

Posted: Fri Jul 20, 2018 1:03 pm
by cdienger
An snmptrap input needs to be created under Configure > Global > Global Config > Inputs, before NLS will be able to accept traps.

Re: SNMP Traps HP Aruba Switches

Posted: Tue Jul 24, 2018 8:52 am
by nathanplatt
What would i have to put in their? Also i've noticed someone trying to access it from another IP, is there a way to tell NLS to only accept commands from certain IP's?

Re: SNMP Traps HP Aruba Switches

Posted: Tue Jul 24, 2018 4:28 pm
by cdienger
To have it listen on port 162 for incoming traps:

snmptrap {
port => '162'
}


Other config options are covered in https://www.elastic.co/guide/en/logstas ... ptrap-port.

You can restrict access to the machine from others using iptables. iptables is outside the scope of NLS but there is a ton of information on the web regarding it - https://www.linode.com/docs/security/fi ... -iptables/ is a nice into to it.

Re: SNMP Traps HP Aruba Switches

Posted: Wed Jul 25, 2018 3:58 am
by nathanplatt
Worked perfectly! All resolved now