Signed-off-by: Zhang Yu 2134782174@qq.com --- tests/host-info | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/tests/host-info b/tests/host-info index 9b8bfc50..3cabebbf 100755 --- a/tests/host-info +++ b/tests/host-info @@ -80,6 +80,11 @@ get_partitions() fi }
+get_ipmi_ip() +{ + echo "ipmi_ip: $(ipmitool lan print |grep -E "IP Address\s*:" | awk '{print $4}')" +} + main() { get_node @@ -87,6 +92,7 @@ main() get_partitions get_mac get_model_name + get_ipmi_ip }
main
Title should be better.
Thanks, Yale
On Mon, Oct 12, 2020 at 09:05:58AM +0800, Zhang Yu wrote:
Signed-off-by: Zhang Yu 2134782174@qq.com
tests/host-info | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/tests/host-info b/tests/host-info index 9b8bfc50..3cabebbf 100755 --- a/tests/host-info +++ b/tests/host-info @@ -80,6 +80,11 @@ get_partitions() fi }
+get_ipmi_ip() +{
- echo "ipmi_ip: $(ipmitool lan print |grep -E "IP Address\s*:" | awk '{print $4}')"
+}
main() { get_node @@ -87,6 +92,7 @@ main() get_partitions get_mac get_model_name
- get_ipmi_ip
}
main
2.23.0