CN110659166A - Method and equipment for testing BMC asset information function - Google Patents

Method and equipment for testing BMC asset information function Download PDF

Info

Publication number
CN110659166A
CN110659166A CN201910839662.0A CN201910839662A CN110659166A CN 110659166 A CN110659166 A CN 110659166A CN 201910839662 A CN201910839662 A CN 201910839662A CN 110659166 A CN110659166 A CN 110659166A
Authority
CN
China
Prior art keywords
bmc
asset information
combination
ipmi command
information function
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
Application number
CN201910839662.0A
Other languages
Chinese (zh)
Other versions
CN110659166B (en
Inventor
伯绍文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910839662.0A priority Critical patent/CN110659166B/en
Publication of CN110659166A publication Critical patent/CN110659166A/en
Application granted granted Critical
Publication of CN110659166B publication Critical patent/CN110659166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and equipment for testing BMC asset information function, wherein the method comprises the following steps: generating a configuration table according to the combination of all the component information; converting each configuration in the configuration table into a corresponding IPMI command combination; sending the IPMI command combination to the BMC; sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC; the BMC asset information function is verified based on a comparison of the results with standard asset information. By using the method provided by the invention, the maximum test coverage of different shipment configurations can be ensured without actually matching different board cards or components, the accuracy and integrity of the BMC asset information function are ensured, and the test efficiency is improved.

Description

Method and equipment for testing BMC asset information function
Technical Field
The field relates to the field of computers, and more particularly to a method and a device for testing BMC asset information functions.
Background
With the development of the internet and big data, the number of client purchasing servers is increasing day by day. The BMC (baseboard management controller) is used as a monitoring management center of a server, and an important function is to show "asset information" of the server to a client, that is, how many CPUs, how many memories, how many network cards, what model and what specification each CPU is configured with, what model and what capacity each memory is configured with, and the like.
However, when the function of the BMC is used for processing complex configuration, problems easily occur, for example, after more than 5 network cards are matched, only information of 3 cards can be displayed at most; and like PCIE SSD cards with different models of the same manufacturer, the PCIE SSD cards with the same model are displayed in the asset information, and the problems greatly influence the production or customers. In order to ensure the accuracy of the asset information in the BMC, the conventional testing method is to match with actual physical devices and check whether the information is correct or not after the BMC is started. This method, although most practical, is very inefficient. For a model with 10 CPU, 10 memory, 10 network card and 10 Raid card, different permutation and combination can reach dozens, the traditional method can not cover 100 percent, and the time is basically consumed in the processes of borrowing objects, building a prototype, starting up, disassembling the prototype and changing the objects.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method for testing a BMC asset information function, which can ensure maximum test coverage of different shipment configurations without actually collocating different boards or components, ensure accuracy and integrity of the BMC asset information function, and improve test efficiency.
Based on the above object, an aspect of the embodiments of the present invention provides a method for testing BMC asset information function, including the following steps:
generating a configuration table according to the combination of all the component information;
converting each configuration in the configuration table into a corresponding combination of IPMI (Intelligent platform management interface) commands;
sending the IPMI command combination to the BMC;
sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
the BMC asset information function is verified based on a comparison of the results with standard asset information.
According to one embodiment of the invention, the IPMI command combination is generated based on the interaction specification of BMC and IPMI command.
According to an embodiment of the present invention, further comprising: check if the result was successfully written to BMC.
According to an embodiment of the present invention, further comprising: results are queried using the Restful command.
According to an embodiment of the present invention, further comprising: the results are displayed in a web interface.
In another aspect of the embodiments of the present invention, there is also provided a BMC asset information function test apparatus, including:
at least one processor; and
a memory storing program code executable by the processor, the program code when executed by the processor performing the steps of:
generating a configuration table according to the combination of all the component information;
converting each configuration in the configuration table into a corresponding IPMI command combination;
sending the IPMI command combination to the BMC;
sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
the BMC asset information function is verified based on a comparison of the results with standard asset information.
According to one embodiment of the invention, the steps further comprise: check if the result was successfully written to BMC.
According to one embodiment of the invention, the IPMI command combination is generated based on the interaction specification of BMC and IPMI command.
According to one embodiment of the invention, results are queried using the Restful command.
According to one embodiment of the invention, the results are displayed in a web interface.
The invention has the following beneficial technical effects: according to the method for testing the BMC asset information function, a configuration table is generated according to the combination of all component information; converting each configuration in the configuration table into a corresponding IPMI command combination; sending the IPMI command combination to the BMC; sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC; according to the technical scheme for checking the BMC asset information function based on the comparison of the result and the standard asset information, the maximum test coverage of different shipment configurations can be guaranteed without actually matching different board cards or components, the accuracy and the integrity of the BMC asset information function are guaranteed, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method for testing BMC asset information functionality according to one embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above-mentioned objects, a first aspect of the embodiments of the present invention provides an embodiment of a method for testing BMC asset information function. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, generating a configuration table according to the combination of all the component information;
s2 converting each configuration in the configuration table into a corresponding IPMI command combination;
s3 sending the IPMI command combination to the BMC;
s4 sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
s5 verifies BMC asset information functionality based on comparison of the results with standard asset information.
Through the technical scheme, the maximum test coverage of different shipment configurations can be guaranteed without actually matching different board cards or components, the accuracy and the integrity of the BMC asset information function are guaranteed, and the test efficiency is improved.
The component information as shown in table 1 below:
component part Model number Number of
CPU A/B/C/D 1/2
MEM E/F/G 2/4/6/8/10/12/14/16
PCIE H/I/J/K 0/1/2/3
The configuration table generated from the component information of table 1 is as follows:
CFG1:CPU,A,1;MEM,E,2;PCIE1,H,1;PCIE2,J,1
CFG2:CPU,B,2;MEM,F,16;PCIE1,I,1;PCIE2,J,1;PCIE3,K,1
CFG(M):CPU,D,2;MEM,F,10;PCIE1,I,1
a configuration table is generated according to the possibilities of all combinations of the component information of table 1, for example, configuration 1CFG1 in the above configuration table represents 1 a model CPU, 2E model MEM, 1H model card inserted in PCIE1, and 1J model card inserted in PCIE 2.
Configuration 2GFG2 shows 2B model CPUs, 16F model MEM, 1I model card inserted in PCIE1, 1J model card inserted in PCIE2, and 1K model card inserted in PCIE 3.
Configuration (M) indicates 2D model CPUs, 10F model MEM, and 1I model card plugged in PCIE 1. Table 1 and the configuration table are only examples, and the specific component information needs to be determined according to the currently tested BMC.
The standard output for each configuration is also specified after the configuration table is determined, and is used to compare with the asset information displayed in the BMC. For example, display configuration 1 is that the BMC can correctly display 1 CPU of a model, 2 memories of E model, 1 card of H model inserted in the position of PCIE1, and 1 card of J model inserted in the position of PCIE 2. And the information of a certain device is not displayed more or less, and the model of each device is the correct specification name, rather than any starting name, and the standards are all obtained by manually inquiring the specification number to ensure the correctness of the passing standards.
In a preferred embodiment of the present invention, the IPMI command combination is generated based on the interaction specification of BMC and IPMI command.
The BIOS sends related bottom layer information of CPU, MEM, PCIE, HDD, MAC, BIOS/ME FW and the like of the system in the POST (Power On Self test) process, such as type ID, position ID and device ID to BMC through IPMI OEM command, the BMC stores the related information in the EEPROM, corresponding character strings are found from a database stored in the BMC through analyzing the type ID, the position ID and the device ID sent by the BIOS and displayed in asset information of a WEB interface, and the data structure of the interactive command is shown in the following table 2:
Figure BDA0002189307160000051
Figure BDA0002189307160000061
converting the configuration information table described above into command combinations according to table 2, taking the CPU and memory information in CFG1 as an example, the flow is:
1) sending information of 1 CPU;
2) sending information of 2 memories;
the command combination is:
#CPU
echo"set cpu info!number="$i
ipmitool-H$IP-Uroot-Proot-Ilanplus raw 0x3c 0x01 0x01 0x01 0x00 0x01 0x0F 0x0F 0x0F 0x01 0x55 0x00 0x06 0x49 0x6E 0x74 0x65 0x6C 0x28 0x52 0x290x20 0x58 0x65 0x6F 0x6E 0x28 0x52 0x29 0x20 0x47 0x6F 0x6C 0x64 0x20 0x360x31 0x33 0x30 0x20 0x43 0x50 0x55 0x20 0x40 0x20 0x32 0x2E 0x31 0x30 0x470x48 0x7A 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x54 0x06 0x05 0x00 0x490x00 0x00 0x02 0xA0 0x0F 0x10 0x00 0x20 0x00 0x10 0x00 0x00 0x04 0x00 0x400x00 0x58 0x7D 0x00 0xFC 0x00 0x88 0x79 0x6f 0x5e 0x4d 0x3c 0x2b 0x1a
#MEM
echo"set mem info!number="$i
ipmitool-H$IP-Uroot-Proot-Ilanplus raw 0x3c 0x01 0x01 0x02 0x00 0x06 0x01 0x10 0x00 0x00 0x00 0x00 0x01 0x10 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF0xFF 0xFF 0xFF 0x00 0x31 0x00 0x53 0x61 0x6D 0x73 0x75 0x6E 0x67 0x00 0x000x00 0x55 0x08 0x55 0x08 0x1A 0x80 0x00 0x02 0x40 0x00 0xB0 0x04 0x10 0x00
ipmitool-H$IP-Uroot-Proot-Ilanplus raw 0x3c 0x01 0x01 0x02 0x01 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF0xFF 0xFF 0xFF 0x00 0x37 0x00 0x34 0x31 0x35 0x30 0x31 0x35 0x33 0x45 0x000x00 0x4D 0x33 0x39 0x33 0x41 0x32 0x47 0x34 0x30 0x44 0x42 0x30 0x2D 0x430x50 0x42 0x20 0x20 0x20 0x00
and in the BMC which sends the command combination generated above, the BMC generates component information according to the interaction specification of the BMC and the IPMI command. For example, if the BMC asset information function is correct, executing the command may indicate that the BMC can correctly display 1 CPU of a model a, 2 memories of a model E, 1 card of an H model inserted in the PCIE1, and 1 card of a J model inserted in the PCIE 2. And then, comparing according to the standard asset information in the BMC, and detecting whether the displayed information after the BMC executes the command is correct so as to detect whether the BMC asset information function is correct. If the display result is not consistent with the standard asset information, the BMC needs to be maintained.
In a preferred embodiment of the present invention, after sending the IPMI command combination to the BMC, the method further includes: and checking whether the result is successfully written into the BMC to ensure that the BMC can receive the IPMI command.
In a preferred embodiment of the invention, results are queried using the Restful command. The BMC is logged in through a Restful interface, then asset information is collected, and finally the BMC is logged out.
In a preferred embodiment of the invention, the results are displayed in a web interface.
The method provides a method for testing the BMC asset information function. The invention extracts the BIOS and BMC interactive command, simulates the BIOS to send different asset information contents to the BMC, and covers all possible shipment configurations of the machine types. By the method, the maximum test coverage of different shipment configurations can be guaranteed without actually matching different board cards or components, the accuracy and the integrity of the BMC asset information function are guaranteed, and the test efficiency is improved.
The above embodiments are only specific cases of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any method for implementing an automated testing of a BMC asset information function based on IPMI interactive commands according to the present invention and any suitable changes or substitutions thereof by those skilled in the art should fall within the scope of the present invention.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, a second aspect of the embodiments of the present invention provides a test device for implementing a BMC asset information function, including:
at least one processor; and
a memory storing program code executable by the processor, the program code when executed by the processor performing the steps of:
generating a configuration table according to the combination of all the component information;
converting each configuration in the configuration table into a corresponding IPMI command combination;
sending the IPMI command combination to the BMC;
sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
the BMC asset information function is verified based on a comparison of the results with standard asset information.
In a preferred embodiment of the present invention, the steps further comprise: check if the result was successfully written to BMC.
In a preferred embodiment of the present invention, the IPMI command combination is generated based on the interaction specification of BMC and IPMI command.
In a preferred embodiment of the invention, results are queried using the Restful command.
In a preferred embodiment of the invention, the results are displayed in a web interface.
Through the technical scheme, the maximum test coverage of different shipment configurations can be guaranteed without actually matching different board cards or components, the accuracy and the integrity of the BMC asset information function are guaranteed, and the test efficiency is improved.
It should be particularly noted that the embodiment of the system described above employs the embodiment of the method described above to specifically describe the working process of each module, and those skilled in the art can easily think that the modules are applied to other embodiments of the method described above.
Further, the above-described method steps and system elements or modules may also be implemented using a controller and a computer-readable storage medium for storing a computer program for causing the controller to implement the functions of the above-described steps or elements or modules.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The embodiments described above, particularly any "preferred" embodiments, are possible examples of implementations and are presented merely to clearly understand the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure and protected by the following claims.

