IPMI coldreset

#!/bin/bash
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 mc info
sleep 2
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 sensor
while true;
do
#ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 mc reset cold
echo BMC IP $1 Cold Reset and wait for 68 Sec. Date : `date`
count=$((count+1))
echo Success: “$count” times
sleep 7
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 mc info
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 sdr
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 sensor
ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 lan print
#ipmitool -I lanplus -U ADMIN -P ADMIN -H $1 -t 0x2C mc info
sleep 1
done

Advertisements

About superjameszou

Hardware Design Engineer
This entry was posted in IPMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s