python ./Bis2_fw_upgrade.py sxp_evbd_rom0.bin
IPMI_IP=`ipmitool lan print 1 | grep "IP Address" | sed -n '2p' | awk '{print $4}'`
file_num=`ls -l /target/var/uds/product | grep ".img" | grep "STGSMCA" | wc -l`
cp ../updatetool/upgrade.tar.gz upgrade.tar.gz
rm -fr upgrade
tar -zxvf upgrade.tar.gz
IMG_FILE=`ls -l /target/var/uds/product | grep ".img" | grep "STGSMCA" | awk '{print $9}'`
cp -f /target/var/uds/product/$IMG_FILE upgrade/$IMG_FILE
python new_bmc_auto_tools.py -i $IPMI_IP -u admin -p Admin@storage -a upgrade -f $IMG_FILE -s no &
阅读(813) | 评论(0) | 转发(0) |