CN109254922A - A kind of automated testing method and device of server B MC Redfish function - Google Patents
A kind of automated testing method and device of server B MC Redfish function Download PDFInfo
- Publication number
- CN109254922A CN109254922A CN201811093244.3A CN201811093244A CN109254922A CN 109254922 A CN109254922 A CN 109254922A CN 201811093244 A CN201811093244 A CN 201811093244A CN 109254922 A CN109254922 A CN 109254922A
- Authority
- CN
- China
- Prior art keywords
- bmc
- functional module
- redfish
- server
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides the automated testing method and device of a kind of server B MC Redfish function, and wherein method includes: SS1, obtains BMC functional module standard value;SS2, BMC functional module test value is obtained;SS3, compare BMC functional module standard value and BMC functional module test value, if BMC functional module standard value is consistent with BMC functional module test value, server B MC Redfish function is normal;If BMC functional module standard value and BMC functional module test value are inconsistent, server B MC Redfish dysfunction.The automated testing method and device of server B MC Redfish function proposed by the present invention can carry out automatic test to BMC Redfish function, ensure that the normal operation of BMC Redfish function, have good technological value and wide application prospect.
Description
Technical field
The present invention relates to server testing fields, and in particular to a kind of automation survey of server B MC Redfish function
Method for testing and device.
Background technique
With the continuous development of cloud computing, automation requirement of the large size computer room such as data center for Platform Server O&M
Higher and higher, BMC as Platform Server monitoring management platform is then that automatic management demand pays close attention to object.
The expansible platform management API of Redfish (The Redfish Scalable Platforms Management
API (" Redfish ")) it is a kind of new specification, the number being defined in model format is accessed using RESTful Interface Semantic
According to for executing band external system management (out-of-band systems managment).
Platform Server BMC Redfish function is defined on model format by using RESTful Interface Semantic to access
In data, and then obtain server capability information, for server capability information bulk management provide it is comprehensive and simple
Method.And currently lack the test method for BMC Redfish function, it not can guarantee the normal of BMC Redfish function
The normal operation of operation and Platform Server.
To solve the above problems, the present invention propose a kind of server B MC Redfish function automated testing method and
Device.
Summary of the invention
It is an object of the present invention to propose the automated testing method and device of a kind of server B MC Redfish function,
To solve the above technical problems.
In a first aspect, the present invention provides a kind of automated testing method of server B MC Redfish function, comprising:
SS1, BMC functional module standard value is obtained;
SS2, BMC functional module test value is obtained;
SS3, compare BMC functional module standard value and BMC functional module test value, if BMC functional module standard value and BMC
Functional module test value is consistent, then server B MC Redfish function is normal;If BMC functional module standard value and BMC function
Module testing value is inconsistent, then server B MC Redfish dysfunction.
Further, it when server B MC Redfish dysfunction, issues alarm and reminds.
Further, in step SS1, IPMI is accessed by IPMItool tool and obtains BMC functional module standard value.
Further, step SS2 is specifically included:
The specified corresponding path URL of BMC functional module;
According to the corresponding path URL of BMC functional module, BMC is logged in by CURL tool, obtains TOKEN;
BMC is accessed by TOKEN, obtains BMC functional module test value.
Further, the BMC functional module includes: chassis module, System module, Account Service mould
Block, Storages module, Managers module.
Second aspect, the present invention propose a kind of automatic test device of server B MC Redfish function, comprising:
BMC functional module standard value obtains module: for obtaining BMC functional module standard value;
BMC functional module test value obtains module: for obtaining BMC functional module test value;
Comparison module: for comparing BMC functional module standard value and BMC functional module test value, if BMC functional module
Standard value is consistent with BMC functional module test value, then server B MC Redfish function is normal;If BMC functional module standard value
It is inconsistent with BMC functional module test value, then server B MC Redfish dysfunction.
Further, the automatic test device of the server B MC Redfish function further include:
Alarm module: it is reminded for when server B MC Redfish dysfunction, issuing alarm.
Further, the BMC functional module standard value obtains module and accesses IPMI acquisition by IPMItool tool
BMC functional module standard value.
Further, the BMC functional module test value obtains module and is specifically used for:
The specified corresponding path URL of BMC functional module;
According to the corresponding path URL of BMC functional module, BMC is logged in by CURL tool, obtains TOKEN;
BMC is accessed by TOKEN, obtains BMC functional module test value.
Further, the BMC functional module includes: chassis module, System module, Account Service mould
Block, Storages module, Managers module.
The present invention provides the automated testing method and device of a kind of server B MC Redfish function, by obtaining BMC
Functional module standard value, and BMC is accessed by Redfish interface, BMC functional module test value is obtained, then by BMC function mould
Whether block standard value is compared with BMC functional module test value, normal with test b MC Redfish function.The present invention fills up
Currently for the blank of the test of BMC Redfish function, the normal operation and platform clothes of BMC Redfish function ensure that
The normal operation of business device.Invention also improves the testing efficiency of BMC Redfish functional test and test quality, by more
The test of a BMC functional module avoids the generation of accidentally detecting leakage situation, and present invention further introduces alarming mechanisms, in BMC
Alarm is issued when Redfish dysfunction in time to remind, improves the working efficiency of staff.In conclusion the present invention mentions
The automated testing method and device of server B MC Redfish function out can carry out BMC Redfish function automatic
Change test, ensure that the normal operation of BMC Redfish function, there is good technological value and wide application prospect.
Detailed description of the invention
Illustrate the embodiment of the present invention in order to clearer, attached drawing needed in the embodiment is done into simple Jie below
It continues, it is clear that, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art
For, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the automated testing method of server B MC Redfish function in the embodiment of the present invention.
Fig. 2 is the schematic diagram of the automatic test device of server B MC Redfish function in the embodiment of the present invention.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, clear and complete retouch is carried out to the technical solution in inventive embodiments
It states, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole embodiments.Based on the present invention
In embodiment, those of ordinary skill in the art without making creative work, every other implementation obtained
Example, belongs to the scope of the present invention.
In order to make those skilled in the art better understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
The embodiment of the present invention provides a kind of automated testing method of server B MC Redfish function, as shown in Figure 1
, comprising:
SS1, BMC functional module standard value is obtained;
SS2, BMC functional module test value is obtained;
SS3, compare BMC functional module standard value and BMC functional module test value:
If BMC functional module standard value is consistent with BMC functional module test value, server B MC Redfish function is just
Often;
If BMC functional module standard value and BMC functional module test value are inconsistent, server B MC Redfish function
It is abnormal;
SS4, when server B MC Redfish dysfunction, issue alarm remind.
In the present embodiment, above-mentioned BMC functional module includes:
Chassis module, including FRU information, Power information, Thermal information, PCIE device information;
System module, including processor information storage information, memory information, network information etc.;
Account Service module, including login username information, encrypted message etc.;
Storages module, including RAID card information, for carrying out hard disk management, virtual hard disk management;
Managers module, including BMC restarting information, log management information, network setup information etc..
In the present embodiment, in step SS1, IPMI is accessed by IPMItool tool and obtains BMC functional module standard value.
In the present embodiment, step SS2 specifically includes the following steps:
SS201, the specified corresponding path URL of BMC functional module;
SS202, TOKEN is obtained by CURL tool login BMC according to the BMC functional module corresponding path URL;
SS203, BMC is accessed by TOKEN, obtains BMC functional module test value.
Above-mentioned CURL tool is the tool that Linux system carries, due to needing the visit order executed more in step SS2,
Here by taking an order as an example, the process that BMC functional module test value is obtained by CURL tool is shown:
SS201, the specified corresponding path URL of BMC functional module;
It orders as follows:
URL=" https: // "+IP+ "/redfish/v1/SessionService/Sessions ".
SS202, TOKEN is obtained by CURL tool login BMC according to the BMC functional module corresponding path URL;
It orders as follows:
Curl-c $ { COOKIE_FILE }-k $ URL-X POST--data " username=$ { USERNAME } &
Password=$ PASSWORD
{"ok":0,"privilege":4,"extendedpriv":259,"racsession_id": 1,"remote_
addr":"100.2.74.79","server_name":"100.2.74.43", "server_addr":"
100.2.74.43","HTTPSEnabled":0,"CSRFToken": "bnBUAWsP"}
SS203, BMC is accessed by TOKEN, obtains BMC functional module test value;
For this sentences reading BMC MAC Address, order as follows:
URL=" https: // "+IP+ "/redfish/v1/Managers/BMC/NICs " //BMC
curl-X GET-H"X-CSRFTOKEN:bnBUAWsP"$URL-b./cookie
Before BMC time-out, TOKEN can be obtained by this and access BMC functional module.It is published after access
BMC is ordered as follows: curl-k-b $ { COOKIE_FILE } https: // "+IP+ "/redfish/v1/Managers/
BMC/NICs-X DELETE-H "X-CSRFTOKEN:${CSRF_TOKEN}"。
The embodiment of the present invention also provides a kind of automatic test device of server B MC Redfish function, as shown in Figure 2
, comprising:
BMC functional module standard value obtains module: for obtaining BMC functional module standard value;
BMC functional module test value obtains module: for obtaining BMC functional module test value;
Comparison module: for comparing BMC functional module standard value and BMC functional module test value, if BMC functional module
Standard value is consistent with BMC functional module test value, then server B MC Redfish function is normal;If BMC functional module standard value
It is inconsistent with BMC functional module test value, then server B MC Redfish dysfunction;
Alarm module: it is reminded for when server B MC Redfish dysfunction, issuing alarm.
In the present embodiment, above-mentioned BMC functional module includes:
Chassis module, including FRU information, Power information, Thermal information, PCIE device information;
System module, including processor information storage information, memory information, network information etc.;
Account Service module, including login username information, encrypted message etc.;
Storages module, including RAID card information, for carrying out hard disk management, virtual hard disk management;
Managers module, including BMC restarting information, log management information, network setup information etc..
In the present embodiment, above-mentioned BMC functional module standard value obtains module and accesses IPMI acquisition by IPMItool tool
BMC functional module standard value.
In the present embodiment, above-mentioned BMC functional module test value acquisition module of stating is specifically used for:
The specified corresponding path URL of BMC functional module;
According to the corresponding path URL of BMC functional module, BMC is logged in by CURL tool, obtains TOKEN;
BMC is accessed by TOKEN, obtains BMC functional module test value.
The automated testing method to a kind of server B MC Redfish function disclosed by the invention and device carry out above
It is discussed in detail.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with its
The difference of his embodiment, the same or similar parts in each embodiment may refer to each other.For being disclosed in embodiment
For system, since it is corresponded to the methods disclosed in the examples, what is described is relatively simple, and correlation can go out referring to method part
Explanation.The above is only a preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of automated testing method of server B MC Redfish function characterized by comprising
SS1, BMC functional module standard value is obtained;
SS2, BMC functional module test value is obtained;
SS3, compare BMC functional module standard value and BMC functional module test value, if BMC functional module standard value and BMC function
Module testing value is consistent, then server B MC Redfish function is normal;If BMC functional module standard value and BMC functional module are surveyed
Examination value is inconsistent, then server B MC Redfish dysfunction.
2. the automated testing method of server B MC Redfish function according to claim 1, which is characterized in that when
When server B MC Redfish dysfunction, issues alarm and remind.
3. the automated testing method of server B MC Redfish function according to claim 1, which is characterized in that step
In rapid SS1, IPMI is accessed by IPMItool tool and obtains BMC functional module standard value.
4. the automated testing method of server B MC Redfish function according to claim 1, which is characterized in that step
Rapid SS2 is specifically included:
The specified corresponding path URL of BMC functional module;
According to the corresponding path URL of BMC functional module, BMC is logged in by CURL tool, obtains TOKEN;It is accessed by TOKEN
BMC obtains BMC functional module test value.
5. the automated testing method of server B MC Redfish function according to claim 1, which is characterized in that institute
Stating BMC functional module includes: chassis module, System module, AccountService module, Storages module,
Managers module.
6. a kind of automatic test device of server B MC Redfish function characterized by comprising
BMC functional module standard value obtains module: for obtaining BMC functional module standard value;
BMC functional module test value obtains module: for obtaining BMC functional module test value;
Comparison module: for comparing BMC functional module standard value and BMC functional module test value, if BMC functional module standard value
Consistent with BMC functional module test value, then server B MC Redfish function is normal;If BMC functional module standard value and BMC
Functional module test value is inconsistent, then server B MCRedfish dysfunction.
7. the automatic test device of server B MC Redfish function according to claim 6, which is characterized in that also
Include:
Alarm module: it is reminded for when server B MC Redfish dysfunction, issuing alarm.
8. the automatic test device of server B MC Redfish function according to claim 6, which is characterized in that institute
It states BMC functional module standard value acquisition module and IPMI acquisition BMC functional module standard value is accessed by IPMItool tool.
9. the automatic test device of server B MC Redfish function according to claim 6, the BMC function mould
Block test value obtains module and is specifically used for:
The specified corresponding path URL of BMC functional module;
According to the corresponding path URL of BMC functional module, BMC is logged in by CURL tool, obtains TOKEN;It is accessed by TOKEN
BMC obtains BMC functional module test value.
10. the automatic test device of server B MC Redfish function according to claim 6, which is characterized in that institute
Stating BMC functional module includes: chassis module, System module, AccountService module, Storages module,
Managers module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811093244.3A CN109254922B (en) | 2018-09-19 | 2018-09-19 | Automatic testing method and device for BMC Redfish function of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811093244.3A CN109254922B (en) | 2018-09-19 | 2018-09-19 | Automatic testing method and device for BMC Redfish function of server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109254922A true CN109254922A (en) | 2019-01-22 |
CN109254922B CN109254922B (en) | 2021-10-22 |
Family
ID=65047700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811093244.3A Active CN109254922B (en) | 2018-09-19 | 2018-09-19 | Automatic testing method and device for BMC Redfish function of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109254922B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124804A (en) * | 2019-11-22 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Test method and device |
CN111368510A (en) * | 2020-03-08 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Method and device for automatically generating redfish character string name |
CN113065048A (en) * | 2021-02-26 | 2021-07-02 | 山东英信计算机技术有限公司 | BMC Web automatic detection method, system and medium based on Web crawler |
US20220114027A1 (en) * | 2020-10-13 | 2022-04-14 | Dell Products, L.P. | System and method for secure management of non-registered components of an information handling system using a baseboard management controller |
CN114816876A (en) * | 2022-04-25 | 2022-07-29 | 宝德计算机系统股份有限公司 | Automatic test system for server Redfish interface specification |
CN116737571A (en) * | 2023-06-16 | 2023-09-12 | 合芯科技(苏州)有限公司 | Redfish automatic test method, system, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180026835A1 (en) * | 2016-07-22 | 2018-01-25 | Intel Corporation | Techniques to control system updates and configuration changes via the cloud |
CN108171088A (en) * | 2017-12-26 | 2018-06-15 | 武汉大学 | A kind of guard method of server hardware credibility and device based on BMC |
CN108334411A (en) * | 2018-01-30 | 2018-07-27 | 郑州云海信息技术有限公司 | Resource transfer method and device based on Redfish in a kind of BMC |
-
2018
- 2018-09-19 CN CN201811093244.3A patent/CN109254922B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180026835A1 (en) * | 2016-07-22 | 2018-01-25 | Intel Corporation | Techniques to control system updates and configuration changes via the cloud |
CN108171088A (en) * | 2017-12-26 | 2018-06-15 | 武汉大学 | A kind of guard method of server hardware credibility and device based on BMC |
CN108334411A (en) * | 2018-01-30 | 2018-07-27 | 郑州云海信息技术有限公司 | Resource transfer method and device based on Redfish in a kind of BMC |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124804A (en) * | 2019-11-22 | 2020-05-08 | 苏州浪潮智能科技有限公司 | Test method and device |
CN111124804B (en) * | 2019-11-22 | 2022-09-20 | 苏州浪潮智能科技有限公司 | Test method and device |
CN111368510A (en) * | 2020-03-08 | 2020-07-03 | 苏州浪潮智能科技有限公司 | Method and device for automatically generating redfish character string name |
US20220114027A1 (en) * | 2020-10-13 | 2022-04-14 | Dell Products, L.P. | System and method for secure management of non-registered components of an information handling system using a baseboard management controller |
US11847082B2 (en) * | 2020-10-13 | 2023-12-19 | Dell Products L.P. | System and method for secure management of non-registered components of an information handling system using a baseboard management controller |
CN113065048A (en) * | 2021-02-26 | 2021-07-02 | 山东英信计算机技术有限公司 | BMC Web automatic detection method, system and medium based on Web crawler |
CN113065048B (en) * | 2021-02-26 | 2023-03-21 | 山东英信计算机技术有限公司 | BMC Web automatic detection method, system and medium based on Web crawler |
CN114816876A (en) * | 2022-04-25 | 2022-07-29 | 宝德计算机系统股份有限公司 | Automatic test system for server Redfish interface specification |
CN116737571A (en) * | 2023-06-16 | 2023-09-12 | 合芯科技(苏州)有限公司 | Redfish automatic test method, system, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109254922B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN112119374B (en) | Selectively providing mutual transport layer security using alternate server names | |
US9569325B2 (en) | Method and system for automated test and result comparison | |
CN105373899A (en) | Server asset management method and apparatus | |
CN102082781A (en) | Server management system and method | |
WO2015116064A1 (en) | End user monitoring to automate issue tracking | |
CN110737726B (en) | Method and device for determining test data of interface to be tested | |
US9727394B2 (en) | Establishing causality order of computer trace records | |
CN108667840A (en) | Injection loophole detection method and device | |
CN111522703A (en) | Method, apparatus and computer program product for monitoring access requests | |
WO2021167659A1 (en) | Systems and methods of monitoring and controlling remote assets | |
CN109445517A (en) | A kind of method, apparatus, terminal and the storage medium of synchronous BMC and OS time | |
US11599404B2 (en) | Correlation-based multi-source problem diagnosis | |
US11750471B2 (en) | Method and apparatus for determining resource configuration of cloud service system | |
US10462234B2 (en) | Application resilience system and method thereof for applications deployed on platform | |
US10409662B1 (en) | Automated anomaly detection | |
CN110347546A (en) | Monitor task dynamic adjusting method, device, medium and electronic equipment | |
CN109669829A (en) | A kind of diagnosis adjustment method, device and server based on BMC | |
US11995562B2 (en) | Integrating documentation knowledge with log mining for system diagnosis | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN102822806B (en) | Detect the state that gets nowhere of application | |
CN117349127B (en) | GPU card-falling detection method and device | |
US8977901B1 (en) | Generating service call patterns for systems under test | |
CN109327344B (en) | Fault diagnosis method and device for white box switch | |
US9959159B2 (en) | Dynamic monitoring and problem resolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |