On Thu, Oct 22, 2020 at 11:11:35AM +0800, Zhang Yu wrote:
Signed-off-by: Zhang Yu 2134782174@qq.com
tests/host-info | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/host-info b/tests/host-info index 46f43f93..d12ebc7e 100755 --- a/tests/host-info +++ b/tests/host-info @@ -10,9 +10,10 @@ get_node() echo "memory: $memory" }
-get_model_name() +get_model_and_arch()
I'd suggest to output more lscpu fields. So the function name can be "get_lscpu()".
{ echo "model_name: $(lscpu |grep "Model name" | awk '{print $3}')"
- echo "arch: $(lscpu |grep "Architecture" | awk '{print $2}')"
}
get_nr_disk() @@ -105,7 +106,7 @@ main() get_nr_disk get_partitions get_mac
- get_model_name
- get_model_and_arch get_ipmi_ip
}
-- 2.23.0