<?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 EXOS: UPM Script - port number in log message in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52924#M14760</link>
    <description>Today i play around with a UPM Script which refresh nodealias table after a port link down.&lt;BR /&gt;
#&lt;BR /&gt;
# Module upm configuration.&lt;BR /&gt;
#&lt;BR /&gt;
create upm profile clear-nodealias&lt;BR /&gt;
create log message Starting_Script_clear-nodealias&lt;BR /&gt;
clear nodealias port $EVENT.LOG_PARAM_0&lt;BR /&gt;
create log message Finishing_Script_clear-nodealias&lt;BR /&gt;
&lt;BR /&gt;
.&lt;BR /&gt;
#Here is the log output if the script runs successfully:&lt;BR /&gt;
03/12/2018 18:35:43.95 &lt;I&gt; Finishing_Script_clear-nodealias&lt;BR /&gt;
03/12/2018 18:35:43.94 &lt;I&gt; Starting_Script_clear-nodealias&lt;BR /&gt;
03/12/2018 18:35:43.85 &lt;UPM.MSG.UPMMSGEXSHLAUNCH&gt; Launched profile clear-nodealias for the event log-message&lt;BR /&gt;
03/12/2018 18:35:43.85 &lt;I&gt; Port 19 link downI want enhance the log message "Starting_Script_clear-nodealias" by the Port Number which part of nodealias table will be cleared.&lt;BR /&gt;
&lt;BR /&gt;
So i try this:&lt;BR /&gt;
create log message Starting_Script_clear-nodealias on port $EVENT.LOG_PARAM_0But then UPM Scripts runs successful but this line was not written down to log file.&lt;BR /&gt;
&lt;BR /&gt;
How can i achieve my goal ?&lt;BR /&gt;&lt;/I&gt;&lt;/UPM.MSG.UPMMSGEXSHLAUNCH&gt;&lt;/I&gt;&lt;/I&gt;</description>
    <pubDate>Tue, 13 Mar 2018 02:04:00 GMT</pubDate>
    <dc:creator>M_Nees</dc:creator>
    <dc:date>2018-03-13T02:04:00Z</dc:date>
    <item>
      <title>EXOS: UPM Script - port number in log message</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52924#M14760</link>
      <description>Today i play around with a UPM Script which refresh nodealias table after a port link down.&lt;BR /&gt;
#&lt;BR /&gt;
# Module upm configuration.&lt;BR /&gt;
#&lt;BR /&gt;
create upm profile clear-nodealias&lt;BR /&gt;
create log message Starting_Script_clear-nodealias&lt;BR /&gt;
clear nodealias port $EVENT.LOG_PARAM_0&lt;BR /&gt;
create log message Finishing_Script_clear-nodealias&lt;BR /&gt;
&lt;BR /&gt;
.&lt;BR /&gt;
#Here is the log output if the script runs successfully:&lt;BR /&gt;
03/12/2018 18:35:43.95 &lt;I&gt; Finishing_Script_clear-nodealias&lt;BR /&gt;
03/12/2018 18:35:43.94 &lt;I&gt; Starting_Script_clear-nodealias&lt;BR /&gt;
03/12/2018 18:35:43.85 &lt;UPM.MSG.UPMMSGEXSHLAUNCH&gt; Launched profile clear-nodealias for the event log-message&lt;BR /&gt;
03/12/2018 18:35:43.85 &lt;I&gt; Port 19 link downI want enhance the log message "Starting_Script_clear-nodealias" by the Port Number which part of nodealias table will be cleared.&lt;BR /&gt;
&lt;BR /&gt;
So i try this:&lt;BR /&gt;
create log message Starting_Script_clear-nodealias on port $EVENT.LOG_PARAM_0But then UPM Scripts runs successful but this line was not written down to log file.&lt;BR /&gt;
&lt;BR /&gt;
How can i achieve my goal ?&lt;BR /&gt;&lt;/I&gt;&lt;/UPM.MSG.UPMMSGEXSHLAUNCH&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Tue, 13 Mar 2018 02:04:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52924#M14760</guid>
      <dc:creator>M_Nees</dc:creator>
      <dc:date>2018-03-13T02:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS: UPM Script - port number in log message</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52925#M14761</link>
      <description>The spaces in your log message makes the command wrong.&lt;BR /&gt;
* Slot-1 SWTCORE1.2 # create log message test 123&lt;BR /&gt;
                                              ^&lt;BR /&gt;
%% Invalid input detected at '^' marker.&lt;BR /&gt;
* Slot-1 SWTCORE1.3 # create log message "test 123"&lt;BR /&gt;
* Slot-1 SWTCORE1.4 #&lt;BR /&gt;
&lt;BR /&gt;
However, using a variable inside "" does not seem to work.&lt;BR /&gt;
&lt;BR /&gt;
 Slot-1 SWTCORE1.5 # set var port "1:1"&lt;BR /&gt;
* Slot-1 SWTCORE1.6 # show var port&lt;BR /&gt;
1:1                             &lt;BR /&gt;
* Slot-1 SWTCORE1.7 # create log message "test port $port"&lt;BR /&gt;
* Slot-1 SWTCORE1.8 # sh log&lt;BR /&gt;
03/13/2018 10:07:40.37 &lt;I&gt; Slot-1: test port $port&lt;BR /&gt;
&lt;BR /&gt;
Using _ instead of spaces and not use quotes makes it possible to use variables but is a bit ugly.&lt;BR /&gt;
* Slot-1 SWTCORE1.14 # create log message test_port_$port&lt;BR /&gt;
* Slot-1 SWTCORE1.15 # sh log&lt;BR /&gt;
03/13/2018 10:10:35.50 &lt;I&gt; Slot-1: test_port_1:1&lt;BR /&gt;
&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:04:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52925#M14761</guid>
      <dc:creator>OscarK</dc:creator>
      <dc:date>2018-03-13T14:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS: UPM Script - port number in log message</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52926#M14762</link>
      <description>Thanks for that advice - not nice but it works!&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:04:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52926#M14762</guid>
      <dc:creator>M_Nees</dc:creator>
      <dc:date>2018-03-13T14:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS: UPM Script - port number in log message</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52927#M14763</link>
      <description>you have to end your log message with a normal character to have it to work, for example:&lt;BR /&gt;
&lt;BR /&gt;
EXOS-VM.6 # create log message "the port is $ports !"&lt;BR /&gt;
EXOS-VM.7 # sh log&lt;BR /&gt;
03/15/2018 15:16:34.18 &lt;I&gt; the port is 1:1 !&lt;BR /&gt;
&lt;BR /&gt;&lt;/I&gt;</description>
      <pubDate>Thu, 15 Mar 2018 19:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-upm-script-port-number-in-log-message/m-p/52927#M14763</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2018-03-15T19:17:00Z</dc:date>
    </item>
  </channel>
</rss>

