<?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 How to Reverse a CLI-based Command in FAQs</title>
    <link>https://community.extremenetworks.com/t5/faqs/how-to-reverse-a-cli-based-command/m-p/48181#M510</link>
    <description>Article ID: 5542 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
DFE&lt;BR /&gt;
Matrix C1&lt;BR /&gt;
Matrix E1&lt;BR /&gt;
SecureStack C3&lt;BR /&gt;
SecureStack C2&lt;BR /&gt;
SecureStack B3&lt;BR /&gt;
SecureStack B2&lt;BR /&gt;
SecureStack A2 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Related to&lt;/B&gt;&lt;BR /&gt;
Command line interface&lt;BR /&gt;
CLI management &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Reverse / negate / clear / back out a CLI command&lt;BR /&gt;
Navigate the CLI&lt;BR /&gt;
CLI help &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
With the Command Line Interface based products, it is not always obvious how to back out a command which is displayed via a '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config&lt;/PRE&gt;&lt;/DIV&gt;'. &lt;BR /&gt;
&lt;BR /&gt;
This article presents some simple guidelines for CLI navigation. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
On the CLI-based products; for reversal purposes in some cases one would '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;' the value back to its default, in some cases one would use '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;clear&lt;/PRE&gt;&lt;/DIV&gt;' instead of '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;', and in more rare instances one would preface the command with "&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;no&lt;/PRE&gt;&lt;/DIV&gt;  ". This is based on the rules established for each command set, complicated by the fact that these products have at least subtle differences from each other. &lt;BR /&gt;
&lt;BR /&gt;
Unless you are familiar with a given product or plan to spend significant amounts of time parsing the &lt;A href="http://extranet.enterasys.com/downloads/" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration Guide&lt;/A&gt;, when navigating the CLI the "&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;?&lt;/PRE&gt;&lt;/DIV&gt;" parameter is your friend. &lt;BR /&gt;
&lt;BR /&gt;
As an example, assume that you are unsure how to change a port which has been hard-set for speed and duplex, and configure it back to its default auto-negotiating, 10HD state. Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;show config port&lt;/B&gt;&lt;BR /&gt;
 This command shows non-default configurations only.&lt;BR /&gt;
 Use 'show config all' to show both default and non-default configurations.&lt;BR /&gt;
 &lt;BR /&gt;
 begin&lt;BR /&gt;
 !&lt;BR /&gt;
 # ***** NON-DEFAULT CONFIGURATION *****&lt;BR /&gt;
 !&lt;BR /&gt;
 !&lt;BR /&gt;
 # port&lt;BR /&gt;
 set port duplex ge.1.1 full&lt;BR /&gt;
 set port negotiation ge.1.1 disable&lt;BR /&gt;
 set port speed ge.1.1 1000&lt;BR /&gt;
 !&lt;BR /&gt;
 end&lt;BR /&gt;
 &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;clear port&lt;/B&gt; ?&lt;BR /&gt;
   advertise           Auto-neg advertised capabilities (default: all modes&lt;BR /&gt;
                       cleared) &lt;BR /&gt;
   broadcast           Reset port broadcast threshold and/or clear peak rate &amp;amp; &lt;BR /&gt;
                       time values. &lt;BR /&gt;
   discard             Reset the types of frames being discarded to the factory &lt;BR /&gt;
                       default setting. &lt;BR /&gt;
   inlinepower         Clear inlinepower parameters. &lt;BR /&gt;
   jumbo               Reset jumbo frame support on specified port(s) &lt;BR /&gt;
   lacp                8023ad Link Aggregation &lt;BR /&gt;
   mirroring           Remove port mirroring configuration . &lt;BR /&gt;
   priority            Priority associated. &lt;BR /&gt;
   priority-queue      Priority to transmit queue mapping. &lt;BR /&gt;
   ratelimit           Clear ratelimiting parameters &lt;BR /&gt;
   txq                 Individual transmit queue values. &lt;BR /&gt;
   vlan                802.1Q VLAN/port association. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;clear port&lt;BR /&gt;
