TO ALL.
写代码需要把视野放大一些. 全面考虑各种情况, 非常重要.
On Wed, Oct 14, 2020 at 10:00:16AM +0800, Zhang Dewan wrote:
On Wed, Oct 14, 2020 at 09:04:49AM +0800, Zhang Yu wrote:
On Tue, Oct 13, 2020 at 08:09:18PM +0800, Wu Fengguang wrote:
+get_ipmi_ip() +{
- echo "ipmi_ip: $(ipmitool lan print |grep -E "IP Address\s*:" | awk '{print $4}')"
I suppose some few machines won't have ipmi_ip. So let's check if ipmitool returns error or empty, and only add the field otherwise?
Ok, good idea. i'll do this
the ipmi NIC always have a ip, 192.168.2.100 is default. I think we can test while BMC in reboot.
普通PC呢? 笔记本呢? 树莓派呢? 甚至IPMI功能都可能没有.
Thanks, Fengguang