Signed-off-by: Zhang Yu 2134782174@qq.com --- tests/host-info | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/tests/host-info b/tests/host-info index a57855dc..9ca06235 100755 --- a/tests/host-info +++ b/tests/host-info @@ -80,6 +80,12 @@ get_partitions() fi }
+get_ipmi_ip() +{ + imp_ip=$(ipmitool lan print |awk 'NR==3{print $4}') + [ $? -eq 0 ] && echo "ipmi_ip:" $imp_ip +} + main() { get_node @@ -87,6 +93,7 @@ main() get_partitions get_mac get_model_name + get_ipmi_ip }
main
it will be better for ChangeLog to provide input and out infomations.
On Mon, Oct 19, 2020 at 10:25:20AM +0800, Zhang Yu wrote:
Signed-off-by: Zhang Yu 2134782174@qq.com
tests/host-info | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/tests/host-info b/tests/host-info index a57855dc..9ca06235 100755 --- a/tests/host-info +++ b/tests/host-info @@ -80,6 +80,12 @@ get_partitions() fi }
+get_ipmi_ip() +{
- imp_ip=$(ipmitool lan print |awk 'NR==3{print $4}')
^----add space Thanks, Liushaofei
- [ $? -eq 0 ] && echo "ipmi_ip:" $imp_ip
+}
main() { get_node @@ -87,6 +93,7 @@ main() get_partitions get_mac get_model_name
- get_ipmi_ip
}
main
2.23.0
Pls add output.
Thanks, Yale
On Mon, Oct 19, 2020 at 10:25:20AM +0800, Zhang Yu wrote:
Signed-off-by: Zhang Yu 2134782174@qq.com
tests/host-info | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/tests/host-info b/tests/host-info index a57855dc..9ca06235 100755 --- a/tests/host-info +++ b/tests/host-info @@ -80,6 +80,12 @@ get_partitions() fi }
+get_ipmi_ip() +{
- imp_ip=$(ipmitool lan print |awk 'NR==3{print $4}')
- [ $? -eq 0 ] && echo "ipmi_ip:" $imp_ip
+}
main() { get_node @@ -87,6 +93,7 @@ main() get_partitions get_mac get_model_name
- get_ipmi_ip
}
main
2.23.0