Set And Removed Server Device Detection System And Method Thereof

A set and removed server device detection system and a method thereof are disclosed, a testing device obtains a MAC address corresponding to a network connection interface of one of server setting spaces from a rack and a value of current of a power supply interface of the one of server setting spaces from a power management system, and the testing device determines whether the server device is set in or removed from the rack, to establish a test work to test a server device and then delete the test work based on whether the value of the current is a null value, whether the MAC address is a null value, and whether the testing device is linked to a board management controller of the server device, and based on a test status of the server device.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of Chinese Application Serial No. 202211042087.X, filed Aug. 29, 2022, which is hereby incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a setting determination system and a method thereof, and more particularly to a set and removed server device detection system which enables a testing device to determine whether a server device is set in a server setting space, and establish a test work based on the determining result to test the server device and then delete the test work, and a method thereof.

2. Description of the Related Art

In recent years, testing a server device set in a rack requires a tester to set a test work in a testing device, so that t the testing device is able to check, on a display interface, whether the server device is set in the corresponding server setting space in a rack. However, after the server device is tested completely and the server device is removed from the rack, it is hard to delete the corresponding test work in the testing device automatically. The above-mentioned situations are the conventional problems in testing the server device set in the rack.

According to above-mentioned contents, what is needed is to develop an improved solution to solve the conventional problem that the existing testing device is unable to automatically establish and delete a test work for testing the server device set in the server device based on whether the server device is set in or removed from the rack.

SUMMARY OF THE INVENTION

An objective of the present invention is to provide a set and removed server device detection system and a method thereof to solve the problem that the existing testing device is unable to automatically establish and delete a test work for testing the server device set in the server device based on whether the server device is set in or removed from the rack.

In order to achieve the objective, the present invention provides a set and removed server device detection system including a rack, a power management system and a testing device. The rack has layers of rack accommodation spaces, power supply interfaces and network connection interfaces, wherein each of the layers of rack accommodation spaces includes server setting spaces, one of the power supply interfaces and one of network connection interfaces are disposed in one of the server setting spaces, and the rack is configured to provide a MAC address of one of the network connection interfaces. The power management system includes power suppliers, wherein each of the power suppliers is configured to supply power to the power supply interfaces in the server setting spaces of one of the layers of rack accommodation spaces in the rack, and the power management system is configured to provide current to the power supply interfaces. The testing device is linked to the rack and the power management system, and configured to obtain the MAC addresses of the network connection interfaces from the rack, and obtain values of the currents of the power supply interfaces from the power management system, wherein the testing device is operative to determine that a server device is set in one of the server setting spaces when the value of the current of the power supply interface corresponding to the one of the server setting spaces is not a null value and the MAC address of the network connection interface corresponding to the one of the server setting space is not the null value; establish a test work to test the server device set in the one of the server setting spaces; determine that the server device is removed from the one of the server setting spaces and delete the test work when a test status of the server device set in the one of the server setting spaces is a successful status, or an error status and the testing device fails to communicate with the board management controller of the server device; determine that the server device is removed from the one of the server setting space, end and delete the test work when the test status of the server device set in the one of the server setting space is a test tool exception, a test time of a test tool being timed out, or failure in communication with a board management controller of the server device, and the value of the current of the power supply interface corresponding to the one of the server setting spaces is the null value.

In order to achieve the objective, the present invention provides a set and removed server device detection method including steps of: providing a rack having layers of rack accommodation spaces, power supply interfaces and network connection interfaces, wherein each of the layers of rack accommodation spaces comprises server setting spaces, one of the power supply interfaces and one of network connection interfaces are disposed in one of the server setting spaces, and the rack is configured to provide a MAC address of one of the network connection interfaces; providing a power management system comprising power suppliers, wherein each of the power suppliers is configured to supply power to the power supply interfaces in the server setting spaces in one of the layers of rack accommodation space in the rack, the power management system is configured to provide current to one of the power supply interfaces; linking a testing device to the rack and the power management system; obtaining the MAC addresses of the network connection interfaces from the rack, and obtaining values of currents of the power supply interfaces from the power management system, by the testing device; wherein the testing device is operative to: determine that a server device is set in one of the server setting spaces when the value of the current of the power supply interface corresponding to the one of the server setting spaces is not a null value and the MAC address of the network connection interface corresponding to the one of the server setting space is not the null value; establish a test work to test the server device set in the one of the server setting spaces; determine that the server device is removed from the one of the server setting spaces and delete the test work when a test status of the server device set in the one of the server setting spaces is a successful status, or an error status and the testing device fails to communicate with the board management controller of the server device; determine that the server device is removed from the one of the server setting space, end and delete the test work when the test status of the server device set in the one of the server setting space is a test tool exception, a test time of a test tool being timed out, or failure in communication with a board management controller of the server device, and the value of the current of the power supply interface corresponding to the one of the server setting spaces is the null value.

