bios升级

850阅读 0评论2013-03-14 cherish568
分类:LINUX

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 &


上一篇:DHCP服务配置2
下一篇:RAID 技术经典解析