<?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 RE: EXOS 'cat' utility in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53697#M15166</link>
    <description>Either of these aliases might cause some weirdness with the 'edit policy ' command. That said, you can just do 'vi ' or (with the alias) 'edit ' instead.</description>
    <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
    <dc:creator>BrandonC</dc:creator>
    <dc:date>2018-04-10T17:17:00Z</dc:date>
    <item>
      <title>EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53693#M15162</link>
      <description>To create a linux like 'cat' utility in EXOS 22.4 and later:&lt;BR /&gt;
&lt;BR /&gt;
in the exshrc.xsf file add the following line (or create the exshrc.xsf file)&lt;BR /&gt;
&lt;BR /&gt;
alias cat "run script shell.py cd /usr/local/cfg;cat"Then the next time you login, the 'cat' alias will be available.&lt;BR /&gt;
&lt;BR /&gt;
E.g.&lt;BR /&gt;
 # cat exshrc.xsf&lt;BR /&gt;
alias cat "run script shell.py cd /usr/local/cfg;cat"E.g.&lt;BR /&gt;
Suppose there is a file my.pol.&lt;BR /&gt;
# cat my.pol&lt;BR /&gt;
entry one {&lt;BR /&gt;
if {&lt;BR /&gt;
source-address 1.1.1.1/32;&lt;BR /&gt;
} then {&lt;BR /&gt;
meter joe1;&lt;BR /&gt;
}}&lt;BR /&gt;
entry two {&lt;BR /&gt;
if {&lt;BR /&gt;
source-address 1.1.1.2/32;&lt;BR /&gt;
} then {&lt;BR /&gt;
meter joe1;&lt;BR /&gt;
}}&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:07:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53693#M15162</guid>
      <dc:creator>Dave_Hammers</dc:creator>
      <dc:date>2018-04-10T17:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53694#M15163</link>
      <description>Nice!&lt;BR /&gt;
Now we need an text edit (vi) command...&lt;BR /&gt;
...and this seems to do it:&lt;BR /&gt;
alias edit='run script shell.py cd /usr/local/cfg;vi'&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53694#M15163</guid>
      <dc:creator>Ludovico_Steven</dc:creator>
      <dc:date>2018-04-10T17:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53695#M15164</link>
      <description>Since &lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;vi&lt;/PRE&gt;&lt;/DIV&gt; is already available, a simpler line is:  &lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;alias edit "vi"&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53695#M15164</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2018-04-10T17:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53696#M15165</link>
      <description>running vi in this mode restricts the filenames to specific suffix types&lt;BR /&gt;
E.g.&lt;BR /&gt;
vi abc.x&lt;BR /&gt;
Error: Invalid XOS Cli file extension with vi.&lt;BR /&gt;
 Extension .pkt, .pol, .py, .xml, or .xsf is required.vs.&lt;BR /&gt;
edit abc.xwith Ludovico's alias</description>
      <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53696#M15165</guid>
      <dc:creator>Dave_Hammers</dc:creator>
      <dc:date>2018-04-10T17:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53697#M15166</link>
      <description>Either of these aliases might cause some weirdness with the 'edit policy ' command. That said, you can just do 'vi ' or (with the alias) 'edit ' instead.</description>
      <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53697#M15166</guid>
      <dc:creator>BrandonC</dc:creator>
      <dc:date>2018-04-10T17:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: EXOS 'cat' utility</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53698#M15167</link>
      <description>Did not realize that vi was already there...&lt;BR /&gt;
But yes, my alias works:&lt;BR /&gt;
&lt;BR /&gt;
EXOS-VM.37 #% cat test.cfgthis is my test&lt;BR /&gt;
EXOS-VM.38 #% edit test.cfgthis is my test&lt;BR /&gt;
~&lt;BR /&gt;
...whereas vi directly does not:&lt;BR /&gt;
&lt;BR /&gt;
EXOS-VM.38 #% vi test.cfgError: Invalid XOS Cli file extension with vi. Extension .pkt, .pol, .py, .xml, or .xsf is required.&lt;BR /&gt;
Ciao&lt;BR /&gt;
Ludovico&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/exos-cat-utility/m-p/53698#M15167</guid>
      <dc:creator>Ludovico_Steven</dc:creator>
      <dc:date>2018-04-10T17:17:00Z</dc:date>
    </item>
  </channel>
</rss>

