{"id":1707,"date":"2018-02-14T23:00:00","date_gmt":"2018-02-14T23:00:00","guid":{"rendered":"https:\/\/www.balajibandi.com\/?p=1707"},"modified":"2022-09-14T13:11:41","modified_gmt":"2022-09-14T12:11:41","slug":"catalyst-password-reset","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=1707","title":{"rendered":"Catalyst Password reset"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>Procedure to reset a <strong>Cisco 2960<\/strong> (or 2950) password <u>without losing<\/u> the switch configuration.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Connect the blue console cable, and open a TTY (i use putty here) session: <strong>9600,8,n,1<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"438\" src=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/09\/image.png\" alt=\"\" class=\"wp-image-1710\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/09\/image.png 452w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2022\/09\/image-300x291.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>&#8211; Hitting return should give a prompt, confirming the connection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Press and hold the front panel MODE button, and power-up the switch.<br>&#8211; After a few seconds, the following should display. Release the MODE button.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The system has been interrupted prior to initializing the\nflash filesystem.  The following commands will initialize\nthe flash filesystem, and finish loading the operating \nsystem software:\n \n    flash_init\n    load_helper\n    boot<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">At the prompt, enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">switch: <strong>flash_init<\/strong>\nInitializing Flash...\n\nList the files in the flash directory:\n\nswitch: dir flash:\nDirectory of flash:\/\n \n2    -rwx  5                        private-config.text\n4    -rwx  5048591                  c2960-lanbasek9-mz.122-25.SED.bin\n5    drwx  192                      c2960-lanbase-mz.122-25.SEE2\n620  -rwx  2061                     config.text\n \n19752960 bytes available (12761088 bytes used)\n\nRename the flash file config.text to config.text.old, and re-boot: \nswitch: rename flash:config.text flash:config.text.old\n \nswitch: boot\nLoading \"flash:c2960-lanbasek9-mz.122-25.SED.bin\"...@@@@@@@@@@@@@@@@@@@@@@@@@@@\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n\nWhen the switch reboots, it will launch the 'System Configuration Dialog', enter n to exit!\nRename the old configuration file back to config.text, and copy it into memory.\n\nSwitch&gt;en\nSwitch#rename flash:config.text.old flash:config.text\nSwitch#copy flash:config.text system:running-config\n\nWith the old configuration restored, we can now change the password, and save.\n\nSwitch#config t\nEnter configuration commands, one per line.  End with CNTL\/Z.\nSwitch(config)#enable secret newpassword\nSwitch(config)#end\nSwitch#wr mem\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Procedure to reset a Cisco 2960 (or 2950) password without losing the switch configuration. Connect the blue console cable, and open a TTY (i use putty here) session: 9600,8,n,1. &#8211; Hitting return should give a prompt, confirming the connection. Press and hold the front panel MODE button, and power-up the switch.&#8211; After a few seconds, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1707","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1707"}],"version-history":[{"count":3,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1707\/revisions"}],"predecessor-version":[{"id":1712,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/1707\/revisions\/1712"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}