Configuring Universal Port Example

The following procedure configures Universal Port to disable the egress port identified by parameter 7:
  1. Create the profile and add the command to disable the egress port as follows:
    create upm profile disable_port_elrp
    disable port $EVENT.LOG_PARAM_7
  2. Verify that the profile is created and enabled by entering the following command:
    show upm profile
  3. Create the EMS configuration by entering the following commands:
    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
  4. At this point, connect the ports 1 and 24 to form a loop.
    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.
  5. View the log.
    > 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
    
  6. To view the profile execution history, enter the show upm history command.

    f 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.

  7. To view the configuration, use the show config upm and show config ems commands.