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 clientAuthFilter
configure log filter clientAuthFilter add events nl.ClientAuthenticated
create log target upm clientAuthUPM
configure log target upm clientAuthUPM filter filter-name clientAuthFilter
enable log target upm clientAuthUPM
create 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 persistent
if (!$match($policy,AV-Policy1)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) || (!$match($policy,AV-Policy2)) then
create log entry "AV Policy $policy is being applied so disabling multicast"
config port $port rate-limit flood multicast no-limit
else
create log entry "Policy $policy is being applied so enabling multicast"
config port $port rate-limit flood multicast 300
endif
if (!$match($policy,Voice-Policy)) then
create log entry "LLDP config for phone being added"
configure lldp port $port advertise vendor-specific med capabilities
configure lldp port $port advertise vendor-specific dot1 vlan-name vlan $vlan
configure lldp port $port advertise vendor-specific med policy application voice vlan $vlan dscp 46
configure lldp port $port advertise vendor-specific med power-via-mdi
endif
04-23-2022 08:40 AM