<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What does this script most likely do? in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41504#M5240</link>
    <description>Hello, everybody!&lt;BR /&gt;
&lt;BR /&gt;
I have a script on all my switches:&lt;BR /&gt;
&lt;BR /&gt;
create upm profile blackhole1set var portb 0&lt;BR /&gt;
set var portb $TCL(string range ${EVENT.LOG_PARAM_0} 36 39)&lt;BR /&gt;
disable port $portb&lt;BR /&gt;
create log entry "Port $portb blocked by UPM"&lt;BR /&gt;
delete var portb&lt;BR /&gt;
&lt;BR /&gt;
Do you have any idea what could it do? Blocks a port? For what reason?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance,&lt;BR /&gt;
&lt;BR /&gt;
Ilya&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Mar 2017 17:47:00 GMT</pubDate>
    <dc:creator>Ilya_Semenov</dc:creator>
    <dc:date>2017-03-30T17:47:00Z</dc:date>
    <item>
      <title>What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41504#M5240</link>
      <description>Hello, everybody!&lt;BR /&gt;
&lt;BR /&gt;
I have a script on all my switches:&lt;BR /&gt;
&lt;BR /&gt;
create upm profile blackhole1set var portb 0&lt;BR /&gt;
set var portb $TCL(string range ${EVENT.LOG_PARAM_0} 36 39)&lt;BR /&gt;
disable port $portb&lt;BR /&gt;
create log entry "Port $portb blocked by UPM"&lt;BR /&gt;
delete var portb&lt;BR /&gt;
&lt;BR /&gt;
Do you have any idea what could it do? Blocks a port? For what reason?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance,&lt;BR /&gt;
&lt;BR /&gt;
Ilya&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:47:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41504#M5240</guid>
      <dc:creator>Ilya_Semenov</dc:creator>
      <dc:date>2017-03-30T17:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41505#M5241</link>
      <description>show us,&lt;BR /&gt;
sh configuration upm&lt;BR /&gt;
 maybe there is something more?&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41505#M5241</guid>
      <dc:creator>Michal_Rz</dc:creator>
      <dc:date>2017-03-30T17:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41506#M5242</link>
      <description>Please, take a look at the output:&lt;BR /&gt;
&lt;BR /&gt;
 Slot-1 sw-514-1.6 # sh conf upm#&lt;BR /&gt;
# Module upm configuration.&lt;BR /&gt;
#&lt;BR /&gt;
create upm profile blackhole1&lt;BR /&gt;
set var portb 0&lt;BR /&gt;
set var portb $TCL(string range ${EVENT.LOG_PARAM_0} 36 39)&lt;BR /&gt;
disable port $portb&lt;BR /&gt;
create log entry "Port $portb blocked by UPM"&lt;BR /&gt;
delete var po&lt;BR /&gt;
.&lt;BR /&gt;
create upm profile mac_move&lt;BR /&gt;
set var portb1 0&lt;BR /&gt;
set var portb2 0&lt;BR /&gt;
set var mac 0&lt;BR /&gt;
set var portb1 $EVENT.LOG_PARAM_2&lt;BR /&gt;
set var portb2 $EVENT.LOG_PARAM_3&lt;BR /&gt;
set var mac $EVENT.LOG_PARAM_0&lt;BR /&gt;
disable port $portb1&lt;BR /&gt;
disable port $portb2&lt;BR /&gt;
create log entry "Port $portb1 and $portb2 was disabled by UPM sript (mac_move), flapping MAC is $mac "&lt;BR /&gt;
delete var portb1&lt;BR /&gt;
delete var portb2&lt;BR /&gt;
delete var&lt;BR /&gt;
.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41506#M5242</guid>
      <dc:creator>Ilya_Semenov</dc:creator>
      <dc:date>2017-03-30T17:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41507#M5243</link>
      <description>It blocks a port. The port number is delivered through a TCL script out of an event log entry. What is missing is the trigger for the script which regularly is an event filter. &lt;BR /&gt;
Before we added the feature in ELRP to disable a port once a loop is detected, we could just create log entries that a loop is detected. Hence there were a lot of customers who triggered a script by this log entry and disabled the port. Just an idea.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:02:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41507#M5243</guid>
      <dc:creator>AnonymousM</dc:creator>
      <dc:date>2017-03-30T19:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41508#M5244</link>
      <description>Yes, this script is to disable a port. &lt;BR /&gt;
&lt;BR /&gt;
As Hagemann already mentioned, there should be a configuration under "ems" section that will triger this UPM profile.&lt;BR /&gt;
&lt;BR /&gt;
If you could provide ems configuration, then we could know the reason.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;"set var portb $TCL(string range ${EVENT.LOG_PARAM_0} 36 39)"&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
With above line, the port number to block (disable) would be extracted from the log message, and then, the port is disabled by &lt;I&gt;"disable port $portb"&lt;/I&gt; line.&lt;BR /&gt;
&lt;BR /&gt;
Lastly, this UPM generates system log message as a result of above behavior by:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;"create log entry "Port $portb blocked by UPM"&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
If this UPM is executed successfully, then there should be log message in the switch with string "Port  blocked by UPM".&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:30:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41508#M5244</guid>
      <dc:creator>David_Choi</dc:creator>
      <dc:date>2017-03-31T10:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41509#M5245</link>
      <description>Hello, David,&lt;BR /&gt;
