12-23-2018 12:11 PM
12-24-2018 09:11 AM
create upm profile MyUPMProfile
enable cli scripting
IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,vlan.msgs) && !$MATCH($EVENT.LOG_EVENT,portLinkStateDown)) THEN
IF (!$MATCH($EVENT.LOG_PARAM_0,25)) THEN
config vlan VLANNAME del port 25
config vlan VLANNAME add port 29 tag
ENDIF
ELSE
IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,vlan.msgs) && !$MATCH($EVENT.LOG_EVENT,portLinkStateUp)) THEN
IF (!$MATCH($EVENT.LOG_PARAM_0,25)) THEN
config vlan VLANNAME del port 29
config vlan VLANNAME add port 25 tag
ENDIF
ENDIF
ENDIF
.
create log filter MyLogFilter
configure log filter MyLogFilter add event vlan.msgs.portLinkStateDown
configure log filter MyLogFilter add event vlan.msgs.portLinkStateUp
create log target upm MyUPMProfile
enable log target upm MyUPMProfile
config log target upm MyUPMProfile filter MyLogFilter severity Info