Dell Networking SONiC 密碼復原
摘要: 本文說明如何在 Dell Networking SONiC 中重設或還原您的密碼。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
說明
|
注意:此程式需要重新開機交換器。若適用,安排必要的停機時間。任何未儲存的變更都會在重新開機時遺失。
|
您可以從 GRUB 還原管理員密碼。如果您忘記或遺失 Dell Networking SONiC 的管理員密碼,您可以使用此程式。
- 使用序列或 USB 主控台埠連接至交換器。
- 重新開機 或開啟交換器電源。您可以強制重新開機。
- 等待 GRUB 功能表出現。
GNU GRUB version 2.02
+----------------------------------------------------------------------------+
|*SONiC-OS-4.0.5-Enterprise_Base |
| ONIE |
| |
| |
+----------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line.
- 從 GRUB 功能表中選取 SONiC 版本 ,然後按 e 以開啟 GRUB 編輯器。
GNU GRUB version 2.02 /----------------------------------------------------------------------------\ |setparams 'SONiC-OS-4.0.5-Enterprise_Base' | | | | search --no-floppy --label --set=root SONiC-OS | | echo 'Loading SONiC-OS OS kernel ...' | | insmod gzio | | if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | | insmod part_msdos | | insmod ext2 | | linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \| |root=UUID=1ef6ad59-xxxx-xxxx-xxxx-68fe15d8a089 rw console=tty0 console=tty\| |S0,115200n8 quiet intel_idle.max_cstate=0 net.ifnames=0 bi\| |osdevname=0 loop=image-4.0.5-Enterprise_Base/fs.squashfs lo\|v |opfstype=squashfs crashkernel=0M-2G:2\|v \----------------------------------------------------------------------------/ Minimum Emacs-like screen editing is supported. TAB lists completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a command-line or ESC to discard edits and return to the GRUB menu.
- 使用 方向鍵 前往以「linux /image---」開頭的行。下列範例輸出會指出此行。
GNU GRUB version 2.02 /----------------------------------------------------------------------------\ |setparams 'SONiC-OS-4.0.5-Enterprise_Base' | | | | search --no-floppy --label --set=root SONiC-OS | | echo 'Loading SONiC-OS OS kernel ...' | | insmod gzio | | if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | | insmod part_msdos | | insmod ext2 | | linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \| |root=UUID=1ef6ad59-xxxx-xxxx-xxxx-68fe15d8a089 rw console=tty0 console=tty\| |S0,115200n8 quiet intel_idle.max_cstate=0 net.ifnames=0 bi\| |osdevname=0 loop=image-4.0.5-Enterprise_Base/fs.squashfs lo\|v |opfstype=squashfs crashkernel=0M-2G:2\|v \----------------------------------------------------------------------------/ Minimum Emacs-like screen editing is supported. TAB lists completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a command-line or ESC to discard edits and return to the GRUB menu.
| 如果方向鍵在 GRUB 編輯器中無法運作,您可以使用以下按鍵前往該行。 上:CTRL+p 向下:CTRL+n 離開:CTRL+b 對:CTRL+f |
- 在 r/w 和 console=tty0 之間輸入下列行。
init=/bin/bash
範例輸出如下所示 (實際輸出中未顯示任何顏色):
GNU GRUB version 2.02
/----------------------------------------------------------------------------\
|setparams 'SONiC-OS-4.0.5-Enterprise_Base' |
| |
| search --no-floppy --label --set=root SONiC-OS |
| echo 'Loading SONiC-OS OS kernel ...' |
| insmod gzio |
| if [ x = xxen ]; then insmod xzio; insmod lzopio; fi |
| insmod part_msdos |
| insmod ext2 |
| linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \|
|root=UUID=aaa4e106-1eed-xxxx-xxxx-1d7bb8cdb93c rw init=/bin/bash console=t\|
|ty0 console=ttyS0,115200n8 quiet intel_idle.max_cstate=0 n\|
|et.ifnames=0 biosdevname=0 loop=image-4.0.5-Enterprise_Base\|v
|/fs.squashfs loopfstype=squashfs cras\|v
\----------------------------------------------------------------------------/
Minimum Emacs-like screen editing is supported. TAB lists
completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a
command-line or ESC to discard edits and return to the GRUB menu.
如果您想要放棄任何所做的變更,請按下 ESC 鍵。此動作會讓您回到 GRUB 功能表,而不儲存變更。
|
注意:此插入無法在重新開機後繼續執行。密碼復原後,您不必編輯 GRUB。
|
- 按 下 F10或 Ctrl+x 即可開機。
範例開機順序
Booting a command listBooting a command list Loading SONiC-OS OS kernel ...Loading SONiC-OS OS kernel ... Loading SONiC-OS OS initial ramdisk ...Loading SONiC-OS OS initial ramdisk ... AF, DXE_EXIT_BOOT_SERVICES(03101019) B, B, bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell root@(none):/#
- 您可以使用下列 Linux 命令來修改密碼。在以下範例中,我們正在修改使用者帳戶 管理員:
passwd <username> root@(none):/# passwd admin Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
- 使用下列命令重新開機交換器:
root@(none):/# echo "b" > /proc/sysrq-trigger
或
root@(none):/# reboot -f
交換器重新開機後,您可以使用新認證登入交換器。
受影響的產品
Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, PowerSwitch N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON
, PowerSwitch Z9432F-ON
...
文章屬性
文章編號: 000212939
文章類型: How To
上次修改時間: 13 12月 2023
版本: 2
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。