UPM Help

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered

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

 

Photo of Mark Bayliss

Mark Bayliss

  • 100 Points 100 badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of Rex

Rex, Employee

  • 100 Points 100 badge 2x thumb

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