The invention provides a server sensor information consistency detection method, system, terminal and storage medium, including: entering the smashclp command line to obtain sensor information, marked as the first comparison information; using IPMI out of band to obtain sensor information, marked as the second comparison information; comparing whether the first comparison information is consistent with the second comparison information, if the two groups of information are consistent, judging Pass the fixed test. In terms of large amount of data, diversity, real-time update and value degree, the invention effectively reduces the time and energy of manual comparison, improves the working efficiency and solves the problem of accuracy of result comparison, and the test process and result real-time display, and saves the script running log, which is convenient for real-time query.
【技术实现步骤摘要】
服务器sensor信息一致性测试方法、系统、终端及存储介质
本专利技术属于服务器测试
,具体涉及一种服务器sensor信息一致性测试方法、系统、终端及存储介质。
技术介绍
sensor信息的一致性检查,在服务器SMASHCLP、IPMI带外、带内等不同场景下显的尤为重要。基于数据信息的”4V+1O”特性,人工手动检查越发的耗时耗力,且整个过程以肉眼为主,并没有相应的log作为记录,且准确性也有待验证。
技术实现思路
针对现有技术的上述不足,本专利技术提供一种服务器sensor信息一致性测试方法、系统、终端及存储介质,通过SMASHCLP和IPMI带外的除CPU,PSU,DISK之外的sensor信息一致性自动化检查方法,从而提高一致性检查的准确性和快速性。以解决上述技术问题。第一方面,本专利技术提供一种服务器sensor信息一致性测试方法,包括:进入smashclp命令行获取sensor信息,标记为第一比对信息;使用ipmi带外获取sensor信息,标记为第二比对信息; >对比所述第一比对信本文档来自技高网...
【技术保护点】
1.一种服务器sensor信息一致性测试方法,其特征在于,包括:/n进入smashclp命令行获取sensor信息,标记为第一比对信息;/n使用ipmi带外获取sensor信息,标记为第二比对信息;/n对比所述第一比对信息与所述第二比对信息是否一致,若两组信息一致则判定测试通过。/n
【技术特征摘要】
1.一种服务器sensor信息一致性测试方法,其特征在于,包括:
进入smashclp命令行获取sensor信息,标记为第一比对信息;
使用ipmi带外获取sensor信息,标记为第二比对信息;
对比所述第一比对信息与所述第二比对信息是否一致,若两组信息一致则判定测试通过。
2.根据权利要求1所述的方法,其特征在于,所述进入smashclp命令行获取sensor信息,包括:
使用超级用户连接待测BMC,调用smashclp命令行;
调用sensor-list获取返回的sensor信息;
采集sensor信息的字段参数;
根据所述字段参数将sensor信息转换为List<Map<String,String>>格式。
3.根据权利要求1所述的方法,其特征在于,在所述对比第一比对信息与第二比对信息是否一致之前,所述方法包括:
筛选smashclp命令行获取的sensor信息中的CPU信息、PSU信息和DISK信息,清除筛选出的信息后将余下的sensor信息作为第一比对信息;
筛选ipmi带外获取的sensor信息中的CPU信息、PSU信息和DISK信息,清除筛选出的信息后将余下的sensor信息作为第二比对信息。
4.根据权利要求1所述的方法,其特征在于,所述对比第一比对信息与所述第二比对信息是否一致,若两组信息一致则判定测试通过,包括:
判断第一比对信息与第二比对信息中的sensor信息是否一致,所述sensor信息包括sensor的name、num和value参数值:
是,则判定服务器服务器sensor信息一致性测试通过;
否,则判定测试未通过,并输出异常比对参数。
5.一种服务器sensor信息一致性测试系统,其特征在于,包括:
第一获取单元,配置用于进入smashclp命令行获取sensor信息,标记为第一比对信息;
第二获取单元,配置用于使用ipm...
【专利技术属性】
技术研发人员:徐培培,
申请(专利权)人:苏州浪潮智能科技有限公司,
类型:发明
国别省市:江苏;32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。