On Thu, Oct 22, 2020 at 11:38:52AM +0800, Wu Fengguang wrote:
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()".
Names good, I'll output more lscpu fields later.
Thanks, Zhangyu
{ 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