#!/bin/bash
work_dir=$(cd "$(dirname "$0")"; pwd)
ipmi_ip=$(ipmitool lan print 1 |grep "IP Address  " |awk -F ": " '{print$2}')
password=$1

./iSAC_CLI/bin/iSAC_CLI -H $ipmi_ip -U root -P $password  upgradefw -T BMC  -D Dual -F $work_dir/BMC_R5X00G4X_R53G4X_A5_R_V03.24.0101_202408052039.PKG
