cancel
Showing results for 
Search instead for 
Did you mean: 

UPM Help

UPM Help

Mark_Bayliss
New Contributor
Hi,



Trying to configure a UPM profile for multiple devices based on device_detect. However not having much luck. Example below:

IF ($MATCH($(EVENT.NAME) , DEVICE-DETECT) ==0 ) then
IF ($MATCH ($(EVENT.DEVICE_MODEL) , AP8132) == 0) then
Configure vlan vl-wifi-cntrl add port $EVENT.USER_PORT
Configure vlan vl-wifi-01 add port $EVENT.USER_PORT tagged

If you EVENT.DEVICE_MODEL is AP8131 how do we also include other models as well? AP6511 and AP8131 for example?

Thanks in advance.

Mark



1 REPLY 1

Rex
Extreme Employee
This is what I have tested before. Different model of AP add to different VLAN.



if (!$match($EVENT.NAME,DEVICE-DETECT)) then

if (!$match($EVENT.DEVICE_MODEL,AP4511)) then

create log entry "ADD port $(EVENT.USER_PORT) to VLAN AP4511_1"

configure AP4511_1 add port $EVENT.USER_PORT

endif

if (!$match($EVENT.DEVICE_MODEL,AP4532)) then

create log entry "ADD port $(EVENT.USER_PORT) to VLAN AP4532_1"

configure AP4532_1 add port $EVENT.USER_PORT

endif

endif

if (!$match($EVENT.NAME,DEVICE-UNDETECT)) then

create log entry "AP is moved from port $(EVENT.USER_PORT)."

set var cli.out 0

show port $EVENT.USER_PORT information detail

set var baselist $tcl(split ${cli.out} "\n")

set var indexvalue $tcl(lsearch -glob $baselist *Name*)

set var vname $tcl(lindex $baselist $indexvalue)

set var vname $tcl(split $vname " ")

set var vname $tcl(lindex $vname 2)

set var vname $tcl(string range $vname 0 end-1)

config vlan $vname del port $EVENT.USER_PORT

endif



GTM-P2G8KFN