cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1212
Views
0
Helpful
6
Replies

Unable to configure more than one snmp trap receiver with same snmp community string in AireOS WLC

jegan_rajappa
Level 1
Level 1

Unable to configure more than one snmp trap receiver with same snmp community string in AireOS WLC.

 

AireOS WLC

(Cisco Controller) >config snmp trapreceiver create ABCDEFGH 10.10.10.11

SNMP Trap Receiver added!

(Cisco Controller) >config snmp trapreceiver mode enable ABCDEFGH

(Cisco Controller) >config snmp trapreceiver create ABCDEFGH 10.20.20.11
SNMP trap receiver already exists!

(Cisco Controller) >

 

In IOS and IOSXE devices I am able to add multiple trap receiver with same community, but couldn't do the same in AireOS WLC, can someone advise if there is any way to do it in AireOS WLC?

 

IOS and IOSXE Devices

snmp-server host 10.10.10.11 version 2c ABCDEFGH

snmp-server host 10.20.20.11 version 2c ABCDEFGH

6 Replies 6

Scott Fella
Hall of Fame
Hall of Fame
There are some old post in the forums, but still relevant. Folks have used Prime templates to do what you want to accomplish.

https://community.cisco.com/t5/wireless/can-a-wlc-have-multiple-snmp-trap-receivers-with-the-same/m-p/2299590
-Scott
*** Please rate helpful posts ***

Hi Scott, I have reviewed that link.
Just tried configuring second Trap Receiver Template with same name and it throws error.

 

2021-06-17_9-15-34.png

From the link within the link, keep this in mind,

Community Name means SNMP trap receiver name & that does not have any significance like snmp community value.

You create your snmp community string but you need to provide the IP address or range that is allowed access for this string. If you have multiple subnets including the one Prime is in, you define the ip and mask as 0.0.0.0 and 0.0.0.0.
The template or the GUI/CLI is just the name for the trap receiver not the snmp string.
Hope that helps.
-Scott
*** Please rate helpful posts ***

I reviewed both the link Scott.

I did capture to see the payload, please see below which was sent by Cisco AireOS WLC and Cisco 2960 switch. whatever I configure as Community name or SNMP Trap Receiver in AireOS WLC is community string, switch has the config which I mentioned in top of this post. 

 

Cisco AireOS WLC
14:08:03.352489 IP wlc.lab.local.55144 > snmp.lab.local.snmptrap: C="ABCDEFGH" V2Trap(181) system.sysUpTime.0=1237384900 S:1.1.4.1.0=E:14179.2.6.3.41 E:14179.2.1.7.1.1.0=9e_30_5b_ca_29_d0 E:14179.2.1.8.1.1.0=c4_14_3c_7a_a5_b0 E:14179.2.1.8.1.2.0=0 E:14179.2.1.8.1.3.0=6 E:14179.2.1.8.1.4.0="1602-F1"

 

Cisco IOS Switch
13:53:41.614944 IP switch.lab.local.60623 > snmp.lab.local: C="ABCDEFGH" V2Trap(129)

I don't know then, for me, I allow the snmp community to be set to 0.0.0.0 0.0.0.0 and then define the trap receiver for all the nodes I want the trap s to go to.  In the trap receiver, the name is either the ip or the hostname of the trap receiver.  If it doesn't work for you, then I would suggest to open a tac case.

-Scott
*** Please rate helpful posts ***

jegan_rajappa
Level 1
Level 1

I also did packet capture and found that community name or snmp trap receiver name (aireOS terms) is nothing but community value, verified in the payload. If I push two different template from prime, it is going to have different community name or snmp trap receiver name, but my requirement is to have same community name or snmp trap receiver name for multiple IPs

Review Cisco Networking for a $25 gift card