人気ブログランキング | 話題のタグを見る

Metaphorical Dream

FC-SAN その1 Silkworm パスワードリカバリ手順

Brocade Silkworm3250のOEMで、
富士通から販売しているSN200Model220の
パスワードリカバリ手順をアップします。

オークションで落としたBrocadeのSANスイッチには必須かと。

1-1.電源投入
電源投入後、以下のメッセージ(メモリチェック)が表示されたらESCキーを押下

Checking system RAM - press any key to stop test
00100000


1-2.BootPROMメニュー
ESCキー押下後、以下のメッセージ表示後にBootPROMメニューが表示。
そして、3を選択します。
Press escape within 4 seconds to enter boot interface.

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

Option? 3


1-4.Shell表示
以下のメッセージ表示後にshellのプロンプト(>)が表示。
Boot PROM password has not been set.

>


1-5.helpにてコマンド確認
> help
Valid commands are:
auto Boot per boot environment variable settings
boot Boot specified image
date Display or set the system date and time
debug Hardware Debug - Edit Memory/PCI registers
help Display this list of commands
helpenv Display help for boot environment variables
hinv Display hardware inventory
passwd Set the boot modification password
ping Ping test
printenv Display all boot environment variables
reset Reset the system
resetpw Remove the boot modification password
setenv Set a boot environment variable
saveenv Save the current boot environment variables
unsetenv Unset a boot environment variable
version Display boot version info


1-6.OSLoaderの確認
「printenv」と入力

> printenv
AutoLoad=yes
ENET_MAC=00051E348DA7
InitTest=MEM()
LoadIdentifiers=Fabric Operating System;Fabric Operating System
OSBooted=MEM()0xF0000000
OSLoadOptions=quiet;quiet
OSLoader=MEM()0xF0000000;MEM()0xF0800000
OSRootPartition=hda1;hda2
SkipWatchdog=yes
>

!コメント!
「OSLoader=」の後に記載されたアドレスをメモってください。
 MEM()0xF0000000 ←First Memory Address=これが重要。メモしてください。
 MEM()0xF0800000 ←Second Memory Address(と言うのか?は微妙=不要)

「OSRootPartition=」の後に記載されたPartitionを覚えておいてください。
 hda1 ←恐らく /boot と想定
 hda2 ←恐らく /   と想定


1-7.FirstMemoryAddressを指定してboot
「boot MEM()0xF0000000 -s」と入力

> boot MEM()0xF0000000 -s

~・~・~・~・~・~・~・~以下、Boot時の画面出力~・~・~・~・~・~・~
Booting "Manually selected OS" image.
Entry point at 0x00800000 ...

