
执行命令
bash sysinfo.sh | python -m json.tool
[root@HlVwca174584 ~]# bash sysinfo.sh | python -m json.tool
{
"Company": "VMware,",
"Cpu": {
"Core": "2",
"Model": " Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz"
},
"Disk": [
{
"Name": "",
"size": "42.9 GB"
},
{
"Name": "",
"size": "10.7 GB"
}
],
"DiskSum": 53,
"IsVm": "Yes",
"Memory": [
{
"Name": "",
"size": "2048 MB"
}
],
"MemorySum": 2048,
"ModelName": "VMware Virtual Platform",
"Motherboard": {
"Model": "",
"Name": ""
},
"Nic": [
{
"Ip": "103.45.102.36",
"Mac": "00:0c:29:19:40:3e",
"Name": "eth0"
},
{
"Ip": "10.45.102.36",
"Mac": "00:0c:29:19:40:48",
"Name": "eth1"
}
],
"NicDevice": "02:00.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)\n02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Coppe
r) (rev 01)", "Oob": "",
"Raid": "",
"Sn": "02:42:33:9e:13:43"
}
文章最后更新时间: 2020-06-28 17:02:52