cancel
Showing results for 
Search instead for 
Did you mean: 

UPM Sample Config

UPM Sample Config

Faz_1l_Kartal
New Contributor
Hi

I will configure to UPM profile. for example, When the switch received the mac address 00??cc:11:22:33 from the port 12 , and then the UPM profile run "disable port 11" command. When the switch loss the mac address from the port 12, and then the UPM profile run "enable port 11" command.

Best Regards,
3 REPLIES 3

Faz_1l_Kartal
New Contributor
Hello Stephen,

I wrote below config. Can you check it please?

* X440G2-12p-10G4.55 # sh configuration upm
#
# Module upm configuration.
#
create upm profile macMove
enable cli scripting
IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,FDB) && !$MATCH($EVENT.LOG_EVENT,MACAdd)) THEN
IF (!$MATCH($EVENT.LOG_PARAM_2,12)) THEN
disable port 11
ENDIF
ELSE
IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,FDB) && !$MATCH($EVENT.LOG_EVENT,MACDel)) THEN
IF (!$MATCH($EVENT.LOG_PARAM_2,12)) THEN
enable port 11
ENDIF
ENDIF
ENDIF

.
* X440G2-12p-10G4.56 #

* X440G2-12p-10G4.56 # show configuration ems
#
# Module ems configuration.
#
enable log debug-mode
create log filter macMoveFilter
configure log filter macMoveFilter add events FDB.MACAdd match mac-address "00:04:96:A1:45:53"
configure log filter macMoveFilter add events FDB.MACAdd match port "12"
configure log filter macMoveFilter add events FDB.MACDel match mac-address "00:04:96:A1:45:53"
create log target upm macMove
enable log target upm macMove
configure log target upm macMove filter macMoveFilter severity Debug-Summary
* X440G2-12p-10G4.57 #


Best Regards,

Faz_1l_Kartal
New Contributor
Hello Stephen,

I did not write dynamic UPM profile before.I will trigger UPM, when the mac address from only 12 port to FDB.
Can you send me full config for this issue please?

Best regards,

Fazil

StephenW
Extreme Employee
You can trigger UPM scripts to run based on log messages. The below script might help.

https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/CLI_Scripting/poeupmdisable/poe_upm.xsf

You can add FDB add and Del messages to the log with the below commands.

code:
configure log filter  add events FDB.MACAdd match mac-address "00:04:96:42:21:A6"
configure log filter add events FDB.MACDel match mac-address "00:04:96:42:21:A6"
enable log debug-mode
GTM-P2G8KFN