CN112965863B - Automatic testing method and device for fan of multi-node partition server - Google Patents
Automatic testing method and device for fan of multi-node partition server Download PDFInfo
- Publication number
- CN112965863B CN112965863B CN202110178900.5A CN202110178900A CN112965863B CN 112965863 B CN112965863 B CN 112965863B CN 202110178900 A CN202110178900 A CN 202110178900A CN 112965863 B CN112965863 B CN 112965863B
- Authority
- CN
- China
- Prior art keywords
- test
- node
- remote server
- partition
- mark
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test 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)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides an automatic testing method and device for a multi-node partition server fan, wherein the method comprises the following steps: s1, accessing each partition node of a server to a PXE remote server; s2, starting a fan speed regulation test by the PXE remote server; and S3, the PXE remote server receives the fan speed regulation test request of the partition node, judges whether a test mark exists at present, waits for a set time period when the test mark exists, returns to the step S2, starts the fan speed regulation test of the partition node when the fan mark does not exist, generates the test mark, and clears the test mark after the test is finished. The automatic testing method and the automatic testing device for the fan of the multi-node partition server provided by the invention have the advantages that the automatic control of the speed regulation test of the fan of the multi-node partition server is realized, the manual judgment is not needed, and the testing efficiency and the product quality are improved.
Description
Technical Field
The invention belongs to the technical field of server fan testing, and particularly relates to an automatic testing method and device for a multi-node partition server fan.
Background
PXE, short for Preboot Execution Environment, a Preboot Execution Environment, also referred to as a Preboot Execution Environment, provides a mechanism for booting a computer using a network interface.
At present, servers are configured in various ways, wherein one server is configured with multiple nodes and partitions, each node partition is configured with a motherboard, a CPU and an external device independently, and the configuration is equivalent to an independent processing unit, but multiple nodes and partitions generally share a fan module configured by the server, that is, the fan module configured by one server serves all node partitions of the server.
In the production test stage, all node partitions need to perform speed regulation test on the fan modules, the regulation and control strategy of the fan is defaulted to be an automatic control mode, and when the fan speed regulation test is performed, the current test method is that the fan regulation and control strategy is adjusted to be a manual control mode through a BMC control unit of the node partition, then the fan is controlled to perform speed increasing and decreasing tests through commands, and a speed regulation test result is obtained. For a multi-node partition server, the test flow of each node partition is the same, that is, the speed regulation test of fans can be performed in the same time period under the normal condition of each node partition, but at this time, if 1 partition node of the same server is performing the fan speed regulation test, the speed regulation test cannot be performed by the fans controlled by other node partitions, the test result fail is required to be manually judged and operated, and after the node partition test which is performing the speed regulation test is finished, the speed regulation test is performed again by the node of fail.
Therefore, it is very necessary to provide a method and an apparatus for automatically testing a multi-node partition server fan to overcome the above-mentioned drawbacks in the prior art.
Disclosure of Invention
The invention provides an automatic testing method and device for a multi-node partition server fan, aiming at the defects that in the prior art, when the fan speed regulation test is carried out in the same time period in a multi-node partition, the test fails, the manual judgment operation is needed, and the time and the labor are consumed.
In a first aspect, the present invention provides an automatic testing method for a multi-node partition server fan, including the following steps:
s1, accessing each partition node of a server to a PXE remote server;
s2, starting a fan speed regulation test by the PXE remote server;
and S3, the PXE remote server receives the fan speed regulation test request of the partition node, judges whether a test mark exists at present, waits for a set time period when the test mark exists, returns to the step S2, starts the fan speed regulation test of the partition node when the fan mark does not exist, generates the test mark, and clears the test mark after the test is finished.
Further, the step S3 specifically includes the following steps:
s31, a PXE remote server receives a speed regulation test request of a partition node fan;
s32, judging whether a test mark exists in the PXE remote server;
if yes, go to step S33;
if not, go to step S34;
s33, waiting for a set time period, and returning to the step S32;
s34, the PXE remote server informs the request partition node to start the test;
s35, requesting the partition nodes to start a fan speed regulation test, generating a test mark, and uploading the test mark to a PXE remote server;
and S36, after the speed regulation test of the fan of the requested partition node is finished, uploading a test result, and deleting the test mark of the PXE remote server.
Further, in step S32, the PXE remote server determines whether a test flag exists in the set directory;
in step S35, requesting the partition node to upload the test mark to a set directory of the PXE remote server;
in step S36, the requesting partition node deletes the test flag in the PXE remote server set directory.
Further, the step S33 specifically includes the following steps:
S331.PXE remote server adds the request partition node into the request queue;
s332, the PXE remote server judges whether a waiting partition node exists before a partition requesting node;
if yes, go to step S333;
if not, returning to the step S32;
s333, waiting for a set time period, and returning to the step S332.
Further, after step S36, the following steps are also included:
s37, the PXE remote server judges whether the fan speed regulation test of each partition node is finished;
if so, completing the fan speed regulation test;
if not, the process returns to step S31.
In a second aspect, the present invention provides an automatic testing apparatus for a fan of a multi-node partition server, including:
the PXE remote server connection module is used for connecting each partition node of the server to the PXE remote server;
the fan speed regulation test starting module is used for setting a PXE remote server to start a fan speed regulation test;
and the fan speed regulation test control module is used for setting a PXE remote server to receive a fan speed regulation test request of the partition node, judging whether a test mark exists at present, waiting for a set time period when the test mark exists, starting the fan speed regulation test again, starting the fan speed regulation test of the requested partition node when the fan mark does not exist, generating the test mark, and clearing the test mark after the test is finished.
Further, the fan speed regulation test control module comprises:
the test request receiving unit is used for setting a PXE remote server to receive a partition node fan speed regulation test request;
the test mark judging unit is used for setting the PXE remote server to judge whether the test mark exists or not;
the waiting unit is used for waiting for a set time period and judging the test mark again when the test mark exists;
the test notification unit is used for setting a PXE remote server to notify the request partition node to start the test when the test mark does not exist;
the test and mark generation unit is used for setting a request partition node to start a fan speed regulation test, generating a test mark and uploading the test mark to the PXE remote server;
and the test result uploading and mark deleting unit is used for uploading the test result and deleting the test mark of the PXE remote server after the speed regulation test of the fan requesting the partition node is completed.
Further, the test mark judging unit, the PXE remote server, judges whether the test mark exists under the set directory;
the test and mark generating unit requests the partition nodes to upload the test marks to a set directory of the PXE remote server;
and the test result uploading and mark deleting unit requests the partition node to delete the test mark under the PXE remote server set directory.
Further, the waiting unit includes:
the request queue adding subunit is used for setting a PXE remote server to add the request partition node into the request queue;
the waiting partition node judging subunit is used for setting the PXE remote server to judge whether a waiting partition node exists before the requesting partition node;
the queue waiting subunit is used for waiting for a set time period and judging the waiting partition node again when the waiting partition node exists before the request partition node;
and the test mark re-judgment subunit is used for judging the test mark again when the waiting partition node does not exist before the request partition node.
Further, the fan speed regulation test control module further comprises:
and the test completion judging unit is used for setting the PXE remote server to judge whether the fan speed regulation test of each partition node is completed.
The beneficial effect of the invention is that,
the automatic testing method and the automatic testing device for the fan of the multi-node partition server provided by the invention have the advantages that the automatic control of the speed regulation test of the fan of the multi-node partition server is realized, the manual judgment is not needed, and the testing efficiency and the product quality are improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a first schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention;
in the figure, a 1-PXE remote server connection module; 2-a fan speed regulation test starting module; 3-a fan speed regulation test control module; 3.1-a test request receiving unit; 3.2-a test flag determination unit; 3.3-wait unit; 3.4-test notification unit; 3.5-a test and flag generation unit; 3.6-test result uploading and mark deleting unit; 3.7-test completion judgment unit.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in FIG. 1, the present invention provides an automatic testing method for fans of a multi-node partition server, comprising the following steps:
s1, accessing each partition node of a server to a PXE remote server;
s2, starting a fan speed regulation test by the PXE remote server;
and S3. The PXE remote server receives the fan speed regulation test request of the partition node, judges whether a test mark exists at present, waits for a set time period when the test mark exists, returns to the step S2, starts the fan speed regulation test of the partition node, generates the test mark and clears the test mark after the test is finished.
Example 2:
as shown in FIG. 2, the present invention provides an automatic testing method for fans of a multi-node partition server, comprising the following steps:
s1, accessing each partition node of a server to a PXE remote server;
s2, starting a fan speed regulation test by the PXE remote server;
s3, the PXE remote server receives a fan speed regulation test request of the partition node, judges whether a test mark exists at present, waits for a set time period when the test mark exists, returns to the step S2, starts a fan speed regulation test of the partition node when the test mark does not exist, generates the test mark, and clears the test mark after the test is finished; the method comprises the following specific steps:
s31, a PXE remote server receives a speed regulation test request of a partition node fan;
s32, judging whether a test mark exists in the PXE remote server;
if yes, go to step S33;
if not, go to step S34;
s33, waiting for a set time period, and returning to the step S32;
the method comprises the following specific steps:
S331.PXE remote server adds the request partition node into the request queue;
s332, the PXE remote server judges whether a waiting partition node exists before a partition requesting node;
if yes, go to step S333;
if not, returning to the step S32;
s333, waiting for a set time period, and returning to the step S332;
s34, the PXE remote server informs the request partition node to start the test;
s35, requesting the partition nodes to start a fan speed regulation test, generating a test mark, and uploading the test mark to a PXE remote server;
and S36, after the speed regulation test of the fan of the requested partition node is finished, uploading a test result, and deleting the test mark of the PXE remote server.
In some embodiments, in step S32, the PXE remote server determines whether a test flag exists in the set directory;
in step S35, requesting the partition node to upload the test mark to a set directory of the PXE remote server;
in step S36, the requesting partition node deletes the test flag in the PXE remote server set directory.
In some embodiments, after step S36, the following steps are further included:
s37, the PXE remote server judges whether the fan speed regulation test of each partition node is finished;
if so, completing the fan speed regulation test;
if not, the process returns to step S31.
In the embodiment, taking a 4-node partition server to be tested as an example, before fan speed regulation test is performed on each node partition, a PXE remote server is used to determine whether a speed regulation test flag exists under a designated directory of the remote server, wherein each node server has a directory, if the flag file does not exist, the flag file indicates that no other node performs fan speed regulation test, and the node performs automatic test normally and generates a speed regulation test flag file to upload to the designated directory of the PXE remote server; if the flag file exists, the test program waits for a certain time, and the fan speed regulation test generally needs 2-3 minutes. After the node speed regulation test of fan speed regulation is carried out, the test result is uploaded, and the flag file under the appointed directory of the PXE remote server is deleted at the same time.
Example 3:
as shown in fig. 3, the present invention provides an automatic testing apparatus for fans of a multi-node partition server, comprising:
the PXE remote server connection module 1 is used for connecting each partition node of the server to the PXE remote server;
the fan speed regulation test starting module 2 is used for setting a PXE remote server to start a fan speed regulation test;
the fan speed regulation test control module 3 is used for setting a PXE remote server to receive a fan speed regulation test request of a partition node, judging whether a test mark exists at present, waiting for a set time period when the test mark exists, starting a fan speed regulation test again, starting the fan speed regulation test of the requested partition node when the fan mark does not exist, generating the test mark, and clearing the test mark after the test is finished; the fan speed regulation test control module 3 includes:
the test request receiving unit 3.1 is used for setting a PXE remote server to receive a partition node fan speed regulation test request;
the test mark judging unit 3.2 is used for setting the PXE remote server to judge whether the test mark exists in the set directory;
a waiting unit 3.3, which is used for waiting for the set time period when the test mark exists and judging the test mark again; the waiting unit 3.3 comprises:
the request queue adding subunit is used for setting a PXE remote server to add the request partition node into the request queue;
the waiting partition node judging subunit is used for setting the PXE remote server to judge whether a waiting partition node exists before the requesting partition node;
the queue waiting subunit is used for waiting for a set time period and judging the waiting partition node again when the waiting partition node exists before the request partition node;
the test mark re-judgment subunit is used for judging the test mark again when the waiting partition node does not exist before the request partition node;
the test notification unit 3.4 is used for setting a PXE remote server to notify the request partition node to start the test when the test mark does not exist;
the test and mark generating unit 3.5 is used for setting a request partition node to start a fan speed regulation test, generating a test mark and uploading the test mark to a set directory of the PXE remote server;
the test result uploading and mark deleting unit 3.6 is used for uploading the test result and deleting the test mark under the PXE remote server set directory after the speed regulation test of the fan requesting the partition node is completed;
and the test completion judging unit 3.7 is used for setting the PXE remote server to judge whether the fan speed regulation test of each partition node is completed.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. An automatic test method for a fan of a multi-node partition server is characterized by comprising the following steps:
s1, accessing each partition node of a server to a PXE remote server;
s2, starting a fan speed regulation test by the PXE remote server;
and S3, the PXE remote server receives the fan speed regulation test request of the partition node, judges whether a test mark exists at present, waits for a set time period when the test mark exists, continuously judges whether the test mark exists, starts a fan speed regulation test of the partition node when the test mark does not exist, generates the test mark, and clears the test mark after the test is finished.
2. The method for automatically testing fans of a multi-node partition server as claimed in claim 1, wherein the step S3 comprises the following steps:
s31, a PXE remote server receives a speed regulation test request of a partition node fan;
s32, judging whether a test mark exists in the PXE remote server;
if yes, go to step S33;
if not, go to step S34;
s33, waiting for a set time period, and returning to the step S32;
s34, the PXE remote server informs a request partition node to start testing;
s35, requesting the partition nodes to start a fan speed regulation test, generating a test mark, and uploading the test mark to a PXE remote server;
and S36, after the speed regulation test of the fan of the requested partition node is finished, uploading a test result, and deleting the test mark of the PXE remote server.
3. The method as claimed in claim 2, wherein in step S32, the PXE remote server determines whether a test flag exists in the set directory;
in step S35, requesting the partition node to upload the test mark to a set directory of the PXE remote server;
in step S36, the requesting partition node deletes the test flag in the PXE remote server set directory.
4. The method for automatically testing fans of a multi-node partition server as claimed in claim 3, wherein the step S33 comprises the following steps:
S331.PXE remote server adds the request partition node into the request queue;
s332, the PXE remote server judges whether a waiting partition node exists before a partition requesting node;
if yes, go to step S333;
if not, returning to the step S32;
s333, waiting for a set time period, and returning to the step S332.
5. The method for automatically testing fans of a multi-node partition server of claim 3, wherein after the step S36, the method further comprises the steps of:
s37, judging whether the fan speed regulation test of each partition node is finished by the PXE remote server;
if so, completing the fan speed regulation test;
if not, the process returns to step S31.
6. An apparatus for automatically testing a fan of a multi-node partitioned server, comprising:
the PXE remote server connection module (1) is used for connecting each partition node of the server to the PXE remote server;
the fan speed regulation test starting module (2) is used for setting a PXE remote server to start a fan speed regulation test;
and the fan speed regulation test control module (3) is used for setting a PXE remote server to receive a fan speed regulation test request of a partition node, judging whether a test mark exists at present, waiting for a set time period when the test mark exists, continuously judging whether the test mark exists, starting a fan speed regulation test of the partition node when the test mark does not exist, generating the test mark, and clearing the test mark after the test is finished.
7. The apparatus for automatically testing fans of a multi-node zone server according to claim 6, wherein the fan speed control test control module (3) comprises:
the test request receiving unit (3.1) is used for setting a PXE remote server to receive a partition node fan speed regulation test request;
a test mark judging unit (3.2) for setting the PXE remote server to judge whether a test mark exists;
a waiting unit (3.3) for waiting for a set time period and judging the test mark again when the test mark exists;
a test notification unit (3.4) for setting a PXE remote server to notify the request partition node to start the test when the test flag does not exist;
the test and mark generating unit (3.5) is used for setting a request partition node to start a fan speed regulation test, generating a test mark and uploading the test mark to the PXE remote server;
and the test result uploading and mark deleting unit (3.6) is used for uploading the test result and deleting the test mark of the PXE remote server after the speed regulation test of the fan requesting the partition node is finished.
8. The apparatus for automatic testing of a multi-node partitioned server fan of claim 7,
the test mark judging unit (3.2) is used for judging whether the test mark exists in the set directory by the PXE remote server;
a test and mark generation unit (3.5) for requesting the partition node to upload the test mark to the set catalog of the PXE remote server;
and a test result uploading and mark deleting unit (3.6) for requesting the partition nodes to delete the test marks in the PXE remote server set directory.
9. An apparatus for the automatic testing of fans of a multinode zone server according to claim 7, characterized in that the waiting unit (3.3) comprises:
the request queue adding subunit is used for setting a PXE remote server to add the request partition node into the request queue;
the waiting partition node judging subunit is used for setting the PXE remote server to judge whether a waiting partition node exists before the requesting partition node;
the queue waiting subunit is used for waiting for a set time period and judging the waiting partition node again when the waiting partition node exists before the request partition node;
and the test mark re-judgment subunit is used for judging the test mark again when the waiting partition node does not exist before the request partition node.
10. The apparatus for automatically testing fans of a multi-node zone server according to claim 6, wherein the fan speed control test control module (3) further comprises:
and the test completion judging unit (3.7) is used for setting the PXE remote server to judge whether the fan speed regulation test of each partition node is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110178900.5A CN112965863B (en) | 2021-02-09 | 2021-02-09 | Automatic testing method and device for fan of multi-node partition server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110178900.5A CN112965863B (en) | 2021-02-09 | 2021-02-09 | Automatic testing method and device for fan of multi-node partition server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112965863A CN112965863A (en) | 2021-06-15 |
CN112965863B true CN112965863B (en) | 2022-11-25 |
Family
ID=76284570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110178900.5A Active CN112965863B (en) | 2021-02-09 | 2021-02-09 | Automatic testing method and device for fan of multi-node partition server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112965863B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297766A (en) * | 2019-06-03 | 2019-10-01 | 合肥移瑞通信技术有限公司 | Method for testing software and software testing system based on distributed test node cluster |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471675A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and system of testing nodes in batches |
CN105740152A (en) * | 2016-02-04 | 2016-07-06 | 浪潮电子信息产业股份有限公司 | Pressure testing method for multi-node batch deployment system |
US10884759B2 (en) * | 2018-10-30 | 2021-01-05 | Hewlett Packard Enterprise Development Lp | Remote deployment of operating systems |
CN112003727A (en) * | 2020-07-24 | 2020-11-27 | 苏州浪潮智能科技有限公司 | Multi-node server power supply testing method, system, terminal and storage medium |
-
2021
- 2021-02-09 CN CN202110178900.5A patent/CN112965863B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297766A (en) * | 2019-06-03 | 2019-10-01 | 合肥移瑞通信技术有限公司 | Method for testing software and software testing system based on distributed test node cluster |
Also Published As
Publication number | Publication date |
---|---|
CN112965863A (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105653630B (en) | Data migration method and device for distributed database | |
CN106681924A (en) | Software testing method and software testing system | |
TW200535602A (en) | A system and method for testing motherboards automatically | |
CN113608940B (en) | Production test method, system and device of intelligent network card and readable storage medium | |
CN114679380B (en) | Method and related device for creating edge cluster | |
CN104536900A (en) | Method and device for controlling mobile terminal | |
CN109165194B (en) | Data unloading method and device, electronic equipment and storage medium | |
CN112187574A (en) | Method, system and storage medium for network stress testing using virtual machines | |
CN110569158A (en) | method and device for testing abnormal power failure in SSD random scene and computer equipment | |
CN115422048A (en) | Link stability testing method and device, computer equipment and storage medium | |
CN114860271B (en) | PXE starting method, system, device and readable storage medium | |
CN115391219A (en) | Test case generation method and device, electronic equipment and storage medium | |
CN112965863B (en) | Automatic testing method and device for fan of multi-node partition server | |
US7475164B2 (en) | Apparatus, system, and method for automated device configuration and testing | |
KR20200048633A (en) | System and method for automatically testing software | |
CN113657068A (en) | SOC simulation verification and SOC simulation verification equipment verification environment construction method | |
CN112650666B (en) | Software testing system, method, device, control equipment and storage medium | |
US20210240698A1 (en) | Asynchronous remote calls with undo data structures | |
CN114461337A (en) | Cloud simulation system and method, electronic equipment and storage medium | |
CN1295615C (en) | Distribution type software reliability evaluation system having time restraint | |
CN114647501A (en) | Mycat system deployment, operation and maintenance method, device, equipment and storage medium | |
CN111416842A (en) | Automatic resource cluster distribution and hot update system and method | |
CN111756831B (en) | Server preloading method and device, server and storage medium | |
CN116166300B (en) | Upgrade management method and device for intellectual property system | |
TWI738583B (en) | High-availability message management system and method with dynamic expansion and computer readable 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 |