Yes, we are using UPM profile device-detect to detect the phones when they are plugged in. Here is the script
************Profile Contents Begin************
#@Description Voice VLAN name
set var voicevlan XXXX
if (!$match($EVENT.NAME,DEVICE-DETECT)) then
create log entry ***Starting_LLDP_Config***
endif
#Link Layer Discovery Protocol-Media Endpoint Discover
create log entry ***Config_LLDP_Parameters***
configure lldp port $EVENT.USER_PORT advertise vendor-specific med capabilities
configure lldp port $EVENT.USER_PORT advertise vendor-specific dot1 vlan-name vlan $voicevlan
configure lldp port $EVENT.USER_PORT advertise vendor-specific med policy application voice vlan $voicevlan dscp 46
create log entry ***Config_LLDP_Parameters_Complete***
create log entry ***End_LLDP_Generic_Config***
************Profile Contents Ends*************
Profile State: Enabled
Profile Maximum Execution Time: 30
Events and ports configured on the profile:
===========================================================
Event Port list/Log filter
===========================================================
device-detect : 7:9-48, 8:9-24, 8:26-48, 9:1-48, 10:33-34, 10:41
device-undetect :
user-authenticated :
user-unauthenticated :
identity-detect :
identity-undetect :
identity-role-associate :
identity-role-dissociate :
===========================================================
Here is a snippet of the log
04/27/2017 12:31:06.78 MSM-A: ***End_LLDP_Generic_Config***
04/27/2017 12:31:06.77 MSM-A: ***Config_LLDP_Parameters_Complete***
04/27/2017 12:31:06.74 MSM-A: ***Config_LLDP_Parameters***
04/27/2017 12:31:06.73 MSM-A: ***Starting_LLDP_Config***
04/27/2017 12:31:06.60 MSM-A: Launched profile detect-voip-xxxx for the event device-detect
04/27/2017 12:31:06.60 MSM-A: LLDP Device detected. Mac is 58:82:A8:9C:06:23, IP is 0.0.0.0, on port 8:39, device type is 0, max power is 0