
13 Oct
2020
13 Oct
'20
8:09 p.m.
+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? Thanks, Fengguang
+} + main() { get_node @@ -87,6 +92,7 @@ main() get_partitions get_mac get_model_name + get_ipmi_ip }
main -- 2.23.0