&lt;BR /&gt;
please, take a look at the output:&lt;BR /&gt;
&lt;BR /&gt;
* Slot-1 sw-514-1.6 # sh conf "ems"&lt;BR /&gt;
#&lt;BR /&gt;
# Module ems configuration.&lt;BR /&gt;
#&lt;BR /&gt;
create log filter blackhole&lt;BR /&gt;
create log filter cfg_save&lt;BR /&gt;
create log filter mac_move&lt;BR /&gt;
configure log filter DefaultFilter add events All severity warning&lt;BR /&gt;
configure log filter DefaultFilter add events FDB.FdbNotice&lt;BR /&gt;
configure log filter DefaultFilter add events Kern.Info&lt;BR /&gt;
configure log filter DefaultFilter add events FDB.MACTracking.MACMove&lt;BR /&gt;
configure log filter DefaultFilter add exclude events FDB.FdbNotice match string "Failed to flush FDB for VPIF"&lt;BR /&gt;
configure log filter DefaultFilter add exclude events vlan.ack.warn match string "No ack returned"&lt;BR /&gt;
configure log filter DefaultFilter add exclude events vlan.msgs.portLinkStateDown&lt;BR /&gt;
configure log filter DefaultFilter add exclude events vlan.msgs.portLinkStateUp&lt;BR /&gt;
configure log filter DefaultFilter add exclude events HAL.IPv4Adj.Warning match string "# L3 hash table entries already 0."&lt;BR /&gt;
configure log filter blackhole add events FDB.FdbNotice match string "blackholed"&lt;BR /&gt;
configure log filter cfg_save add events cli.logRemoteCmd match string "save"&lt;BR /&gt;
configure log filter mac_move add events FDB.MACTracking.MACMove&lt;BR /&gt;
enable log target console&lt;BR /&gt;
configure syslog add 192.168.251.1:514 vr VR-Default local7&lt;BR /&gt;
enable log target syslog 192.168.251.1:514 vr VR-Default local7&lt;BR /&gt;
configure log target syslog 192.168.251.1:514 vr VR-Default local7 filter DefaultFilter severity Info&lt;BR /&gt;
configure log target syslog 192.168.251.1:514 vr VR-Default local7 match Any&lt;BR /&gt;
configure log target syslog 192.168.251.1:514 vr VR-Default local7 format timestamp hundredths date dd-mm-yyyy event-name none host-name&lt;BR /&gt;
create log target upm blackhole1&lt;BR /&gt;
enable log target upm blackhole1&lt;BR /&gt;
configure log target upm blackhole1 filter blackhole severity Notice only&lt;BR /&gt;
create log target upm tftp-save&lt;BR /&gt;
enable log target upm tftp-save&lt;BR /&gt;
configure log target upm tftp-save filter cfg_save severity Info&lt;BR /&gt;
create log target upm mac_move&lt;BR /&gt;
enable log target upm mac_move&lt;BR /&gt;
configure log target upm mac_move filter mac_move severity Notice only&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:30:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41509#M5245</guid>
      <dc:creator>Ilya_Semenov</dc:creator>
      <dc:date>2017-03-31T10:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: What does this script most likely do?</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41510#M5246</link>
      <description>Hi Ilya, &lt;BR /&gt;
&lt;BR /&gt;
When I look at the "ems" configuration you pasted here and above UPM configuration you replied to Michal post, it looks like there are two UPM profiles in the switch. The "blackhole1" is UPM profile for FDB blackhole and the "mac_move" is UPM profile for MAC-tracking.&lt;BR /&gt;
&lt;BR /&gt;
For the "blackhole1" UPM profile, I assume there may be a configuration related with FDB blackhole feature in the switch (e.g. making blackhole MAC addresses when exceeding MAC-limit configured). So if there is those kind of event related FDB blackhole so that "&lt;I&gt;FDB.FdbNotice&lt;/I&gt;" log with string "blackholed" is logged, then the "blackhole1" UPM is triggered and executed. The action of this UPM profile is "disabling the port" as I told already.&lt;BR /&gt;
&lt;BR /&gt;
For the "mac_move" UPM profile, when mac movement is detected by the "MAC tracking" feature in EXOS, then "&lt;I&gt;FDB.MACTracking.MACMove&lt;/I&gt;" system log will be logged with port number where the MAC move is detected. Then, the "mac_move" UPM will be executed and follow the actions specified in the UPM profile (disable port 1, port 2 and generate log message).&lt;BR /&gt;
&lt;BR /&gt;
Following is sample log of MACMove:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;FDB.MACTRACKING.MACMOVE&gt; MM-A: The MAC address &lt;MAC&gt; on VLAN "PC_125" has moved from port 6:1 to port 1:38 &lt;/MAC&gt;&lt;/FDB.MACTRACKING.MACMOVE&gt;&lt;/I&gt;</description>
      <pubDate>Fri, 31 Mar 2017 10:30:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/what-does-this-script-most-likely-do/m-p/41510#M5246</guid>
      <dc:creator>David_Choi</dc:creator>
      <dc:date>2017-03-31T10:30:00Z</dc:date>
    </item>
  </channel>
</rss>

