Tuesday, October 22, 2013

Upgrade from 8.1.0.016 to 8.1.0.020

ogs and steps:
 
# before start
date +"%Y%m%d_%H%M%S"
cmmget -l chassis -t fru -d all
ifconfig
cmmget -d version
rsys-ipmitool hpm check
uname -r
cmmget -d healthevents
cmmget -d healthevents > /usr/local/data/healthevents_before.txt
cmmget -d redundancy
cmmget -l system -d listpresent
cat /etc/cmm/scripts/pre_cmm_startup
cat /etc/cmm/scripts/post_cmm_startup
cat /etc/cmm/scripts/post_cmm_startup
cat /etc/cmm/scripts/post_cmm_shutdown
cd /usr/local/data
ispVME-SSPI NFC_LFXP2-17_20100803_80A6_ALGO.SEA NFC_LFXP2-17_20100803_80A6_DATA.SED validate
ispVME-SSPI NFC_LFXP2-17_20100803_80A6_ALGO.SEA NFC_LFXP2-17_20100803_80A6_DATA.SED

# 1. Flashing JB (first bank)
cmmset -d update -v "/tftpboot/Wildwood/8.1.0.020_Dec15/install ftp:128.0.10.1:kyfoo:xxxx"
# 2. Flashing IPMI (both bank)
scp kyfoo@128.0.10.1:/tftpboot/Wildwood/8.1.0.020/IPMI/cmm3_all.hpm /usr/local/data
cmmget -d version
rsys-ipmitool hpm check
rsys-ipmitool hpm check cmm3_all.hpm
# first bank 0
rsys-ipmitool hpm upgrade cmm3_all.hpm activate
[press enter]
y
[press enter]
rsys-ipmitool hpm check
# second bank 1
rsys-ipmitool hpm upgrade cmm3_all.hpm activate
[press enter]
y
[press enter]
rsys-ipmitool hpm check
## CMM FRU
# From CMM1
fru_update "-t 0x10 -m 0x10" A6K-RSM-J-FRU-v01-00.cfg A6K-RSM-J-FRU-v01-00.bin
fru_update "-t 0x12 -m 0x10" A6K-RSM-J-FRU-v01-00.cfg A6K-RSM-J-FRU-v01-00.bin
# recommended clean install
rsys-ipmitool -t 0x10 -m 0x10 fru write 0 A6K-RSM-J-FRU-v01-00.bin
rsys-ipmitool -t 0x12 -m 0x10 fru write 0 A6K-RSM-J-FRU-v01-00.bin
# From CMM2
fru_update "-t 0x10 -m 0x12" A6K-RSM-J-FRU-v01-00.cfg A6K-RSM-J-FRU-v01-00.bin
fru_update "-t 0x12 -m 0x12" A6K-RSM-J-FRU-v01-00.cfg A6K-RSM-J-FRU-v01-00.bin
# recommended clean install
rsys-ipmitool -t 0x10 -m 0x12 fru write 0 A6K-RSM-J-FRU-v01-00.bin
rsys-ipmitool -t 0x12 -m 0x12 fru write 0 A6K-RSM-J-FRU-v01-00.bin
## CMM VFRU
# From CMM1
fru_update "-t 0x20 -m 0x10" A6K-RSM-J-VFRU-v01-00.cfg A6K-RSM-J-VFRU-v01-00.bin
fru_update "-t 0x20 -m 0x10" A6K-RSM-J-VFRU-v01-00.cfg A6K-RSM-J-VFRU-v01-00.bin
cmmset -d failover -v 1
rsys-ipmitool -t 0x20 -m 0x10 fru write 0 A6K-RSM-J-VFRU-v01-00.bin
# From CMM2
fru_update "-t 0x20 -m 0x12" A6K-RSM-J-VFRU-v01-00.cfg A6K-RSM-J-VFRU-v01-00.bin
fru_update "-t 0x20 -m 0x12" A6K-RSM-J-VFRU-v01-00.cfg A6K-RSM-J-VFRU-v01-00.bin
cmmset -d failover -v 1
rsys-ipmitool -t 0x20 -m 0x12 fru write 0 A6K-RSM-J-VFRU-v01-00.bin
# CMM1
fru_update "-t 0x20 -m 0x10" NECCH0001-FRU-CMM3-vR1.cfg NECCH0001-FRU-CMM3-vR1.bin
rsys-ipmitool -t 0x20 -m 0x10 fru write 1 NECCH0001-FRU-CMM3-vR1.bin
rsys-ipmitool -t 0x20 -m 0x10 fru write 2 NECCH0001-FRU-CMM3-vR1.bin
# CMM2
fru_update "-t 0x20 -m 0x12" NECCH0001-FRU-CMM3-vR1.cfg NECCH0001-FRU-CMM3-vR1.bin
rsys-ipmitool -t 0x20 -m 0x12 fru write 1 NECCH0001-FRU-CMM3-vR1.bin
rsys-ipmitool -t 0x20 -m 0x12 fru write 2 NECCH0001-FRU-CMM3-vR1.bin

# 5. Power Cycles then execute below command
ifconfig
cmmget -d version
rsys-ipmitool hpm check
uname -r
cmmget -d redundancy
**If CMM does not come up, please check the IP addresses, set them to bring both CMM up
cmmset -d cdmcmm1eth0data -v ip:120.0.10.53,nm:255.255.255.0,gw:120.0.10.1,boot:static
cmmset -d cdmcmm1eth1data -v ip:121.0.10.53,nm:255.255.255.0,gw:121.0.10.1,boot:static
cmmset -d cdmcmm1eth2data -v ip:128.0.10.53,nm:255.255.255.0,gw:128.0.10.1,boot:static
cmmset -d cdmcmm1eth3data -v ip:123.0.10.53,nm:255.255.255.0,gw:123.0.10.1,boot:static
cmmset -d cdmcmm2eth0data -v ip:120.0.10.54,nm:255.255.255.0,gw:120.0.10.1,boot:static
cmmset -d cdmcmm2eth1data -v ip:121.0.10.54,nm:255.255.255.0,gw:121.0.10.1,boot:static
cmmset -d cdmcmm2eth2data -v ip:128.0.10.54,nm:255.255.255.0,gw:128.0.10.1,boot:static
cmmset -d cdmcmm2eth3data -v ip:123.0.10.54,nm:255.255.255.0,gw:123.0.10.1,boot:static
# 6. Flash JB (second bank)
cmmset -d update -v "/tftpboot/Wildwood/8.1.0.020_Dec15/install ftp:128.0.10.1:kyfoo:xxxx"
# 7. Reboot both CMM after both upgraded, and verify the version again.
ifconfig
cmmget -d version
rsys-ipmitool hpm check
uname -r
cmmget -d redundancy

# 8. Reboot CMM to go into UBoot confirm both UBoot banks have been flash successfully (observe bank selection should be IPMC 1 and LMP 1)
ctrl+x then ctrl+w
version
swflash
ctrl+x then ctrl+w
version
boot

# after CMM up check JB version below again.
ifconfig
cmmget -d version
rsys-ipmitool hpm check
uname -r
cmmget -d redundancy

No comments: