| | |
| | | #include "../library/os/cpu_info.hpp" |
| | | #include "../library/os/dmi_info.hpp" |
| | | #include "../library/os/network.hpp" |
| | | |
| | | //硬件的设备信息获取 |
| | | using namespace std; |
| | | using namespace license::os; |
| | | |
| | |
| | | std::cout << x.second << ": NA" << endl; |
| | | } |
| | | } |
| | | cout << "Virtualiz. class :" << descByVirt.find(exec_env_info.virtualization)->second << endl; |
| | | cout << "Virtualiz. detail:" << descByVirtDetail.find(exec_env_info.virtualization_detail)->second << endl; |
| | | cout << "Cloud provider :" << descByCloudProvider.find(exec_env_info.cloud_provider)->second << endl; |
| | | |
| | | std::vector<license::os::OsAdapterInfo> adapterInfos; |
| | | FUNCTION_RETURN ret = license::os::getAdapterInfos(adapterInfos); |
| | |
| | | license::os::DmiInfo dmi_info; |
| | | cout << "Bios vendor :" << dmi_info.bios_vendor() << endl; |
| | | cout << "Bios description :" << dmi_info.bios_description() << endl; |
| | | cout << "System vendor :" << dmi_info.sys_vendor() << endl << endl; |
| | | cout << "System vendor :" << dmi_info.sys_vendor() << endl; |
| | | cout << "Cpu Vendor (dmi) :" << dmi_info.cpu_manufacturer() << endl; |
| | | cout << "Cpu Cores (dmi) :" << dmi_info.cpu_cores() << endl; |
| | | cout << "==================" << endl; |
| | | if (argc == 2) { |
| | | const string fname(argv[1]); |