According to the above-mentioned system and method of the present invention, the difference between the present invention and the conventional technology is that the testing device obtains the MAC address corresponding to the network connection interface of one of server setting spaces from the rack and the value of the current of the power supply interface of the one of the server setting spaces from the power management system, and the testing device determines whether the server device is set in or removed from the rack, to establish the test work to test the server device and then delete the test work based on whether the value of the current is a null value, whether the MAC address is a null value, and whether the testing device is linked to the board management controller of the server device, and based on the test status of the server device.

Therefore, the above-mentioned solution of the present invention is able to achieve the technical effect of establishing or deleting the test work based on a detection for the server device, which is set or removed.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The following embodiments of the present invention are herein described in detail with reference to the accompanying drawings. These drawings show specific examples of the embodiments of the present invention. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. It is to be acknowledged that these embodiments are exemplary implementations and are not to be construed as limiting the scope of the present invention in any way. Further modifications to the disclosed embodiments, as well as other embodiments, are also included within the scope of the appended claims.

These embodiments are provided so that this disclosure is thorough and complete, and fully conveys the inventive concept to those skilled in the art. Regarding the drawings, the relative proportions and ratios of elements in the drawings may be exaggerated or diminished in size for the sake of clarity and convenience. Such arbitrary proportions are only illustrative and not limiting in any way. The same reference numbers are used in the drawings and description to refer to the same or like parts. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.

In addition, unless explicitly described to the contrary, the words “comprise” and “include”, and variations such as “comprises”, “comprising”, “includes”, or “including”, will be acknowledged to imply the inclusion of stated elements but not the exclusion of any other elements.

A set and removed server device detection system of the present invention will be described in the following paragraphs, and please refer toFIG.1, which is a block diagram of a set and removed server device detection system of the present invention.

As shown inFIG.1, the present invention provides a set and removed server device detection system including a rack10, a power management system20and a testing device30.

The rack10has layers of rack accommodation spaces11, power supply interfaces13and network connection interfaces14. Each of the layers of rack accommodation spaces includes server setting spaces, one of the power supply interfaces13and one of network connection interfaces14are disposed in one of the server setting spaces12. The rack10is configured to provide a media access control (MAC) address of one of the network connection interfaces14. Please refer toFIG.2, which shows a schematic view of the rack10applied in the set and removed server device detection system of the present invention.

The power management system20includes power suppliers21, each of the power supplier21is configured to supply power to the power supply interfaces13in the server setting spaces12in one of the layers of rack accommodation space11in the rack10. The power management system20is configured to provide a current value to one of the power supply interface13. Please refer toFIG.3, which shows a schematic view of the power management system20applied in the set and removed server device detection system of the present invention.

The testing device30is linked to the rack10and the power management system20, and configured to obtain the MAC address of one of the network connection interfaces14from the rack10, and the value of the current of one of the power supply interfaces13from the power management system20. It should be noted that the testing device30can periodically obtain MAC addresses of the network connection interfaces14from the rack10, for example, every 30 seconds or 60 seconds; however, these examples are merely for exemplary illustration, and the application field of the present invention is not limited to these examples. The testing device30is operative to execute the following process.

When the value of the current of the power supply interface13corresponding to one of the server setting spaces12is not a null value and the MAC address of the network connection interface14corresponding to the one of the server setting spaces12is not a null value, the testing device30determines that the server device is set in the one of the server setting space12.

Next, the testing device30establishes a test work to test the server device set in the one of the server setting spaces12.

Next, when a test status of the server device set in the one of the server setting spaces12is a successful status, or an error status and the testing device30fails to communicate with a board management controller (BMC) of the server device, the testing device30determines that the server device is removed from the one of the server setting spaces12and then deletes the test work.

When the test status of the server device set in the one of server setting spaces12is a test tool exception, a test time of a test tool being timed out, failure in communication with the board management controller of the server device, and the value of the current of the power supply interface13corresponding to the server setting space12is a null value, the testing device30determines that the server device is removed from the one of the server setting spaces12, and the testing device30ends the test work and delete the test work.

