首先是超微的一些资料
获取登陆信息的数据
SESSION_ID=$(curl -s "http://${HOST}/cgi/login.cgi" --data "name=${IPMI_USER}&pwd=${IPMI_PASS}" -i | awk '/SID=[^;]/ { print $2 }')
操作电源选项接口信息 (抓取地址https://xxxxx.xxxx.xxx/cgi/url_redirect.cgi?url_name=man_chassis)
url = '../cgi/ipmi.cgi';
pars = '?SET_POWER_INFO.XML=(1,0)&time_stamp=' + (new Date ());
电源状态判断 currentPwrStatus == 0 status Power Off