Given the lack of '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;negotiation&lt;/PRE&gt;&lt;/DIV&gt;', '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;speed&lt;/PRE&gt;&lt;/DIV&gt;', and '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;duplex&lt;/PRE&gt;&lt;/DIV&gt;' options available with the '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;clear&lt;/PRE&gt;&lt;/DIV&gt;' command, one can infer from this that the proper approach is to use the '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;' command. Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port negotiation ge.1.1&lt;/B&gt; ? &lt;BR /&gt;
   enable              Enable auto-negotiation. &lt;BR /&gt;
   disable             Disable auto-negotiation. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port speed ge.1.1&lt;/B&gt; ?&lt;BR /&gt;
   10                  10 Mbps. &lt;BR /&gt;
   100                 100 Mbps. &lt;BR /&gt;
   1000                1000 Mbps. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port duplex ge.1.1&lt;/B&gt; ?&lt;BR /&gt;
   full                Full duplex mode. &lt;BR /&gt;
   half                Half duplex mode. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;set port duplex ge.1.1&lt;BR /&gt;
For our purposes here, the reversal commands would be&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port negotiation ge.1.1 enable&lt;/PRE&gt;&lt;/DIV&gt;'&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port speed ge.1.1 10&lt;/PRE&gt;&lt;/DIV&gt;'&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port duplex ge.1.1 half&lt;/PRE&gt;&lt;/DIV&gt;' &lt;BR /&gt;
&lt;BR /&gt;
A subsequent '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config port&lt;/PRE&gt;&lt;/DIV&gt;' (or '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config&lt;/PRE&gt;&lt;/DIV&gt;') should demonstrate that the original commands are now missing, since the settings are in agreement with the system defaults. &lt;BR /&gt;
&lt;BR /&gt;
When unsure of the default value for a command, consult the relevant Configuration Guide, which will list the &lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;Factory Default Settings&lt;/PRE&gt;&lt;/DIV&gt;.&lt;BR /&gt;
For a discussion about clearing SNMP commands, please refer to &lt;A href="http://bit.ly/1ak3EwY" target="_blank" rel="nofollow noreferrer noopener"&gt;10308&lt;/A&gt;.</description>
    <pubDate>Tue, 04 Feb 2014 00:01:00 GMT</pubDate>
    <dc:creator>FAQ_User</dc:creator>
    <dc:date>2014-02-04T00:01:00Z</dc:date>
    <item>
      <title>How to Reverse a CLI-based Command</title>
      <link>https://community.extremenetworks.com/t5/faqs/how-to-reverse-a-cli-based-command/m-p/48181#M510</link>
      <description>Article ID: 5542 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Products&lt;/B&gt;&lt;BR /&gt;
DFE&lt;BR /&gt;
Matrix C1&lt;BR /&gt;
Matrix E1&lt;BR /&gt;
SecureStack C3&lt;BR /&gt;
SecureStack C2&lt;BR /&gt;
SecureStack B3&lt;BR /&gt;
SecureStack B2&lt;BR /&gt;
SecureStack A2 &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Related to&lt;/B&gt;&lt;BR /&gt;
Command line interface&lt;BR /&gt;
CLI management &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Goals&lt;/B&gt;&lt;BR /&gt;
Reverse / negate / clear / back out a CLI command&lt;BR /&gt;
Navigate the CLI&lt;BR /&gt;
CLI help &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Cause&lt;/B&gt;&lt;BR /&gt;
With the Command Line Interface based products, it is not always obvious how to back out a command which is displayed via a '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config&lt;/PRE&gt;&lt;/DIV&gt;'. &lt;BR /&gt;
&lt;BR /&gt;
This article presents some simple guidelines for CLI navigation. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Solution&lt;/B&gt;&lt;BR /&gt;
On the CLI-based products; for reversal purposes in some cases one would '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;' the value back to its default, in some cases one would use '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;clear&lt;/PRE&gt;&lt;/DIV&gt;' instead of '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;', and in more rare instances one would preface the command with "&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;no&lt;/PRE&gt;&lt;/DIV&gt;  ". This is based on the rules established for each command set, complicated by the fact that these products have at least subtle differences from each other. &lt;BR /&gt;
&lt;BR /&gt;
Unless you are familiar with a given product or plan to spend significant amounts of time parsing the &lt;A href="http://extranet.enterasys.com/downloads/" target="_blank" rel="nofollow noreferrer noopener"&gt;Configuration Guide&lt;/A&gt;, when navigating the CLI the "&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;?&lt;/PRE&gt;&lt;/DIV&gt;" parameter is your friend. &lt;BR /&gt;
&lt;BR /&gt;
As an example, assume that you are unsure how to change a port which has been hard-set for speed and duplex, and configure it back to its default auto-negotiating, 10HD state. Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;show config port&lt;/B&gt;&lt;BR /&gt;
 This command shows non-default configurations only.&lt;BR /&gt;
 Use 'show config all' to show both default and non-default configurations.&lt;BR /&gt;
 &lt;BR /&gt;
 begin&lt;BR /&gt;
 !&lt;BR /&gt;
 # ***** NON-DEFAULT CONFIGURATION *****&lt;BR /&gt;
 !&lt;BR /&gt;
 !&lt;BR /&gt;
 # port&lt;BR /&gt;
 set port duplex ge.1.1 full&lt;BR /&gt;
 set port negotiation ge.1.1 disable&lt;BR /&gt;
 set port speed ge.1.1 1000&lt;BR /&gt;
 !&lt;BR /&gt;
 end&lt;BR /&gt;
 &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;clear port&lt;/B&gt; ?&lt;BR /&gt;
   advertise           Auto-neg advertised capabilities (default: all modes&lt;BR /&gt;
                       cleared) &lt;BR /&gt;
   broadcast           Reset port broadcast threshold and/or clear peak rate &amp;amp; &lt;BR /&gt;
                       time values. &lt;BR /&gt;
   discard             Reset the types of frames being discarded to the factory &lt;BR /&gt;
                       default setting. &lt;BR /&gt;
   inlinepower         Clear inlinepower parameters. &lt;BR /&gt;
   jumbo               Reset jumbo frame support on specified port(s) &lt;BR /&gt;
   lacp                8023ad Link Aggregation &lt;BR /&gt;
   mirroring           Remove port mirroring configuration . &lt;BR /&gt;
   priority            Priority associated. &lt;BR /&gt;
   priority-queue      Priority to transmit queue mapping. &lt;BR /&gt;
   ratelimit           Clear ratelimiting parameters &lt;BR /&gt;
   txq                 Individual transmit queue values. &lt;BR /&gt;
   vlan                802.1Q VLAN/port association. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;clear port&lt;BR /&gt;
