2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Do not use Mihawk codename

This commit is contained in:
Mark Gurevich 2020-02-19 14:50:05 -05:00
parent 88ee3f1d67
commit d60d63ff09
3 changed files with 9 additions and 9 deletions

View File

@ -167,8 +167,8 @@ logger -s -t $log_label -p local4.info "IPMIVER=$IPMIVER, IPMIMFG=$IPMIMFG, XPRO
#
# IPMIMFG=2 = IBM
# IPMIMFG=0 = OpenPOWER
# IPMIMFG=42817 and XPROD=16975 = OpenBMC (Witherspoon)
# IPMIMFG=42817 and XPROD=1 = OpenBMC (Mihawk)
# IPMIMFG=42817 and XPROD=16975 = OpenBMC (AC922)
# IPMIMFG=42817 and XPROD=1 = OpenBMC (IC922)
#
if [ "$IPMIMFG" == 2 ]; then #IBM
if [ "$XPROD" == "220" ]; then
@ -266,9 +266,9 @@ elif [ "$IPMIMFG" == "674" ]; then # DELL
ipmitool delloem lan set shared with lom$BMCPORT &>/dev/null
ipmitool delloem lan set shared with failover all loms &>/dev/null
fi
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "16975" ]; then # IBM OpenPOWER servers with OpenBMC (Witherspoon)
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "16975" ]; then # IBM OpenPOWER servers with OpenBMC (AC922)
ISOPENBMC=1
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "1" ]; then # IBM OpenPOWER servers with OpenBMC (Mihawk)
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "1" ]; then # IBM OpenPOWER servers with OpenBMC (IC922)
ISOPENBMC=1
fi

View File

@ -32,9 +32,9 @@ BMCMAC=`ipmitool lan print $LANCHAN|grep ^MAC|awk '{print $4}'` #bmcconfig may o
IPMIMFG=`ipmitool mc info |grep "^Manufacturer ID"|awk '{print $4}'`
XPROD=`ipmitool mc info | grep "^Product ID"|awk '{print $4}'`
if [ "$IPMIMFG" == "42817" -a "$XPROD" == "16975" ]; then
ISOPENBMC=1 # Witherspoon
ISOPENBMC=1 # AC922
elif [ "$IPMIMFG" == "42817" -a "$XPROD" == "1" ]; then
ISOPENBMC=1 # Mihawk
ISOPENBMC=1 # IC922
else
ISOPENBMC=0
fi

View File

@ -1289,7 +1289,7 @@ sub bmcdiscovery_openbmc{
my $login_endpoint = "login";
my $system_endpoint = "inventory/system";
my $motherboard_boxelder_endpoint = "$system_endpoint/chassis/motherboard/boxelder/bmc";
my $motherboard_tpm_endpoint = "$system_endpoint/chassis/motherboard/tpm";
my $motherboard_bmc_endpoint = "$system_endpoint/chassis/motherboard/bmc";
my $node_data = $ip;
my $brower = LWP::UserAgent->new( ssl_opts => { SSL_verify_mode => 0x00, verify_hostname => 0 }, );
@ -1309,9 +1309,9 @@ sub bmcdiscovery_openbmc{
my $req_output = $brower->request($req);
if ($req_output->is_error) {
# If the host system has not yet been powered on, system_endpoint call will return error
# Instead, check the boxelder (for Witherspoon) or tpm (for Mihawk) info for model/serial
# Instead, check the boxelder (for AC922) or bmc (for IC922) info for model/serial
if ($model_id eq $::P9_MIHAWK_PRODUCT_ID) {
$url = "$http_protocol://$ip/$openbmc_project_url/$motherboard_tpm_endpoint";
$url = "$http_protocol://$ip/$openbmc_project_url/$motherboard_bmc_endpoint";
}
else {
$url = "$http_protocol://$ip/$openbmc_project_url/$motherboard_boxelder_endpoint";