Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 33
Part no.9036931-00 Rev AA February 2021
sw1.30 # sh upm history
---------------------------------------------------------------------------------
Exec Event/ Profile Port Status Time Launched
Id Timer/ Log filter
---------------------------------------------------------------------------------
2 Log-Message(Port_Up_ Up_Down_Profile --- Pass 2020-06-07 11:03:51
1 Log-Message(Port_Up_ Up_Down_Profile --- Pass 2020-06-07 11:03:44
---------------------------------------------------------------------------------
Number of UPM Events in Queue for execution: 0
sw1.31 #
sw1.31 # sh upm history exec-id 2
UPM Profile: Up_Down_Profile
Event: Log-Message(Port_Up_Down)
Profile Execution start time: 2020-06-07 11:03:51
Profile Execution Finish time: 2020-06-07 11:03:51
Execution Identifier: 2 Execution Status: Pass
Execution Information:
3 # enable cli scripting
4 # configure cli mode non-persistent
5 # set var EVENT.NAME LOG_MESSAGE
6 # set var EVENT.LOG_FILTER_NAME "Port_Up_Down"
7 # set var EVENT.LOG_DATE "06/07/2020"
8 # set var EVENT.LOG_TIME "11:03:51.38"
9 # set var EVENT.LOG_COMPONENT_SUBCOMPONENT "vlan.msgs"
10 # set var EVENT.LOG_EVENT "portLinkStateUp"
11 # set var EVENT.LOG_SEVERITY "Info"
12 # set var EVENT.LOG_MESSAGE "Port %0% link UP at speed %1% and %2%"
13 # set var EVENT.LOG_PARAM_0 "1"
14 # set var EVENT.LOG_PARAM_1 "100 Mbps"
15 # set var EVENT.LOG_PARAM_2 "full-duplex"
16 # set var EVENT.LOG_PARAM_3 "1"
17 # set var EVENT.PROFILE Up_Down_Profile
19 # enable cli scripting
21 # IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,vlan.msgs) &&
!$MATCH($EVENT.LOG_EVENT,portLinkStateDown)) THEN
22 # run script upm_port.py $EVENT.LOG_PARAM_0 down
23 # ENDIF
25 # IF (!$MATCH($EVENT.LOG_COMPONENT_SUBCOMPONENT,vlan.msgs) &&
!$MATCH($EVENT.LOG_EVENT,portLinkStateUp)) THEN
26 # run script upm_port.py $EVENT.LOG_PARAM_0 up
27 # ENDIF
Number of UPM Events in Queue for execution: 0
The VLAN is created:
sw1.29 # sh vlan
Untagged ports auto-move: Inform
-------------------------------------------------------------------------------------
Name VID Protocol Addr Flags Proto Ports Virtual
Active router
/Total
--------------------------------------------------------------------------------------