create upm profile disable_port_elrp
disable port $EVENT.LOG_PARAM_7
create log target upm disable_port_elrp
create log filter f1
configure log filter f1 add event ELRP.Report.Message match string “LOOP”
enable log target upm “disable_port_elrp”
configure log target upm “disable_port_elrp” filter f1
Two log messages will be logged when the loop is detected on ports 1 and 24 and ELRP is enabled both. This triggers the disable_port_elrp profile twice, and ports 1 and 24 should be disabled.
> show log 01/17/2008 08:08:05.49 <Info:vlan.dbg.info> Port 24 link down 01/17/2008 08:08:05.22 <Noti:UPM.Msg.upmMsgExshLaunch> Launched profile disable_port_elrp for the event log-message 01/17/2008 08:08:04.69 <Info:vlan.dbg.info> Port 1 link down 01/17/2008 08:08:04.46 <Noti:UPM.Msg.upmMsgExshLaunch> Launched profile disable_port_elrp for the event log-message 01/17/2008 08:08:04.46 <Warn:ELRP.Report.Message> [CLI:ksu:1] LOOP DETECTED : 436309 transmited, 64 received, ingress slot:port (1) egress slot:port (24) 01/17/2008 08:08:04.46 <Warn:ELRP.Report.Message> [CLI:ksu:1] LOOP DETECTED : 436309 transmited, 63 received, ingress slot:port (24) egress slot:port (1) 01/17/2008 08:08:03.50 <Info:vlan.dbg.info> Port 24 link up at 1 Gbps speed and full-duplex
If you want to see the more details, enter the show upm history details command to see all the profiles or display information on a specific event by entering the exec-id.