EnterasysSaveConfig: Difference between revisions

From LLL
Jump to navigationJump to search
No edit summary
m (Reverted edits by Yxawyjo (Talk) to last version by AlainKnaff)
 
Line 1: Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ojaperiwiva.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
----
=[http://ojaperiwiva.co.cc CLICK HERE]=
----
</div>
This page shows how to save and load back the config
This page shows how to save and load back the config


Line 12: Line 4:
====Display config to terminal====
====Display config to terminal====


&lt;code&gt;show config&lt;/code&gt;
<code>show config</code>


====Save config====
====Save config====
Line 18: Line 10:
First it needs to be saved to a file ''on the switch'':
First it needs to be saved to a file ''on the switch'':


&lt;code&gt;show config outfile slot1/keller_config.cfg&lt;/code&gt;
<code>show config outfile slot1/keller_config.cfg</code>


Then this file needs to be copied off the switch (via tftp to the server). For this, the server needs to support tftp uploads. By default, the Tftp daemon on the server should support this, provided that
Then this file needs to be copied off the switch (via tftp to the server). For this, the server needs to support tftp uploads. By default, the Tftp daemon on the server should support this, provided that
* it is running (start it, if needed by setting &lt;code&gt;disable &lt;/code&gt; no= in the &lt;code&gt;/etc/xinetd.d/tftp&lt;/code&gt; file, and doing an &lt;code&gt;rcxinetd reload&lt;/code&gt;)
* it is running (start it, if needed by setting <code>disable </code> no= in the <code>/etc/xinetd.d/tftp</code> file, and doing an <code>rcxinetd reload</code>)
* the target file already exists (under the &lt;code&gt;/tftpboot&lt;/code&gt; root), and is publically writable. If necessary, create it as follows:
* the target file already exists (under the <code>/tftpboot</code> root), and is publically writable. If necessary, create it as follows:


&lt;pre&gt;
<pre>
mkdir /tftpboot/switch-config
mkdir /tftpboot/switch-config
touch /tftpboot/switch-config/keller_config.cfg
touch /tftpboot/switch-config/keller_config.cfg
chmod 666 /tftpboot/switch-config/keller_config.cfg
chmod 666 /tftpboot/switch-config/keller_config.cfg
&lt;/pre&gt;
</pre>


This creates an empty &lt;code&gt;keller_config.cfg&lt;/code&gt; file with the correct permissions.
This creates an empty <code>keller_config.cfg</code> file with the correct permissions.


When ready, enter the following command on the switch:
When ready, enter the following command on the switch:


&lt;code&gt;copy slot1/keller''config.cfg tftp://10.0.0.1/switch-config/keller''config.cfg&lt;/code&gt;
<code>copy slot1/keller''config.cfg tftp://10.0.0.1/switch-config/keller''config.cfg</code>


This should now overwrite the placeholder &lt;code&gt;keller_config.cfg&lt;/code&gt; file with its real contents.
This should now overwrite the placeholder <code>keller_config.cfg</code> file with its real contents.


If there are problems with this command, just use &lt;code&gt;show config&lt;/code&gt; and copy-paste the output to a file using the mouse ;-)
If there are problems with this command, just use <code>show config</code> and copy-paste the output to a file using the mouse ;-)


====Restore config====
====Restore config====
Line 44: Line 36:
First (if needed) you need to copy the config file from the server to the switchs flash memory via tftp
First (if needed) you need to copy the config file from the server to the switchs flash memory via tftp


&lt;code&gt;copy tftp://10.0.0.1/switch-config/keller''config.cfg slot1/keller''config.cfg&lt;/code&gt;
<code>copy tftp://10.0.0.1/switch-config/keller''config.cfg slot1/keller''config.cfg</code>


Then you need to apply it:
Then you need to apply it:


&lt;code&gt;configure slot1/keller_config.cfg&lt;/code&gt;
<code>configure slot1/keller_config.cfg</code>

Latest revision as of 19:51, 26 November 2010

This page shows how to save and load back the config


Display config to terminal[edit]

show config

Save config[edit]

First it needs to be saved to a file on the switch:

show config outfile slot1/keller_config.cfg

Then this file needs to be copied off the switch (via tftp to the server). For this, the server needs to support tftp uploads. By default, the Tftp daemon on the server should support this, provided that

  • it is running (start it, if needed by setting disable no= in the /etc/xinetd.d/tftp file, and doing an rcxinetd reload)
  • the target file already exists (under the /tftpboot root), and is publically writable. If necessary, create it as follows:
mkdir /tftpboot/switch-config
touch /tftpboot/switch-config/keller_config.cfg
chmod 666 /tftpboot/switch-config/keller_config.cfg

This creates an empty keller_config.cfg file with the correct permissions.

When ready, enter the following command on the switch:

copy slot1/kellerconfig.cfg tftp://10.0.0.1/switch-config/kellerconfig.cfg

This should now overwrite the placeholder keller_config.cfg file with its real contents.

If there are problems with this command, just use show config and copy-paste the output to a file using the mouse ;-)

Restore config[edit]

First (if needed) you need to copy the config file from the server to the switchs flash memory via tftp

copy tftp://10.0.0.1/switch-config/kellerconfig.cfg slot1/kellerconfig.cfg

Then you need to apply it:

configure slot1/keller_config.cfg