Describe the bug
In some machines fail to start exchange-bmc-os-info service,exchange-bmc-os-info.init.redhat script failed in get_bmc_ip() function:
Lines 197 to 210 in 5d540ad
get_bmc_ip()
{
#Thanks to http://ingvar.blog.redpill-linpro.com
for CHANNEL in `seq 1 14`
do
[ $(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
| grep -q "^Set") ] || break
done
# Get BMC_IPv4 and BMC_URL from BMC
TMP_IPv4=$(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
| sed -n "s#^IP Address .*: ##p")
valid_ip && BMC_IPv4=${TMP_IPv4} || BMC_IPv4=""
line 203 found "Set in Process", then found "IP Address" to get bmc ip.
but in my machine,channel 1 have "Set in Process" but no "IP Address" filed, channel 3 is correct:
image
Is this bmc problem?
And i think line 203 should grep -q "^IP Address" is better?
IPMITOOL Version
1.8.18
$ ipmitool -V
1.8.18
**Describe the bug**
In some machines fail to start exchange-bmc-os-info service,exchange-bmc-os-info.init.redhat script failed in get_bmc_ip() function:
https://codeberg.org/IPMITool/ipmitool/src/commit/5d540ad95ad1a7d2da4dcdd79a7fa4af28f6684d/contrib/exchange-bmc-os-info.init.redhat#L197-L210
line 203 found "Set in Process", then found "IP Address" to get bmc ip.
but in my machine,channel 1 have "Set in Process" but no "IP Address" filed, channel 3 is correct:

Is this bmc problem?
And i think line 203 should grep -q "^IP Address" is better?
**IPMITOOL Version**
1.8.18
```none
$ ipmitool -V
1.8.18
```
25 KiB