Given the lack of '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;negotiation&lt;/PRE&gt;&lt;/DIV&gt;', '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;speed&lt;/PRE&gt;&lt;/DIV&gt;', and '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;duplex&lt;/PRE&gt;&lt;/DIV&gt;' options available with the '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;clear&lt;/PRE&gt;&lt;/DIV&gt;' command, one can infer from this that the proper approach is to use the '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set&lt;/PRE&gt;&lt;/DIV&gt;' command. Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port negotiation ge.1.1&lt;/B&gt; ? &lt;BR /&gt;
   enable              Enable auto-negotiation. &lt;BR /&gt;
   disable             Disable auto-negotiation. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port speed ge.1.1&lt;/B&gt; ?&lt;BR /&gt;
   10                  10 Mbps. &lt;BR /&gt;
   100                 100 Mbps. &lt;BR /&gt;
   1000                1000 Mbps. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;&lt;B&gt;set port duplex ge.1.1&lt;/B&gt; ?&lt;BR /&gt;
   full                Full duplex mode. &lt;BR /&gt;
   half                Half duplex mode. &lt;BR /&gt;
 Matrix N3 Platinum(su)-&amp;gt;set port duplex ge.1.1&lt;BR /&gt;
For our purposes here, the reversal commands would be&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port negotiation ge.1.1 enable&lt;/PRE&gt;&lt;/DIV&gt;'&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port speed ge.1.1 10&lt;/PRE&gt;&lt;/DIV&gt;'&lt;BR /&gt;
  '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;set port duplex ge.1.1 half&lt;/PRE&gt;&lt;/DIV&gt;' &lt;BR /&gt;
&lt;BR /&gt;
A subsequent '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config port&lt;/PRE&gt;&lt;/DIV&gt;' (or '&lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;show config&lt;/PRE&gt;&lt;/DIV&gt;') should demonstrate that the original commands are now missing, since the settings are in agreement with the system defaults. &lt;BR /&gt;
&lt;BR /&gt;
When unsure of the default value for a command, consult the relevant Configuration Guide, which will list the &lt;DIV class="threadCode"&gt;&lt;B&gt;code:&lt;/B&gt;&lt;PRE spellcheck="false"&gt;Factory Default Settings&lt;/PRE&gt;&lt;/DIV&gt;.&lt;BR /&gt;
For a discussion about clearing SNMP commands, please refer to &lt;A href="http://bit.ly/1ak3EwY" target="_blank" rel="nofollow noreferrer noopener"&gt;10308&lt;/A&gt;.</description>
      <pubDate>Tue, 04 Feb 2014 00:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/faqs/how-to-reverse-a-cli-based-command/m-p/48181#M510</guid>
      <dc:creator>FAQ_User</dc:creator>
      <dc:date>2014-02-04T00:01:00Z</dc:date>
    </item>
  </channel>
</rss>

