{"id":1440,"date":"2013-02-12T18:00:28","date_gmt":"2013-02-12T08:00:28","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=1440"},"modified":"2015-12-10T09:18:01","modified_gmt":"2015-12-09T23:18:01","slug":"cisco-restoring-mds-configurations-from-somewhere-else","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/cisco-restoring-mds-configurations-from-somewhere-else\/","title":{"rendered":"Cisco &#8211; Restoring MDS configurations from somewhere else"},"content":{"rendered":"<p>We recently had to replace a Cisco MDS 9124e in our lab. I used to use <a title=\"Working with Configuration Files\" href=\"http:\/\/www.cisco.com\/en\/US\/products\/ps5989\/products_configuration_guide_chapter09186a0080664bde.html#wp1263433\" target=\"_blank\">this method<\/a> to copy and restore configuration files to MDS switches.<\/p>\n<pre><strong>switch# copy tftp:\/\/192.168.0.20\/switch.cfg startup-config<\/strong>\r\n<strong>Trying to connect to tftp server......<\/strong>\r\n<strong>Connection to server Established. Copying Started.....<\/strong>\r\n<strong>|<\/strong>\r\n<strong>TFTP get operation was successful<\/strong>\r\n<strong>This command is deprecated. To obtain the same results, please use<\/strong>\r\n<strong>the sequence 'write erase' + 'reload' + 'copy &lt;file&gt; running-config' + 'copy running-config startup-config'.<\/strong><\/pre>\n<p>It was rough, but it used to work. So now I do this.<\/p>\n<pre><strong>switch# copy tftp:\/\/192.168.0.20\/switch.cfg bootflash:<\/strong>\r\n<strong>Trying to connect to tftp server......<\/strong>\r\n<strong>Connection to server Established. Copying Started.....<\/strong>\r\n<strong>|<\/strong>\r\n<strong>TFTP get operation was successful<\/strong>\r\n<strong>switch# dir<\/strong>\r\n<strong>\u00a0\u00a0\u00a0\u00a0\u00a0 15155\u00a0\u00a0\u00a0 Feb 05 21:37:37 2013\u00a0 switch.cfg\r\n\r\n<\/strong><strong>write erase\r\n<\/strong><strong>reload\r\n<\/strong><strong>copy switch.cfg running-config\r\n<\/strong><strong>copy run start<\/strong><\/pre>\n<p>It makes sense, as the write erase and reload commands make you think about what you&#8217;re doing, and you need to be sure that you want to overwrite the running or startup config.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently had to replace a Cisco MDS 9124e in our lab. I used to use this method to copy and restore configuration files to MDS switches. switch# copy tftp:\/\/192.168.0.20\/switch.cfg startup-config Trying to connect to tftp server&#8230;&#8230; Connection to server Established. Copying Started&#8230;.. | TFTP get operation was successful This command is deprecated. To obtain [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,5],"tags":[255,266,214,794,301,210,110,294,299,490,268],"class_list":["post-1440","post","type-post","status-publish","format-standard","hentry","category-cisco","category-storage","tag-255","tag-9124e","tag-214","tag-cisco","tag-config","tag-copy","tag-howto","tag-mds","tag-nx-os","tag-switch","tag-tftp"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=1440"}],"version-history":[{"count":5,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1440\/revisions"}],"predecessor-version":[{"id":3418,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/1440\/revisions\/3418"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=1440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=1440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=1440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}