본문 바로가기
WORK-LIFE/SAN Switch

[Brocade] SAN 패스워드 초기화

by 동해무울 2023. 1. 19.

 

SAN switch 운영을 하다보면 패스워드 관리가 가장 까다롭죠.. 특히 패스워드를 자주 바꾸는 곳이나 담당자가 자주 바뀌는 곳의 경우 패스워드 유실이 종종 발생 됩니다.

오늘은 그런 경우를 대비하여 SAN switch 패스워드 초기화 하는 방법을 올려 봅니다.

 

1. SAN switch Serial 케이블 연결을 하시고요. 연결 방법은 다시 포스팅 후 링크 걸겠습니다.

2. 스위치를 재부팅 합니다. 혹시 로그인을 못해서 정상으로 재부팅을 못하시면 그냥 파워 뺏다 꼽으세요.
3. 테스트를 중지하거나 AutoBoot를 중지하라는 메세지가 표시되면 ESC키를 눌러 주세요.

The Boot PROM menu is displayed with the following options:
• Start system
Used to reboot the system.
• Recover password.
Used to generate a character string for your support provider to recover the Boot PROM
password. Use this feature only when directed by technical support personnel.
• Enter command shell.
Used to enter the command shell, to reset all passwords on the system.
Checking system RAM - press any key to stop test
Checking memory address: 00100000
System RAM test terminated by keyboard
set_bootstatus: BS_LOAD_OS, platform_idx = 6
Hit ESC to stop autoboot: 0

1) Start system.
2) Recover password.
3) Enter command shell.
Option?

 

4. 3번쩨 3) Enter command shell. 선택해주세요:

Option? 3


5. Type the Boot PROM password 메세지가 표시되면 패스워드 입력 하시면 됩니다.

주로 설정이 되어 있지 않습니다. 혹시 설정 되어 있다면 패스워드 입력하시면 됩니다.

The Boot PROM has a password only if one was defined.
NOTE
If you are prompted to enter a new Boot PROM password, make sure it is at least 8 characters
in length. Do not select this option unless specifically instructed by support personnel.


6. 스위치가 single user로 부팅이 될수 있도록 파라미터 변경해주세요.

mode, enter the following command:
Fabric OS Password Recovery Notes 9
53-1000114-05
Password recovery using the Boot PROM interface 1
=> setenv OSLoadOptions “single”


7. 환경 변수 변경 상태 확인:

=> printenv
AutoLoad=yes
BootromVerbose=no
InitTest=MEM()
LoadIdentifiers=Fabric Operating System;Fabric Operating System
OSLoadOptions=single
(output truncated)


8. 환경 변경 저장:

=> saveenv
Saving Environment to Flash…..Done


9. "boot" 명령을 사용하여 매개변수 없이 부팅을 진행 합니다.:

=> boot
Map file at LBA sector 0x17da68
## Booting image at 00400000 ...
(output truncated)


10. 리눅스와 같이 싱글모드 부팅후 root 파티션 remount 진행

read/writecapable:
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal


11. secondary partition 마운트:

If the previous command returns hda2, then use hda1 in this command. If the previous
command returns hda 1, use hda2.
sh-2.04# mount /dev/hda2 /mnt
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.


12. "passwddefault" 명령어 사용하여 모든 패스워드 초기화 :

sh-2.04# /sbin/passwddefault
All account passwords have been successfully set to factory default.
If additional user accounts existed, they are deleted. Only the default accounts and passwords
remain.


13. OSLoadOptions to “queit;quiet” 재설정:

sh-2.04# bootenv OSLoadOptions ”quiet;quiet”


14. "reboot -f"로 스위치 재부팅

sh-2.04# reboot -f
Traffic flow resumes when the switch completes rebooting. If you do not use the –f option you
will have to manually reboot the switch.


15. 재부팅 완료 후 기본 패스워드로 로그인:

 

SAN switch 기본 패스워드는 아래와 같습니다.
admin/password
root/password
root/fibranne

'WORK-LIFE > SAN Switch' 카테고리의 다른 글

[Brocade] SAN 공장 초기화  (0) 2023.01.19
[Brocade]FCIP 명령어  (0) 2023.01.10
WWN이란??  (0) 2020.04.26
[MCDATA] MCDATA SAN 기본 계정 및 아이피  (0) 2020.02.29
[Cisco] SAN Zone 방법  (0) 2020.02.28