Display method, device, equipment and medium for screen printing of equipment cabinet
1. A display method for screen printing of an equipment cabinet is characterized by being applied to BMC and comprising the following steps:
when a server is powered on, acquiring the ID number of a target Riser card on the server;
when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment connected to the target Riser card is obtained through the BIOS;
displaying the case silk screen of the target equipment on a BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information; and the preset configuration information is information of the case silk screen printing configured when all the connection equipment on the target Riser card leaves the factory.
2. The display method according to claim 1, wherein the process of obtaining the ID number of the target Riser card on the server comprises:
initializing an IIC program and reading FRU information of the target Riser card;
and analyzing the ID number of the target Riser card from the FRU information of the target Riser card.
3. The display method according to claim 1, wherein the process of obtaining, by the BIOS, the PCIE lane number of the target device connected to the target Riser card when the BIOS of the server performs power on self test includes:
when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment corresponding to a target card slot on the target Riser card is obtained by the BIOS;
and when the communication is carried out with the BIOS, the PCIE lane number of the target equipment is obtained from the BIOS.
4. The display method according to claim 1, further comprising:
and if the BMC Web cannot display the screen printing of the case of the target device, prompting early warning information.
5. The display method according to claim 1, further comprising:
restarting the server when the PCIE lane number of the target device cannot be acquired;
and when the BIOS performs power-on self-test, re-executing the step of obtaining the PCIE lane number connected with the target equipment on the target Riser card through the BIOS.
6. The display method according to any one of claims 1 to 5, wherein the displaying, on the BMC Web of the server, the chassis screen print of the target device according to the ID number of the target Riser card, the PCIE lane number of the target device, and preset configuration information includes:
establishing a target mapping relation between each connecting device on the target Riser card and the case silk screen corresponding to each connecting device according to the ID number of the target Riser card, the PCIE lane number of the target device and the preset configuration information;
and displaying the case silk screen of the target equipment on the BMC Web of the server by using the target mapping relation, the ID number of the target Riser card and the PCIE lane number of the target equipment.
7. The utility model provides a display device of equipment machine case silk screen printing which characterized in that, is applied to the BMC, includes:
the information acquisition module is used for acquiring the ID number of the target Riser card on the server when the server is powered on;
a number obtaining module, configured to obtain, through a BIOS of the server, a PCIE lane number of a target device connected to the target Riser card when the BIOS of the server performs power-on self-test;
the screen printing display module is used for displaying the case screen printing of the target equipment on the BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information; and the preset configuration information is information of the case silk screen printing configured when all the connection equipment on the target Riser card leaves the factory.
8. The utility model provides a display device of equipment machine case silk screen printing which characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the method for displaying screen-printed device cabinets of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method for displaying a device chassis screen according to any one of claims 1 to 6.
Background
In order to enable the operation and maintenance personnel to know the operation status of the server in time, a Baseboard Management Controller (BMC) is usually used to manage and control the server. Wherein, BMC Web can be used for showing the quick-witted case silk screen printing of all connected devices on the server, include: a CPU (Central Processing Unit), a memory, a hard disk, a network card, and a RAID (Redundant array of Independent Drives) card. Therefore, when a certain device in the server breaks down, maintenance personnel can quickly locate and process the fault device directly according to the position information displayed on the BMC Web.
As the application of the server becomes wider and the configuration becomes more flexible, a Riser card needs to be installed on the server to connect more devices. However, because the BIOS (Basic Input Output System) cannot distinguish the Riser card, the BMC Web cannot correctly display the screen printing of the chassis of the device connected to the Riser card, and great trouble is brought to the maintenance task of the maintenance personnel. At present, no effective solution exists for the technical problem.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a medium for displaying a screen print of a chassis of a device, so that a BMC Web can correctly display the screen print of the chassis of the device connected to a Riser card, and the maintenance efficiency of a maintenance worker is improved. The specific scheme is as follows:
a display method of screen printing of an equipment cabinet is applied to BMC and comprises the following steps:
when a server is powered on, acquiring the ID number of a target Riser card on the server;
when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment connected to the target Riser card is obtained through the BIOS;
displaying the case silk screen of the target equipment on a BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information; and the preset configuration information is information of the case silk screen printing configured when all the connection equipment on the target Riser card leaves the factory.
Preferably, the process of acquiring the ID number of the target Riser card on the server includes:
initializing an IIC program and reading FRU information of the target Riser card;
and analyzing the ID number of the target Riser card from the FRU information of the target Riser card.
Preferably, the process of obtaining, by the BIOS, a PCIE lane number of the target device connected to the target Riser card when the BIOS of the server performs power on self test includes:
when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment corresponding to a target card slot on the target Riser card is obtained by the BIOS;
and when the communication is carried out with the BIOS, the PCIE lane number of the target equipment is obtained from the BIOS.
Preferably, the method further comprises the following steps:
and if the BMC Web cannot display the screen printing of the case of the target device, prompting early warning information.
Preferably, the method further comprises the following steps:
restarting the server when the PCIE lane number of the target device cannot be acquired;
and when the BIOS performs power-on self-test, re-executing the step of obtaining the PCIE lane number connected with the target equipment on the target Riser card through the BIOS.
Preferably, the displaying, on the BMC Web of the server, the chassis silk-screen of the target device according to the ID number of the target Riser card, the PCIE lane number of the target device, and preset configuration information includes:
establishing a target mapping relation between each connecting device on the target Riser card and the case silk screen corresponding to each connecting device according to the ID number of the target Riser card, the PCIE lane number of the target device and the preset configuration information;
and displaying the case silk screen of the target equipment on the BMC Web of the server by using the target mapping relation, the ID number of the target Riser card and the PCIE lane number of the target equipment.
Correspondingly, the invention also discloses a display device for screen printing of the equipment chassis, which is applied to BMC and comprises:
the information acquisition module is used for acquiring the ID number of the target Riser card on the server when the server is powered on;
a number obtaining module, configured to obtain, through a BIOS of the server, a PCIE lane number of a target device connected to the target Riser card when the BIOS of the server performs power-on self-test;
the screen printing display module is used for displaying the case screen printing of the target equipment on the BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information; and the preset configuration information is information of the case silk screen printing configured when all the connection equipment on the target Riser card leaves the factory.
Correspondingly, the invention also discloses a display device for screen printing of the device case, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the equipment cabinet silk-screen display method disclosed by the foregoing when the computer program is executed.
Correspondingly, the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the display method for the screen printing of the equipment chassis are realized.
Therefore, in the invention, when the server is powered on, the BMC firstly acquires the ID number of the target Riser card on the server; when the BIOS of the server carries out power-on self-test, the BMC acquires the PCIE lane number of the target device connected to the target Riser card through the BIOS; and then, the BMC determines the case screen printing uniquely corresponding to the target equipment according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information, and displays the case screen printing of the target equipment on the BMC Web of the server. Obviously, compared with the prior art, the method can correctly display the case screen printing of the equipment connected to the Riser card and display the screen printing on the BMC Web. Therefore, when the server breaks down, maintenance personnel can quickly position the broken-down equipment according to the screen printing of the case of the display equipment on the BMC Web and maintain the equipment, and therefore the maintenance efficiency of the maintenance personnel can be obviously improved. Correspondingly, the display device, the equipment and the medium for screen printing of the equipment cabinet, which are provided by the invention, also have the beneficial effects.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a display method for screen printing of an equipment chassis according to an embodiment of the present invention;
fig. 2 is a structural diagram of a display device for screen printing of an equipment chassis according to an embodiment of the present invention;
fig. 3 is a structural diagram of a display device for screen printing on a device chassis according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
Referring to fig. 1, fig. 1 is a flowchart of a display method for screen printing on an equipment chassis according to an embodiment of the present invention, where the display method includes:
step S11: when the server is powered on, acquiring the ID number of a target Riser card on the server;
step S12: when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment connected to the target Riser card is obtained through the BIOS;
step S13: displaying the case silk screen of the target equipment on a BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information;
the preset configuration information is information of a case silk screen which is configured when all the connection equipment on the target Riser card leaves a factory.
In this embodiment, a display method for screen printing of a chassis of a device is provided, by which a BMC Web on a server can correctly display the screen printing of the chassis of the device connected to a Riser card. In this method, the BMC in the server is used as the execution master.
In order to enable the BMC Web to correctly display the case screen printing of the device connected to the Riser card, when the server is powered on, the BMC first obtains the ID number of a target Riser card on the server, where the target Riser card refers to any one Riser card in the server, and the Riser card may be a three-slot Riser card, a four-slot Riser card, a six-slot Riser card, or the like, and this is not particularly limited here.
When the BIOS of the server performs power-on self-test, the BMC acquires the PCIE lane number of the target equipment connected to the target Riser card through the BIOS. It can be understood that, the screen printing of the chassis of the devices connected to all the Riser cards on the server is configured in advance and can be inquired from a user manual. Therefore, by summarizing the case screen printing of the devices connected to all the Riser cards on the server, the case screen printing information configured when the devices connected to all the Riser cards leave the factory, that is, the preset configuration information, can be obtained.
After the ID number of the target Riser card, the PCIE lane number of the target device and the preset configuration information are obtained, the chassis silk screen uniquely corresponding to the target device can be determined according to the ID number of the target Riser card, the PCIE lane number of the target device and the preset configuration information. Conceivably, when the BMC obtains the chassis screen printing corresponding to the target device, the BMC Web of the server may correctly display the chassis screen printing corresponding to the target device.
Compared with the prior art, the method can avoid the problem that the BIOS cannot correctly distinguish the Riser card, so that the BMC Web can correctly display the screen printing of the chassis of the equipment connected to the Riser card by using the method. Moreover, by the method, not only can a plurality of Riser cards be built on the same server, but also the server can be rapidly modified at low design cost, and the development efficiency of the server can be improved.
When the BMC Web can correctly display the case screen printing of the equipment connected to the Riser card, if the server is abnormal or fails, maintenance personnel can quickly find out the failed equipment according to the case screen printing of the equipment displayed on the BMC Web and maintain the failed equipment, so that the maintenance efficiency of the maintenance personnel can be obviously improved.
As can be seen, in this embodiment, when the server is powered on, the BMC first obtains the ID number of the target Riser card on the server; when the BIOS of the server carries out power-on self-test, the BMC acquires the PCIE lane number of the target device connected to the target Riser card through the BIOS; and then, the BMC determines the case screen printing uniquely corresponding to the target equipment according to the ID number of the target Riser card, the PCIE lane number of the target equipment and preset configuration information, and displays the case screen printing of the target equipment on the BMC Web of the server. Obviously, compared with the prior art, the method can correctly display the case screen printing of the equipment connected to the Riser card and display the screen printing on the BMC Web. Therefore, when the server breaks down, maintenance personnel can quickly position the broken-down equipment according to the screen printing of the case of the display equipment on the BMC Web and maintain the equipment, and therefore the maintenance efficiency of the maintenance personnel can be obviously improved.
Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of obtaining the ID number of the target Riser card on the server comprises the following steps:
initializing an IIC program, and reading FRU information of a target Riser card;
and resolving the ID number of the target Riser card from the FRU information of the target Riser card.
In this embodiment, a specific implementation method for acquiring the ID number of the target Riser card by the BMC is provided. That is, in the process of acquiring the ID number of the target Riser card on the server, the BMC initializes the IIC program, and sends a target signal to the target Riser card, and reads FRU (Field replaceable Unit) information of the target Riser card from the target Riser card; when the BMC reads the FRU information of the target Riser card from the target Riser card, the BMC can analyze the ID number uniquely corresponding to the target Riser card from the FRU information of the target Riser card, and when the BMC obtains the ID number uniquely corresponding to the target Riser card, the BMC can identify and distinguish the attribute information of the target Riser card according to the ID number of the target Riser card.
Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: when the BIOS of the server performs power-on self-test, the process of obtaining the PCIE lane number of the target equipment connected to the target Riser card through the BIOS comprises the following steps:
when the BIOS of the server carries out power-on self-test, the PCIE lane number of the target equipment corresponding to the target card slot on the target Riser card is obtained by the BIOS;
when the communication is carried out with the BIOS, the PCIE lane number of the target device is obtained from the BIOS.
It can be understood that when the BIOS of the server performs the power on self test, the operating states and attribute information of all devices in the server need to be queried, and therefore, in the process of performing the power on self test, the BIOS may locate PCIE lane numbers of devices corresponding to all card slots according to devices corresponding to all card slots on the target Riser card. Under the condition, the BIOS can obtain the PCIE lane number of the target device corresponding to the target card slot on the target Riser card.
After the BIOS obtains the PCIE lane number of the target device connected to the target Riser card, the BMC can obtain the PCIE lane number of the target device from the BIOS in the process that the BIOS communicates with the BMC.
Therefore, by the technical scheme provided by the embodiment, the accuracy and reliability of the BMC in obtaining the PCIE lane number of the target device can be ensured.
Based on the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the method for displaying screen printing on an equipment chassis further includes:
and if the BMC Web cannot display the screen printing of the case of the target device, prompting early warning information.
In practical application, if the BMC determines the chassis silk screen uniquely corresponding to the target device according to the ID number of the target Riser card, the PCIE lane number of the target device, and the preset configuration information, but the BMC Web cannot display the chassis silk screen of the target device, it indicates that the BMC Web has a fault or other related programs in the server are abnormal, and in this case, the BMC may prompt the warning information.
By the arrangement mode, the working personnel can know the operation condition of the server in time and maintain the server, so that the user experience of people in using the server can be further improved.
Based on the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the method for displaying screen printing on an equipment chassis further includes:
when the PCIE lane number of the target equipment cannot be acquired, restarting the server;
when the BIOS performs power-on self-test, the step of obtaining the PCIE lane number of the target equipment connected on the target Riser card through the BIOS is executed again.
It can be understood that the server inevitably generates an exception in the using process, and the BIOS cannot obtain the PCIE lane number of the target device connected to the target Riser card, in this case, the server may be restarted, and the BIOS may enter the power-on self-test mode again by restarting the server. It can be thought that, when the BIOS performs power on self-test, the BMC may obtain the PCIE lane number of the target device connected to the target Riser card through the BIOS.
Obviously, by the technical solution provided in this embodiment, the overall reliability of the BMC when acquiring the PCIE lane number of the target device can be further improved.
Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of displaying the case silk screen of the target device on the BMC Web of the server according to the ID number of the target Riser card, the PCIE lane number of the target device and preset configuration information comprises the following steps:
establishing a target mapping relation between each connecting device on the target Riser card and the case silk screen corresponding to each connecting device according to the ID number of the target Riser card, the PCIE lane number of the target device and preset configuration information;
and displaying the case silk screen of the target equipment on the BMC Web of the server by using the target mapping relation, the ID number of the target Riser card and the PCIE lane number of the target equipment.
It can be understood that, in order to enable the BMC Web of the server to accurately display the chassis silk screen of the target device, it is necessary to establish a one-to-one mapping relationship among the ID number of the target Riser card, the PCIE lane number of the target device, and the preset configuration information, so in this embodiment, after obtaining the ID number of the target Riser card, the PCIE lane number of the target device, and the preset configuration information, a target mapping relationship between each connection device on the target Riser card and the chassis silk screen corresponding to each connection device is established according to the ID number of the target Riser card, the PCIE lane number of the target device, and the preset configuration information, and then, the established target mapping relationship, the ID number of the target Riser card, and the PCIE lane number of the target device are used to display the chassis silk screen uniquely corresponding to the target device on the BMC Web of the server.
Specifically, in practical application, the created target mapping relationship can be stored in a table manner, so that the BMC can search the target device chassis for silk screen printing more conveniently, and thus the efficiency of searching the target device chassis for silk screen printing by the BMC can be relatively improved.
Referring to fig. 2, fig. 2 is a structural diagram of a display device for screen printing on an equipment chassis according to an embodiment of the present invention, where the display device includes:
the information acquisition module 21 is used for acquiring the ID number of the target Riser card on the server when the server is powered on;
the number obtaining module 22 is configured to obtain, through the BIOS, a PCIE lane number of the target device connected to the target Riser card when the BIOS of the server performs power-on self-test;
the screen printing display module 23 is configured to display, on the BMC Web of the server, a chassis screen printing of the target device according to the ID number of the target Riser card, the PCIE lane number of the target device, and preset configuration information; the preset configuration information is information of a case silk screen which is configured when all the connection equipment on the target Riser card leaves a factory.
The display device for the screen printing of the equipment chassis provided by the embodiment of the invention has the beneficial effects of the display method for the screen printing of the equipment chassis disclosed by the embodiment.
Referring to fig. 3, fig. 3 is a structural diagram of a display device for screen printing on a device chassis according to an embodiment of the present invention, where the display device includes:
a memory 31 for storing a computer program;
the processor 32 is configured to implement the steps of the method for displaying screen-printed on the chassis of the device as disclosed above when executing the computer program.
The display device for the screen printing of the equipment chassis provided by the embodiment of the invention has the beneficial effects of the display method for the screen printing of the equipment chassis disclosed by the embodiment.
Correspondingly, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the display method for the screen printing of the equipment chassis are realized.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the display method for the screen printing of the equipment chassis disclosed in the embodiment.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The display method, the device, the equipment and the medium for the screen printing of the equipment cabinet provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:触控屏检测机器人、检测方法、设备及介质