{"id":1785,"date":"2024-09-13T05:41:41","date_gmt":"2024-09-13T05:41:41","guid":{"rendered":"https:\/\/techblonhub.com\/?p=1785"},"modified":"2024-10-07T07:10:40","modified_gmt":"2024-10-07T07:10:40","slug":"cisco-command-line","status":"publish","type":"post","link":"https:\/\/techblonhub.com\/cms\/cisco-command-line\/","title":{"rendered":"How to Recover Network Admin Password on Nexus Switches"},"content":{"rendered":"<p>Have you lost the network administrator password on a\u00a0<a href=\"https:\/\/gntme.com\/product-category\/cisco\/cisco-switches\/\" target=\"_blank\" rel=\"noopener\">Cisco Nexus switch<\/a>? If yes, This guide can help you learn how to recover it in different ways Cisco command line. However, before you proceed with the password recovery procedure, here are a couple of things you must know:<\/p>\n<p><strong>What to Do If There Are Two Supervisor Modules on a Device<\/strong><\/p>\n<ul>\n<li>If there are two supervisor modules on a device, perform the password recovery procedure on the supervisor module that will remain active after completing the recovery procedure.<\/li>\n<li>To ensure that the other supervisor module doesn\u2019t become active, you need to either remove it from the chassis or change its console prompt to <code>loader&gt;<\/code> or <code>switch (boot)#<\/code>. Consequently, this will prevent the other module from interfering with the recovery process.<\/li>\n<\/ul>\n<p><strong>The Two Ways to Recover Admin Password on Nexus Switches<\/strong><\/p>\n<ul>\n<li>From the Command Line Interface (CLI) with a user name with network-admin privileges<\/li>\n<li>By power cycling the device<\/li>\n<\/ul>\n<p><strong><u>Steps to Recover Admin Password on Nexus Switches by Using CLI<\/u><\/strong><\/p>\n<p><strong>Step 1:\u00a0<\/strong>Check if the username has network-admin privileges<\/p>\n<ul>\n<li>switch#\u00a0<strong>show user-account<\/strong><\/li>\n<\/ul>\n<p>user: admin<\/p>\n<p>this user account has no expiry date<\/p>\n<p><strong>\u00a0roles: network-admin<\/strong><\/p>\n<p>user:dbgusr<\/p>\n<p>this user account has no expiry date<\/p>\n<p><b>roles: network-admin<\/b> network-operator<\/p>\n<p><strong>Step 2:\u00a0<\/strong>If a username has network-admin privileges, then create a new network admin password.<\/p>\n<ul>\n<li>switch#\u00a0<strong>configure terminal<\/strong><\/li>\n<li>switch(config)#\u00a0<strong>username admin password<\/strong>\u00a0&lt;new password&gt;<\/li>\n<li>switch(config)#\u00a0<strong>exit<\/strong><\/li>\n<li>switch#<\/li>\n<\/ul>\n<p><strong>Step 3:\u00a0<\/strong>Save the changes.<\/p>\n<ul>\n<li>switch#\u00a0<strong>copy running-config startup-config<\/strong><\/li>\n<\/ul>\n<p><strong><u>Steps to Recover Admin Password on Nexus Switches by Power Cycling<\/u><\/strong><\/p>\n<p>If you cannot recover the password using the above method, you will need to recover the network admin password by power cycling the device using the method discussed below the cisco command line. Note that this password recovery procedure will interrupt all traffic on the device, and you will experience no connections for 2 to 3 minutes.<\/p>\n<p>Before trying any other method, note that you cannot recover the network admin password on a Nexus switch from a Telnet or Secure Shell (SSH) session. Access to the local console connection is mandatory. Furthermore, you cannot use the CMP management interface to recover the password on NX-OS-enabled devices. <a href=\"https:\/\/gntme.com\/product-category\/cisco\/cisco-switches\/cisco-nexus-7000-series\/\" target=\"_blank\" rel=\"noopener\">Cisco Nexus 7000 series switches<\/a>.<\/p>\n<div class=\"flex max-w-full flex-col flex-grow\">\n<div class=\"min-h-[20px] text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"8c5ca929-6994-4469-b7f0-7b80364ca52c\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>When you recover the password, the system updates it only in the local user database, not on the remote AAA servers. As a result, the new password will work only if local authentication is enabled. It won\u2019t function with remote authentication. During password recovery, local authentication allows logins only through a console, ensuring that only the admin user can log in with the updated password.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>Step 1:\u00a0<\/strong>Establish a terminal session on the switch\u2019s console and power cycle the switch<strong>.\u00a0<\/strong>Here are the settings for the console:<\/p>\n<ul>\n<li>Speed\u2014 9600 baud<\/li>\n<li>Data bits\u2014 8 bits per byte<\/li>\n<li>Stop bits\u2014 1 bit<\/li>\n<li>Parity\u2014 none<\/li>\n<\/ul>\n<p><strong>Step 2:<\/strong> Continue to press Ctrl-] during the boot sequence to enter the switch(boot)# prompt mode when you see that the system image is getting loaded. In case you are using earlier versions of Nexus Switches such as Nexus 5000 Series switches that are enabled using Cisco NX-OS 4.0(0)N1(2a), press Ctrl-B(Ctrl+Shift+B) instead of Ctrl-].<\/p>\n<p>Mod 1 2 Post Completed Successfully<\/p>\n<p>Mod 3 Post Completed Successfully<\/p>\n<p>POST is completed<\/p>\n<p>Checking all filesystems\u2026.r. done.<\/p>\n<p><strong>Ctrl-]<\/strong><\/p>\n<p>switch(boot)#<\/p>\n<p><strong>Step 3:<\/strong>\u00a0Update the network admin password now using the following commands:<\/p>\n<p>switch(boot)#\u00a0<strong>configure terminal<\/strong><\/p>\n<p>switch(boot-config)#\u00a0<strong>admin-password<\/strong>\u00a0&lt;new password&gt;<\/p>\n<p>WARNING! Remote Authentication for login through the console has been<\/p>\n<p>disabled<\/p>\n<p>switch(boot-config)#\u00a0<strong>exit<\/strong><\/p>\n<p>switch(boot)#<\/p>\n<p><strong>Step 4:<\/strong> Then, display the <code>bootflash:<\/code> contents to find the image file of Cisco NX-OS software.<\/p>\n<p>switch(boot)#\u00a0<strong>dir. bootflash:<\/strong><\/p>\n<p><strong>Step 5:<\/strong>\u00a0Load the image of Cisco NX-OS software. Here, it has been assumed that the system image file name is nx-os.bin:<\/p>\n<p>switch(boot) #\u00a0<strong>load bootflash:nx-os.bin<\/strong><\/p>\n<p><strong>Step 6: <\/strong>Afterward, log in to the device using the updated network admin password. Subsequently, verify that all configurations are correctly applied and functional.<\/p>\n<p>switch login:\u00a0<strong>admin<\/strong><\/p>\n<p>Password: &lt;new password&gt;<\/p>\n<p><strong>Step 7 When<\/strong>\u00a0you see the following lines, it indicates that local authentication is enabled for logins through a local console rather than a remote console. Therefore, avoid changing the running configuration to ensure the new password will work for future logins. Once you have reset the password, you can enable remote authentication; additionally, make sure to remember the admin password configured on the AAA servers.<\/p>\n<p>switch# show running-config aaa<\/p>\n<p>!Command: show running-config aaa<\/p>\n<p>!Time: Fri Feb 5 02:39:23 2010<\/p>\n<p>version 5.0(2)<\/p>\n<p>logging level aaa 5<\/p>\n<p>aaa authentication login ascii-authentication<\/p>\n<p><strong>Step 8:<\/strong> Next, reset the new password so that it also serves as the SNMP (Simple Network Management Protocol) password. Consequently, this will ensure consistency across your network management protocols.<\/p>\n<p>switch#\u00a0<strong>configure terminal<\/strong><\/p>\n<p>switch(config)#\u00a0<strong>username admin password<\/strong>\u00a0&lt;new password&gt;<\/p>\n<p>switch(config)#\u00a0<strong>exit<\/strong><\/p>\n<p>switch#<\/p>\n<p><strong>Step 9:<\/strong> Now, if needed, you can insert the previously removed supervisor module into the chassis. Afterward, ensure that the module is properly seated and verify its status.<\/p>\n<p><strong>Step 10:<\/strong> If needed, boot the Cisco NX-OS kickstart image, such as <code>nx-os_kickstart.bin<\/code>, on the standby supervisor module. Subsequently, proceed with the necessary updates or configurations.<\/p>\n<p>loader#\u00a0<strong>boot bootflash:nx-os_kickstart.bin<\/strong><\/p>\n<p><strong>Step 11:<\/strong>\u00a0Now, load the\u00a0<a href=\"https:\/\/www.cisco.com\/\" target=\"_blank\" rel=\"noopener\">Cisco<\/a> NX-OS Update the software on the standby supervisor module if needed. In this case, it is assumed that the system image file name is <code>nx-os.bin<\/code>:<\/p>\n<p>switch(boot)#\u00a0<strong>load bootflash:nx-os.bin<\/strong><\/p>\n<p><strong>Step 12: <\/strong>Finally, save the configuration by running the following command.<\/p>\n<p>Switch #<strong> copy running-config startup-config<\/strong><\/p>\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex max-w-full flex-col flex-grow\">\n<div class=\"min-h-[20px] text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"1f95f8a7-75c3-407b-be98-e2bc720ee9ef\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>We hope these steps shared by cisco command line will help you recover your password on Nexus switches. Therefore, follow them carefully to resolve your issue.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><a href=\"https:\/\/gntme.com\/\" target=\"_blank\" rel=\"noopener\">Gear Net Technologies<\/a> leads in supplying Cisco Nexus Switches both locally and internationally. Consequently, it has established a strong presence in these markets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you lost the network administrator password on a\u00a0Cisco Nexus switch? If yes, This guide can help you learn how to recover it in different ways Cisco command line. However, before you proceed with the password recovery procedure, here are a couple of things you must know: What to Do If There Are Two Supervisor &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1831,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[29],"tags":[253,254,255],"class_list":["post-1785","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-switch","tag-cisco-nexus-switches","tag-gear-net-technologies","tag-recover-network"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/posts\/1785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/comments?post=1785"}],"version-history":[{"count":0,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/posts\/1785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/media\/1831"}],"wp:attachment":[{"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/media?parent=1785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/categories?post=1785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techblonhub.com\/cms\/wp-json\/wp\/v2\/tags?post=1785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}