‎04-22-2022 11:21 AM
‎04-23-2022 08:52 AM
Network Login %protocol% user %user% logged in MAC %mac% port %port% VLAN(s) \"%vlan%\" policy \"%policy%\", authentication %auth%create log filter name clientAuthFilterconfigure log filter clientAuthFilter add events nl.ClientAuthenticatedcreate log target upm clientAuthUPMconfigure log target upm clientAuthUPM filter filter-name clientAuthFilterenable log target upm clientAuthUPMcreate upm profile clientAuthUPM#********************************# Last Updated: April 2022# Version: 1.0# Person: Martin Flammia# Requirements: Policy / Netlogin#********************************# @MetaDataStart# @ScriptDescription It is looking for specific AV policy names, if there is a match on any, it will disable multicast limiting, otherwise it will enable it# @ScriptDescription It is looking for specific Voice policy, if there is a match, it will configure LLDP MED details# @VariableFieldLabel "nl.authentication protocol string"set var protocol $(EVENT.LOG_PARAM_0)# @VariableFieldLabel "nl.authentication user string"set var user $(EVENT.LOG_PARAM_1)# @VariableFieldLabel "nl.authentication mac MAC"set var mac $(EVENT.LOG_PARAM_2)# @VariableFieldLabel "nl.authentication port slot/port"set var port $(EVENT.LOG_PARAM_3)# @VariableFieldLabel "nl.authentication vlan VLAN"set var vlan $(EVENT.LOG_PARAM_4)# @VariableFieldLabel "nl.authentication auth string"set var string $(EVENT.LOG_PARAM_5)# @VariableFieldLabel "nl.authentication policy string"set var policy $(EVENT.LOG_PARAM_5)# @MetaDataEnd#configure cli mode persistentif (!$match($policy,AV-Policy1)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) thencreate log entry "AV Policy $policy is being applied so disabling multicast"config port $port rate-limit flood multicast no-limitelsecreate log entry "Policy $policy is being applied so enabling multicast"config port $port rate-limit flood multicast 300endifif (!$match($policy,Voice-Policy)) thencreate log entry "LLDP config for phone being added"configure lldp port $port advertise vendor-specific med capabilitiesconfigure lldp port $port advertise vendor-specific dot1 vlan-name vlan $vlanconfigure lldp port $port advertise vendor-specific med policy application voice vlan $vlan dscp 46configure lldp port $port advertise vendor-specific med power-via-mdiendif‎04-23-2022 08:40 AM