Claims (10)

1. A method for testing BMC asset information function is characterized by comprising the following steps:
generating a configuration table according to the combination of all the component information;
converting each configuration in the configuration table into a corresponding IPMI command combination;
sending the IPMI command combination to a BMC;
sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
verifying the BMC asset information function based on a comparison of the execution result with standard asset information.
2. The method of claim 1, wherein the IPMI command combination is generated based on interaction specification of BMC and IPMI command.
3. The method of claim 1, further comprising: and checking whether the execution result is successfully written into the BMC.
4. The method of claim 1, further comprising: the results of the execution are queried using the Restful command.
5. The method of claim 4, further comprising: and displaying the execution result in a web interface.
6. A BMC asset information function testing device, the device comprising:
at least one processor; and
a memory storing program code executable by the processor, the program code, when executed by the processor, performing the steps of:
generating a configuration table according to the combination of all the component information;
converting each configuration in the configuration table into a corresponding IPMI command combination;
sending the IPMI command combination to a BMC;
sequentially executing each IPMI command combination through the BMC, and writing an execution result into the BMC;
and checking the BMC asset information function based on the comparison of the execution result and the standard asset information.
7. The apparatus of claim 6, wherein the steps further comprise: and checking whether the result is successfully written into the BMC.
8. The device of claim 6, wherein the IPMI command combination is generated based on interaction specification of BMC and IPMI command.
9. The apparatus of claim 6, wherein the results are queried using a Restful command.
10. The apparatus of claim 9, wherein the results are displayed in a web interface.
CN201910839662.0A 2019-09-03 2019-09-03 Method and equipment for testing BMC asset information function Active CN110659166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839662.0A CN110659166B (en) 2019-09-03 2019-09-03 Method and equipment for testing BMC asset information function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839662.0A CN110659166B (en) 2019-09-03 2019-09-03 Method and equipment for testing BMC asset information function

