SuperMicro Auto Deploy

SuperMicro Auto Deploy

SMCIPMITool Usage

Query FRU info

SMCIPMITool 10.0.0.100 ADMIN ADMIN ipmi fru
:<<EOF
Getting FRU ...
Chassis Type (CT) = Other (01h)
Chassis Part Number (CP) = CSE-217HQ-XXXX
Chassis Serial Number (CS) = C2170FE0XXXX
Board mfg. Date/Time (BDT) = 1996/01/01 00:00:00 (00 00 00)
Board Manufacturer Name (BM) = Supermicro
Board Product Name (BPN) =
Board Serial Number (BS) = VM15CSXXXX
Board Part Number (BP) = X10DRT-H
Board FRU File ID =
Product Manufacturer Name (PM) = Supermicro
Product Name (PN) =
Product PartModel Number (PPM) = SYS-2028TR-H72R
Product Version (PV) =
Product Serial Number (PS) = S173440XXXXXXX
Product Asset Tag (PAT) =
Product FRU File ID =
EOF

Set Next Boot from PXE

:<<EOF
For bootoption index :
1: PXE 2: Hard-drive
3: CD/DVD 4: Bios
5: USB KEY 6: USB HDD
7: USB Floppy 8: USB CD/DVD
9: UEFI Hard-drive 10: UEFI CD/DVD
11: UEFI USB KEY 12: UEFI USB HDD
13: UEFI USB CD/DVD
EOF
SMCIPMITool 10.0.0.100 ADMIN ADMIN ipmi power bootoption 1
SMCIPMITool 10.0.0.100 ADMIN ADMIN ipmi power reset
:<<EOF
3.39.2 wsiso mount
Use this command to mount an ISO file.
Usage:wsiso mount <IP> <path> [username] [password]
IP: IP or domain name of share host
path: path to iso file
username: username of share host (optional)
password: password of share host (optional)
Ex 1: mount linux.iso
wsiso mount 192.168.1.100 /iso/linux.iso
Ex 2: mount linux.iso with username and password
wsiso mount 192.168.1.100 /iso/linux.iso admin admin
* Use one ISO file at a time. Make sure umount existing ISO before mount new ISO
file
* This command is available for X9 and X10 platform with SFT-OOB-LIC node
product key
EOF

RAID Configuration

<Ctrl> - <Y>
LSI Preboot CLI

# pager 20 lines per page
PDList a0 page20
# create one raid0 ld with one disk
CfgLdAdd r0 [252:0] a0 # create one raid1 ld with two disks CfgLdAdd r1 [252:0,252:1] a0 CfgForeign Clear a0

Full Screen Cast Below

Battery Status: Not present
PCI SLOT ID LUN VENDOR PRODUCT REVISION CAPACITY
-------- -- --- ------ ------- -------- --------
3 LSI Supermicro SMC2208 3.240.05-2282 1024MB
3 7 0 SEAGATE ST9146853SS YS09 140014MB
3 8 0 SEAGATE ST9146853SS YS09 140014MB
0 Virtual Drive(s) found on the host adapter.
0 Virtual Drive(s) handled by BIOS
Press <Ctrl><H> for WebBIOS or press <Ctrl><Y> for Preboot CLI
MegaPCLI SAS RAID Management Tool.
Copyright(c) LSI Corporation, 2008.
Use -h -a<n> for controller specific help, where n is the controller index
Use -v -a<n> for controller specific version, where n is the controller index
Use q to exit from $ prompt
Controller(s) Found
HA-0 (Bus 3 DevFn 0)
$
$cfgforeign clear a0
Foreign configuration 0 is cleared on controller 0.
Foreign configuration 1 is cleared on controller 0.
Exit Code = 0x0
$cfgldadd r1 [252:0,252:1] a0
Adapter 0: Created VD 0
Adapter 0: Configured the Adapter!!
Exit Code = 0x0
$q
Press <CTL><ALT><DEL> to reboot.

After Rebooting POST message will show

LSI MegaRAID SAS-MFI BIOS
Version 5.38.00 (Build October 11, 2012)
Copyright(c) 2012 LSI Corporation
HA -0 (Bus 3 Dev 0) Supermicro SMC2208
FW package: 23.12.0.0011
Battery Status: Not present
PCI SLOT ID LUN VENDOR PRODUCT REVISION CAPACITY
-------- -- --- ------ ------- -------- --------
3 LSI Supermicro SMC2208 3.240.05-2282 1024MB
3 7 0 SEAGATE ST9146853SS YS09 140014MB
3 8 0 SEAGATE ST9146853SS YS09 140014MB
3 0 LSI Virtual Drive RAID1 139236MB
1 Virtual Drive(s) found on the host adapter.
1 Virtual Drive(s) handled by BIOS
Press <Ctrl><H> for WebBIOS or press <Ctrl><Y> for Preboot CLI

issues

错误信息为:
PXE-E7B: Missing MTFTP server IP address

Cisco设备是PortFast
Huawei设备里是
临时关掉生成树
stp disable
或者标记为边界端口
stp edged-port enable

other resources

boot.ipxe

http://10.0.0.9/cgi-bin/pxe.py?mac=${netX/mac}&manufacturer=${manufacturer}&product=${product}&serial=${serial}&bserial=${smbios/board-serial:string}

WS-Management

wsman identify -h 10.0.0.100 -P 5985 -u ADMIN -p ADMIN

flashrom

# flashrom-0.9.9 install
yum install -y zlib-devel libpciaccess-devel pciutils-devel libusb1-devel
make DESTDIR=/usr install

Intel BootUtil

yum install -y make gcc perl kernel-devel
./install
./bootutil64e -e
:<<EOF
Intel(R) Ethernet Flash Firmware Utility
BootUtil version 1.5.94.2
Copyright (C) 2003-2015 Intel Corporation
NIC= 1 MACAddress=0CC47AB4C12E
NIC= 2 MACAddress=0CC47AB4C12F
Port Network Address Location Series WOL Flash Firmware Version
==== =============== ======== ======= === ============================= =======
1 0CC47AB4C12E 1:00.0 Gigabit YES FLASH Not Present
2 0CC47AB4C12F 1:00.1 Gigabit NO FLASH Not Present
EOF
./bootutil64e -nic 1 -saveimage -file 0CC47AB4C12E.rom
./bootutil64e -nic 1 -saveimage -file 80861521.rom

SerialNumber

dmidecode -s baseboard-serial-number instead of dmidecode -s system-serial-number