The invention provides a method, system, terminal and storage medium for automatically obtaining cpubusnumber, including: preset the value of the server and set the log acquisition configuration file; call ipmitool to send a command to export sol log according to the configuration file; set the key word of cpubusnumber retrieval, and retrieve the specific parameter value of cpubusnumber from the sol log according to the keyword. The invention changes the previous way of using EDS to query bus number, adopts remote operation to export the full log sol information, and then retrieves the CPU bus number information. It avoids the problem of information reading error due to EDs document query and reading value, and avoids using lspci command, so it is not based on OS. The invention can be used in DOS environment or PC of control end of the server, and has no limitation on the platform of SUT. The device has the advantages of simple operation, easy realization, time and labor saving and cost saving.
【技术实现步骤摘要】
一种自动获取CPUBUSNumber的方法、系统、终端及存储介质
本专利技术属于服务器测试
,具体涉及一种自动获取CPUBUSNumber的方法、系统、终端及存储介质。
技术介绍
研发测试过程中,经常会接触到不同平台对应的ProcessorExternalDesignSpecifications,即平时我们所说的EDS文档。其中,不少有关BIOS的选项是通过Bus:Device.Function寄存器的形式来查询的。Device,Function在EDS文档中都是可以直接读取的,但Busnumber针对不同平台,不同案子是不同的,文档中没有给出具体的值。所以要想了解选项的实际情况,对应研发或测试人员来说查找CPUBUSNumber,就是非常重要的一件事情。通常我们查找CPUBUSNumber,都是手动一步步查询,最简单的是在linuxOS下通过lspci命令加B(0):Device(x).Function(y),然后找到offset,从而找到CPU0的Bus(0)-Bus(3)。这种方法需要安装OS,还要翻阅EDS文档找到Device、function的值,输完命令后再手动查找。相当的繁琐,尤其对于仅仅想知道CPUBusNumber的人员来说,工作量太大。对于多CPU的服务器设备,难度更大。
技术实现思路
针对现有技术的上述不足,本专利技术提供一种自动获取CPUBUSNumber的方法、系统、终端及存储介质,以解决上述技术问题。第一方面,本专利技术提供一种自动获取CPUBUS
【技术保护点】
1.一种自动获取CPUBUSNumber的方法,其特征在于,包括:/n对服务器进行预设值并设置日志获取配置文件;/n根据所述配置文件调用IPMITOOL发送命令导出sol log;/n设置CPUBUSNumber检索关键词,根据所述关键词从所述sol log检索出CPUBUSNumber具体参数值。/n
【技术特征摘要】
1.一种自动获取CPUBUSNumber的方法,其特征在于,包括:
对服务器进行预设值并设置日志获取配置文件;
根据所述配置文件调用IPMITOOL发送命令导出sollog;
设置CPUBUSNumber检索关键词,根据所述关键词从所述sollog检索出CPUBUSNumber具体参数值。
2.根据权利要求1所述的方法,其特征在于,所述对服务器进行预设值并设置日志获取配置文件,包括:
将setup中的systemdebuglevel,设置为debugmode,报错重启;
输入BMCIP、BMCUSERNAME、BMCUSERPASSWORD作为配置文件。
3.根据权利要求1所述的方法,其特征在于,所述根据配置文件调用IPMITOOL发送命令导出sollog,包括:
根据配置文件定位目标BMC;
调用IPMITOOL发送命令访问目标BMC的sollog;
将所述sollog存储至指定路径。
4.一种自动获取CPUBUSNumber的系统,其特征在于,包括:
预先设置单元,配置用于对服务器进行预设值并设置日志获取配置文件;
日志导出单元,配置用于根据所述配置文件调用IPMIT...
【专利技术属性】
技术研发人员:李彦华,
申请(专利权)人:苏州浪潮智能科技有限公司,
类型:发明
国别省市:江苏;32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。