Publications (2)

Publication Number Publication Date
CN110659166A true CN110659166A (en) 2020-01-07
CN110659166B CN110659166B (en) 2022-08-02

Family

ID=69037941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839662.0A Active CN110659166B (en) 2019-09-03 2019-09-03 Method and equipment for testing BMC asset information function

Country Status (1)

Country Link
CN (1) CN110659166B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168403A (en) * 2021-11-03 2022-03-11 中科可控信息产业有限公司 Information management method, information management device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell-based method for testing stability of rack asset information
CN108197309A (en) * 2018-01-31 2018-06-22 郑州云海信息技术有限公司 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information
CN108829594A (en) * 2018-06-07 2018-11-16 郑州云海信息技术有限公司 The method and system of automatic test BMC web assets information function under a kind of Linux

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell-based method for testing stability of rack asset information
CN108197309A (en) * 2018-01-31 2018-06-22 郑州云海信息技术有限公司 A kind of method, system and the readable storage medium storing program for executing of the storage of server assets information
CN108829594A (en) * 2018-06-07 2018-11-16 郑州云海信息技术有限公司 The method and system of automatic test BMC web assets information function under a kind of Linux

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168403A (en) * 2021-11-03 2022-03-11 中科可控信息产业有限公司 Information management method, information management device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110659166B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN105283851B (en) For selecting the cost analysis of tracking target
Li et al. Towards a taxonomy of performance evaluation of commercial Cloud services
CN109117358A (en) test method and test device for electronic equipment
CN108960782A (en) content auditing method and device
CN107870976A (en) Resume identification device, method and computer-readable recording medium
CN109783859A (en) Model building method, device and computer readable storage medium
US20150338846A1 (en) A method and system for quality inspection within a multi layer manufacturing lifecycle
CN110659166B (en) Method and equipment for testing BMC asset information function
CN106407054B (en) BMC automatic test system and method
CN106528415A (en) Software compatibility test method, business platform and system
CN115794519A (en) Test method, test system, electronic device and readable storage medium
CN111652757A (en) Method and device for analyzing customer behaviors in electric power business hall
CN108427637A (en) Test cases recommends method, electronic device and readable storage medium storing program for executing
CN110059083A (en) A kind of data evaluation method, apparatus and electronic equipment
CN113220597B (en) Test method, test device, electronic equipment and storage medium
Cole Data center infrastructure management
JP7252332B2 (en) Method and system for robotics application development
CN114546814A (en) Recording playback method, recording playback device and storage medium
CN107885644A (en) It is a kind of based on the method that BIOS default values are quickly checked under linux system
CN117057935A (en) Data processing method, device, equipment and storage medium based on field design
Krotsiani et al. Monitoring-based certification of cloud service security
CN110795308A (en) Server inspection method, device, equipment and storage medium
CN111784521B (en) Data processing method, device, equipment and system based on cash flow test
CN114595216A (en) Data verification method and device, storage medium and electronic equipment
CN111752677B (en) Cloud resource configuration method, system, terminal and storage medium

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