Linux/PPC load:
BootROM command line: -s
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.4.19 (swrel@squaw)
(gcc version 2.95.3 20010112 (prerelease)) #1 Wed Mar 28 12:47:37 PDT 2007
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone (0): min(255), low(1275), high (2040)
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: -s
Set up jiffies counter to wrap in 0 seconds.
Calibrating FIT timer... running at 1526 Hz. [TSR_FP=2]
Calibrating delay loop... 199.88 BogoMIPS
Memory: 123856k available (1848k kernel code, 1124k data, 76k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
OCP uart ver 1.6.1 init complete
Starting kswapd
Journalled Block Device driver loaded
SGI XFS with no debug enabled
i2c-core.o: i2c core module version 2.6.3 (20020322)
i2c-dev.o: i2c /dev entries driver module version 2.6.3 (20020322)
i2c-proc.o version 2.6.3 (20020322)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xef600400 (irq = 1) is a 16550A
ttyS01 at 0xef600300 (irq = 0) is a 16550A
PPC 405 watchdog driver v0.5. (Timer driven)
SWBD Platform Driver v1.0: [type 27, rev 3].
Config Silkworm
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
silkworm.c: read cpld_data (offset 0xc100001f), 0x00
Silkworm CPLD ATA interface configured [CPLD version 0]
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
cpld_ide_init_hwif_ports: dp=0, cp=0, hw=c0487f08
hda: TOSHIBA THNCF256MBA, ATA DISK drive
ide0 at 0xe10021f0-0xe10021f7,0xe10023f6 on irq 30
hda: 500736 sectors (256 MB) w/2KiB Cache, CHS=978/16/32
Partition check:
hda: hda1 hda2
RAMDISK driver initialized: 16 RAM disks of 6144K size 1024 blocksize
loop: loaded (max 8 devices)
eth0: Phy @ 0x1, type BCM5221 (0x004061e4)
eth0: IBM OCP 10/100 Mbps ethernet: EMAC0, MAC 00:05:1e:34:8d:a7
eth0: Tx/Rx Interrupt mitigation (1500 pps)
ATA polled-mode panic dumper on char-major-252.
silkworm: Using SWBD27 flash configuration
Creating 2 MTD partitions on "Boot flash":
0x00000000-0x00010000 : "bootenv: boot environment"
0x00010000-0x00080000 : "prom: boot prom"
Creating 5 MTD partitions on "User flash":
0x00000000-0x01000000 : "Entire user flash"
0x00000000-0x00400000 : "kern0: kernel and initrd (1)"
0x00800000-0x00c00000 : "kern1: kernel and initrd (2)"
0x00400000-0x00800000 : "dump0: log data (1)"
0x00c00000-0x01000000 : "dump1: log data (2)"
Creating 2 MTD partitions on "Boot flash":
0x00000000-0x00010000 : "bootenv0s: boot environment"
0x00010000-0x00020000 : "bootenv1s: boot environment"
Silkworm crash dump logger using dump0: log data (1)
mtdchar: write-caching enabled
IBM On-chip iic (i2c) algorithm module 2002.30.04
iic_ibmocp_init: IBM on-chip iic adapter module
M41T11 Real-time-clock Driver v1.1
m41t11: Called to probe for bus IIC-0
m41t11: I2C Real-Time-Clock detected on iic0 addr 0x68
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2603 blocks [1 disk] into ram disk... -\|/-done.
Freeing initrd memory: 2603k freed
VFS: Mounted root (ext2 filesystem).
Attempting to find a root file system on hda1...
hda: hda1 hda2
hda: hda1 hda2
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
hda: hda1 hda2
hda: hda1 hda2
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Trying to move old root to /initrd ... okay
Freeing unused kernel memory: 76k init
INIT: version 2.78 booting

~・~・~・~・~・~・~・~以下、Boot時の画面出力 終了~・~・~・~・~・~
sh-2.04#
sh-2.04#

!コメント!
Shellのプロンプト(sh-2.04#)が表示されればOK



2-1./ のRemount
「mount -o remount,rw,noatime /」と入力

sh-2.04# mount -o remount,rw,noatime /
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal


2-2.Root PartitionのMount
「mount /dev/hda2 /mnt」と入力

sh-2.04# mount /dev/hda2 /mnt
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.

!コメント!
なぜ、hda2なのか?については、あくまでも想定ですが、
1-6.に記載した通りです。
 hda1 ←恐らく /boot と想定
 hda2 ←恐らく /   と想定


2-3.パスワードリカバリスクリプトの実行
「/sbin/passwddefault」を実行してください。

sh-2.04# /sbin/passwddefault
All account passwords have been successfully set to factory default.


2-4.再起動
「reboot -f」にて再起動してください。

sh-2.04# reboot -f

~・~・~・~・~・~・~・~以下、Boot時の画面出力~・~・~・~・~・~・~
flushing ide devices: hda
Restarting system.



The system is coming up, please wait...
Checking system RAM - press any key to stop test
001000000
System RAM check complete
Press escape within 4 seconds to enter boot interface.
Booting "Fabric Operating System" image.
Entry point at 0x00800000 ...

Linux/PPC load:
BootROM command line: quiet
Uncompressing Linux...done.
Now booting the kernel
Attempting to find a root file system on hda1...
INIT: version 2.78 booting
INIT: Entering runlevel: 3

Fabric OS (fcs01)

fcs01 console login: uptime: 2605; sysc_qid: 0
2010/04/29-14:54:33, [HAM-1004], 91,, INFO, SilkWorm3250, Processor rebooted - Reboot

SNMP Research SNMP Agent Resident Module Version 15.3.1.4
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 SNMP Research, Inc.
sysctrld: all services Standby
Services starting a COLD recovery
sysctrld: all services Active
POST1: Started running Thu Apr 29 14:55:00 GMT 2010
POST1: Test #1 - Running turboramtest
POST1: Test #2 - Running centralmemorytest
POST1: Test #3 - Running cmitest
POST1: Script PASSED with exit status of 0 Thu Apr 29 14:55:06 GMT 2010 took (0:0:6)
POST2: Started running Thu Apr 29 14:55:08 GMT 2010
POST2: Test #1 - Running camtest
POST2: Test #2 - Running txdpath
POST2: Test #3 - Running spinsilk (SERDES)
POST2: Running diagshow
POST2: Script PASSED with exit status of 0 Thu Apr 29 14:56:00 GMT 2010 took (0:0:52)
Initializing Ports ....
Port Initialization Completed
Enabling switch...
~・~・~・~・~・~以下、Boot時の画面出力 終了~・~・~・~・~



3-1.初期パスワード入力
以下の表示が出たらFabricOSのDefaultのユーザ名とパスを入力しましょう。

Defaultユーザ名=admin
Defaultパスワード=password

Fabric OS (fcs01)

fcs01 console login: admin
Password: (表示されませんがpasswordと入力)

Please change passwords for switch default accounts now.
Use Control-C to exit or press 'Enter' key to proceed.

Warning: Access to the Root and Factory accounts may be required for
proper support of the switch. Please ensure the Root and Factory
passwords are documented in a secure location. Recovery of a lost Root
or Factory password will result in fabric downtime.


3-2.初期パスワード設定
パスワードリカバリが完了しているため、上記ログイン後、
改めてDefaultユーザにパスワードを設定します。

Defaultのユーザ名
 root
 factory
 admin
 user

3-2-1.rootのパスワード設定
for user - root
Changing password for root
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully
2010/04/29-15:01:19, [SEC-3024], 92, AUDIT, INFO, fcs01,
User: admin, Role: admin, Event: passwd, Status:
success, Info: User account, [root], password changed.
Please change passwords for switch default accounts now.

3-2-2.factoryのパスワード設定
for user - factory
Changing password for factory
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully
2010/04/29-15:01:27, [SEC-3024], 93, AUDIT, INFO, fcs01,
User: admin, Role: admin, Event: passwd, Status:
success, Info: User account, [factory], password changed.
Please change passwords for switch default accounts now.

3-2-3.adminのパスワード設定
for user - admin
Changing password for admin
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully
2010/04/29-15:01:35, [SEC-3024], 94, AUDIT, INFO, fcs01,
User: admin, Role: admin, Event: passwd, Status:
success, Info: User account, [admin], password changed.
Please change passwords for switch default accounts now.

3-2-4.userのパスワード設定
for user - user
Changing password for user
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully
2010/04/29-15:01:41, [SEC-3024], 95, AUDIT, INFO, fcs01,
User: admin, Role: admin, Event: passwd, Status:
success, Info: User account, [user], password changed.
Saving passwords to stable storage.
Passwords saved to stable storage successfully

3-3.完了
最後はプロンプトが表示されれば完了です。

fcs01:admin>


Brocade silkworm SN200 Model220 HT-4990-SW3250
パスワード初期化 パスワードリセット

by mdesign21 | 2010-04-30 00:46 | IT系