The testing device30displays the test status of the server device set in the one of the server setting space12, on the display interface40. Please refer toFIG.4, which shows a schematic view of the display interface40in the set and removed server device detection system of the present invention. The display interface40is in a form of table, and in the table, each row41indicates a corresponding one of the layers of rack accommodation spaces11, and each of data cells42in one of the rows41indicates one of the server setting spaces12.

As shown inFIG.4, a first data cell421shows a text “SMAS326H01E” as a test serial number, a text “1-01” as a location of the server setting space in the rack, a text “5S” as testing station information, a text “Testing” as a test status, a text “75/368” as a testing progress (that is, the testing station 5S must perform 368 testing tool tests, and now it is in progress to the 75th testing tool test), a text “WC3397063001” as a test mode, and a text “06/20 13:40” as test start date and time. It should be noted that, as shown inFIG.4, the first data cell421is shown in a first presentation effect; for example, the first presentation effect can include a filling effect of different colors, a font flashing effect, different color fonts, but these examples are merely for exemplary illustration, and the application field of the present invention is not limited to these examples.

As shown inFIG.4, a second data cell422shows a text “SMAS326H02E” as a test serial number, text “2-03” as a location of the server setting space in the rack, a text “5S” as testing station information, a text “pass” as a test status, a text “368/368” as a test progress (it indicates that testing station 5S must perform 368 testing tool tests and now all of the testing tool tests are completed), a text “WC3397063001” as a test mode, and a text “06/20 14:00” as test start date and time. It should be noted that, as shown inFIG.4, the second data cell422is shown with a second presentation effect, and the second presentation effect and the first presentation effect are different from each other, for example, the second presentation effect can be the filling effect of different colors, a font flashing effect, different color fonts, these examples are merely for exemplary illustration, and the application field of the present invention is not limited to these examples.

The operation of the method of the present invention will be described in the following paragraphs, and please refer toFIGS.5A and5B, which are flowcharts of a set and removed server device detection method of the present invention.

The present invention provides a set and removed server device detection method including the following steps.

In a step101, a rack having layers of rack accommodation spaces, power supply interfaces and network connection interfaces is provided wherein each of the layers of rack accommodation spaces comprises server setting spaces, one of the power supply interfaces and one of network connection interfaces are disposed in one of the server setting spaces, and the rack is configured to provide a MAC address of one of the network connection interfaces. In a step102, a power management system including power suppliers is provided, wherein each of the power suppliers is configured to supply power to the power supply interfaces in the server setting spaces in one of the layers of rack accommodation space in the rack, the power management system is configured to provide current to one of the power supply interfaces. In a step103, a testing device is linked to the rack and the power management system, to obtain the MAC addresses of the network connection interfaces from the rack, and obtain values of currents of the power supply interfaces from the power management system.

In a step104, the testing device determines that a server device is set in one of the server setting spaces when the value of the current of the power supply interface corresponding to the one of the server setting spaces is not a null value and the MAC address of the network connection interface corresponding to the one of the server setting space is not a null value. In a step105, a test work is established to test the server device set in the one of the server setting spaces. In a step106, the testing device determines that the server device is removed from the one of the server setting spaces and delete the test work when a test status of the server device set in the one of the server setting spaces is a successful status, or an error status and the testing device fails to communicate with the board management controller of the server device. In a step107, the testing device determines that the server device is removed from the one of the server setting space, end and delete the test work when the test status of the server device set in the one of the server setting space is a test tool exception, a test time of a test tool being timed out, or failure in communication with a board management controller of the server device, and the value of the current of the power supply interface corresponding to the one of the server setting spaces is a null value.

According to above-mentioned contents, the difference between the present invention and the conventional technology is that, in the present invention, the testing device obtains the MAC address corresponding to the network connection interface of one of the server setting spaces from a rack and the value of the current of the power supply interface of the one of the server setting spaces from the power management system, and the testing device determines whether the server device is set in or removed from the rack, to establish the test work to test the server device and then delete the test work based on whether the value of the current is a null value, whether the MAC address is a null value, and whether the testing device is linked to the board management controller of the server device, and based on the test status of the server device.

Therefore, the above-mentioned technical solution of the present invention is able to solve the conventional problem that the existing testing device is unable to automatically establish and delete a test work for testing the server device set in the server device based on whether the server device is set in or removed from the rack, so as to achieve the technical effect of establishing or deleting the test work based on the detection for the server device, which is set or removed.