cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2554
Views
0
Helpful
1
Replies

How cat6500 IOS 12.2SX can generate syslog mess or SNMP trap when TCN rcvd

loudo
Level 1
Level 1

Hello,

I would like to know if there is anyway to configure a cat6500 in native IOS 12.SX (12.2.17SXb1) to generate syslog message or SNMP trap when a spanning-tree Topology Change Notification is received.

-

The current way we use to check it is manually via:

- CLI command " sh spanning vlan X det" outputs

- snmget OID dot1dStp.3.0 (for vlan1)

--

Better way should be to receive automatically a snmp trap or syslog message when TCN is received.

--

I have configured rmon alarm and event in order to generate snmp trap:

"

rmon event 1 log trap public description TCN owner ludo

rmon alarm 1 dot1dStp.3.0 5 absolute rising-threshold 1000 1 falling-threshold 5000 1 owner ludo

"

I can see that rmon even is fired when TCN is received:

"

CAT4#sh rmon alarms

Alarm 1 is active, owned by ludo

Monitors dot1dStp.3.0 every 5 second(s)

Taking absolute samples, last value was 159800

Rising threshold is 1000, assigned to event 1

Falling threshold is 5000, assigned to event 1

On startup enable rising or falling alarm

CAT4#sh rmon ev

CAT4#sh rmon events

Event 1 is active, owned by ludo

Description is TCN

Event firing causes log and trap to community public,

last event fired at 0y3w3d,02:30:34,

Current uptime 0y3w3d,02:57:02

Current log entries:

index uptime description

1 0y3w3d,02:26:38 TCN

2 0y3w3d,02:26:49 TCN

3 0y3w3d,02:28:29 TCN

4 0y3w3d,02:28:39 TCN

5 0y3w3d,02:30:24 TCN

6 0y3w3d,02:30:34 TCN

CAT4#

"

--

But it seems that SNMP trap is still not generated even if needed SNMP configuration is present:

"

snmp-server community public RO

snmp-server enable traps bridge

snmp-server host 9.x.x.152 public

"

No snmp traps seen in sniffer traces taken on snmp trap receiver side.

Could anyone help me to find out a solution that works?

Thanks. Regards/Ludovic.

1 Reply 1

smalkeric
Level 6
Level 6

You dont have to explicitly consfigure SNMP traps for Spanning Tree Notifications. When you enable the SNMP traps using the command "snmp-server enable traps" all the SNMP traps get enabled automatically including the SNMP trap for Spanning Tree notifications.