Device visual display method and system and storage medium
By obtaining the unique identification number and configuration information of the server device, a visual display area is generated, which solves the problem of positioning difficulties when PCIe equipment reports an error, and achieves a fast and accurate equipment positioning and maintenance process.
Patent Information
- Application Number
- CN202411132188.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-13
AI Technical Summary
In the server machine factory, when PCIe equipment reports an error, it is difficult to quickly locate specific equipment, especially multiple devices of the same type and there are no strong correlation between the physical location and DBDF number, which leads to difficulty in positioning.
By obtaining the unique identification number in the device query information, determine the target device and its similar device, obtaining configuration information to generate a configuration display area, and visually display it in this area with different display parameter values, dividing the area to distinguish the equipment and assisting with failures position.
It improves the rapid positioning efficiency of the target equipment, reduces the dependence of manual confirmation, and simplifies the maintenance process.
Smart Images

Figure CN119127627A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of servers, and in particular relates to a method, system and storage medium for visual display of equipment. Background Art
[0002] In the server assembly factory, a series of system diagnostics are performed after the server is assembled and before it is shipped. During the system diagnostic process, the machine may report a PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) device error. At this time, the device needs to be repaired, and it is necessary to find the device on the machine. However, there are often multiple devices of the same type on the same machine, and there is no strong correlation between the physical location of the device and the DBDF number. To find the device that reports an error among the same type of devices, it is generally necessary to use the product documentation of the model, or manually unplug the device and other manual confirmation methods.
[0003] Moreover, there are many models on the production line of the whole machine factory. Each model may have multiple motherboards. The DBDF numbers of different configurations of each model are exactly the same, which increases the difficulty of positioning. Summary of the invention
[0004] In view of the above problems, embodiments of the present application provide a method, system and storage medium for visual display of a device, so as to overcome the above problems or at least partially solve the above problems.
[0005] In a first aspect of an embodiment of the present application, a method for visual display of a device is provided, which is applied in a server, wherein the server includes a mainboard, and a plurality of devices are arranged on the mainboard; the method includes:
[0006] Obtaining device query information; wherein the device query information includes a unique identification number;
[0007] Determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed;
[0008] Based on the device to be displayed, obtain configuration information corresponding to the device to be displayed, and generate a configuration display area; wherein the configuration information is a motherboard part number configuration or a model configuration;
[0009] The target device and the other devices are visually displayed in the configuration display area with different display parameter values.
[0010] Further, determining the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed includes:
[0011] Based on the device query information, determining the target device corresponding to the query information;
[0012] Obtain the name of the target device and search for other devices with the same name;
[0013] The target device and the other devices are determined as the devices to be displayed.
[0014] Further, based on the target device, obtaining configuration information corresponding to the target device and generating a configuration display area includes:
[0015] Based on the target device, determine the model name and motherboard part number of the target device;
[0016] Based on the motherboard component number, searching whether there is a motherboard component number configuration corresponding to the motherboard component number;
[0017] If there is a motherboard component number configuration corresponding to the motherboard component number, obtaining the motherboard component number configuration and generating the configuration display area;
[0018] If there is no motherboard component number configuration corresponding to the motherboard component number, the model configuration is obtained based on the model name and the configuration display area is generated.
[0019] Furthermore, the visually displaying the target device and the other devices in the configuration display area with different display parameter values includes:
[0020] Based on the configuration display area, determining that the configuration display area needs to display the number of the target device and the other devices;
[0021] Based on the difference between the number and a preset number, determining whether it is necessary to divide the configuration display area into a plurality of sub-areas;
[0022] In the case where it is determined that the configuration display area needs to be divided into a plurality of sub-areas, the configuration display area is divided into a plurality of sub-areas; wherein each sub-area maps at least one target device and one other device;
[0023] Based on the multiple sub-areas, displaying the target device and the other devices with different display parameter values;
[0024] When it is determined that the configuration display area does not need to be divided into a plurality of sub-areas, the target device and the other devices are visually displayed with different display parameter values.
[0025] Further, the displaying the target device and the other devices with different display parameter values based on the multiple sub-areas includes:
[0026] Obtaining a display order for each sub-area, and configuring each sub-area with a unique identification number of the target device or the other device corresponding to each sub-area based on the display order;
[0027] Each sub-area where the unique identification number is configured is colored with different display parameter values to be visually displayed in the configuration display area.
[0028] Furthermore, the configuration display area is divided into a plurality of sub-areas, wherein each sub-area maps at least one target device and one other device, including:
[0029] Based on the configured display area, determining display parameters; wherein the display parameters include: display area name, display direction and display coordinates;
[0030] Based on the display parameters, the configuration display area is divided into the multiple sub-areas according to the display direction, and a display order is generated.
[0031] Furthermore, before dividing the configuration display area into the plurality of sub-areas according to the display direction based on the display parameter, the method further includes:
[0032] Determine whether the configuration display area needs to display expansion equipment;
[0033] In the case where the expansion device needs to be displayed, the area where the expansion device is located is divided into a sub-area separately.
[0034] Furthermore, before obtaining the device query information, the method further includes:
[0035] Acquire device failure information, and extract the device query information based on the device failure information;
[0036] Based on the device query information, determining a category of the unique identification number in the query information;
[0037] In the case where the category is a precise identification, the faulty device with the precise identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed;
[0038] In the case where the category is an ambiguous identifier, determining the faulty device with the ambiguous identifier as the device to be displayed;
[0039] After acquiring configuration information corresponding to the device to be displayed based on the device to be displayed and generating a configuration display area, the method further includes:
[0040] Acquire an auxiliary display device, wherein the auxiliary display device is used to assist in locating a faulty device;
[0041] adding the auxiliary display device to the configuration display area, and updating the configuration display area;
[0042] Based on the updated display configuration area, the faulty device, the associated device and the auxiliary display device are divided into a plurality of sub-areas according to device type;
[0043] The faulty device, the associated device and the auxiliary display device are visually displayed in corresponding sub-areas with different display parameter values respectively.
[0044] In a second aspect of an embodiment of the present application, a system for visual display of a device is provided, which is applied in a server, wherein the server includes a mainboard, and a plurality of devices are arranged on the mainboard; the system includes:
[0045] An acquisition module, used to acquire device query information; wherein the device query information includes a unique identification number;
[0046] A determination module, configured to determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed;
[0047] A generating module, used for acquiring configuration information corresponding to the device to be displayed based on the device to be displayed, and generating a configuration display area; wherein the configuration information is a motherboard component number configuration or a model configuration;
[0048] The display module is used to visually display the target device and the other devices in the configuration display area with different display parameter values.
[0049] Furthermore, the determination module includes:
[0050] A first determining module, configured to determine the target device corresponding to the query information based on the device query information;
[0051] Obtain the name of the target device and search for other devices with the same name;
[0052] The target device and the other devices are determined as the devices to be displayed.
[0053] Furthermore, the generation module includes:
[0054] A second determination module is used to determine the model name and motherboard component number of the target device based on the target device;
[0055] Based on the motherboard component number, searching whether there is a motherboard component number configuration corresponding to the motherboard component number;
[0056] If there is a motherboard component number configuration corresponding to the motherboard component number, obtaining the motherboard component number configuration and generating the configuration display area;
[0057] If there is no motherboard component number configuration corresponding to the motherboard component number, the model configuration is obtained based on the model name and the configuration display area is generated.
[0058] Furthermore, the display module includes:
[0059] A third determining module is used to determine, based on the configuration display area, the number of the target device and the other devices that need to be displayed in the configuration display area;
[0060] Based on the difference between the number and a preset number, determining whether it is necessary to divide the configuration display area into a plurality of sub-areas;
[0061] In the case where it is determined that the configuration display area needs to be divided into a plurality of sub-areas, the configuration display area is divided into a plurality of sub-areas; wherein each sub-area maps at least one target device and one other device;
[0062] Based on the multiple sub-areas, displaying the target device and the other devices with different display parameter values;
[0063] When it is determined that the configuration display area does not need to be divided into a plurality of sub-areas, the target device and the other devices are visually displayed with different display parameter values.
[0064] Furthermore, the display module includes:
[0065] A first acquisition module is used to acquire a display order of each sub-area, and configure each sub-area with a unique identification number of the target device or the other device corresponding to each sub-area based on the display order;
[0066] Each sub-area where the unique identification number is configured is colored with different display parameter values to be visually displayed in the configuration display area.
[0067] Furthermore, the configuration display area is divided into a plurality of sub-areas, including:
[0068] Based on the configured display area, determining display parameters; wherein the display parameters include: display area name, display direction and display coordinates;
[0069] Based on the display parameters, the configuration display area is divided into the multiple sub-areas according to the display direction, and a display order is generated.
[0070] Furthermore, before dividing the configuration display area into the plurality of sub-areas according to the display direction based on the display parameter, the system further includes:
[0071] A fourth determination module is used to determine whether the configuration display area needs to display expansion equipment;
[0072] In the case where the expansion device needs to be displayed, the area where the expansion device is located is divided into a sub-area separately.
[0073] Furthermore, before obtaining the device query information, the system further includes:
[0074] A second acquisition module is used to acquire device fault information and extract the device query information based on the device fault information;
[0075] Based on the device query information, determining a category of the unique identification number in the query information;
[0076] In the case where the category is a precise identification, the faulty device with the precise identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed;
[0077] In the case where the category is an ambiguous identifier, determining the faulty device with the ambiguous identifier as the device to be displayed;
[0078] After acquiring configuration information corresponding to the device to be displayed based on the device to be displayed and generating a configuration display area, the system further includes:
[0079] A third acquisition module is used to acquire an auxiliary display device, wherein the auxiliary display device is used to assist in locating a faulty device;
[0080] adding the auxiliary display device to the configuration display area, and updating the configuration display area;
[0081] Based on the updated display configuration area, the faulty device, the associated device and the auxiliary display device are divided into a plurality of sub-areas according to device type;
[0082] The faulty device, the associated device and the auxiliary display device are visually displayed in corresponding sub-areas with different display parameter values respectively.
[0083] According to a third aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for visual display of a device as described in the first aspect of the embodiment of the present application is implemented.
[0084] A method for visual display of a device provided by the present embodiment is applied in a server, wherein the server includes a mainboard on which a plurality of devices are arranged; the method includes: firstly obtaining device query information; wherein the device query information includes a unique identification number; then determining a target device having a unique identification number and other devices of the same type as the target device as devices to be displayed; then, based on the devices to be displayed, obtaining configuration information corresponding to the devices to be displayed, and generating a configuration display area; wherein the configuration information is a mainboard part number configuration or a model configuration; finally, visually displaying the target device and other devices in the configuration display area with different display parameter values.
[0085] Through the device query information including the unique identification number, the target device corresponding to the unique identification number and other devices of the same type as the target device can be accurately found as the devices to be displayed, and then the configuration information corresponding to the device to be displayed is obtained according to the device to be displayed, and a configuration display area is generated. Through the configuration display area, the device to be displayed can be displayed on the configuration display area, and then the target device and other devices can be displayed on the configuration display area with different display parameter values, which can facilitate testers to quickly locate the target device and the positional relationship of other devices of the same type as the target device, and can quickly locate the physical position of the target device from similar devices, thereby improving the efficiency of locating the target position. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0087] Figure 1 It is a flowchart of the steps of a method for visual display of a device provided in an embodiment of the present application;
[0088] Figure 2 is a schematic diagram of a configuration display area provided in an embodiment of the present application;
[0089] Figure 3is a schematic diagram of a configuration display area of a differentiated display device provided in an embodiment of the present application;
[0090] Figure 4 It is a system schematic diagram of a device visual display provided in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The exemplary embodiments of the present application will be described in more detail below in conjunction with the accompanying drawings in the embodiments of the present application. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to enable the scope of the present application to be fully conveyed to those skilled in the art.
[0092] Reference Figure 1 , Figure 1 It is a flowchart of the steps of a method for visual display of a device provided in an embodiment of the present application; Figure 1 The method is applied in a server, wherein the server comprises a mainboard, and a plurality of devices are arranged on the mainboard; Figure 1 The method steps include:
[0093] Step S101: Acquire device query information; wherein the device query information includes a unique identification number.
[0094] In this embodiment, the device can be a PCIe device with a PCIe interface. PCIe is used to connect various external devices (such as network cards, graphics cards, sound cards, etc.) to the computer motherboard. The unique identification number is the DBDF (Domain, Bus, Deivce, Function) number of the PCIe device. Based on the DBDF number of the device, accurate queries can be made for this device. Therefore, when obtaining device query information, it is necessary to obtain the unique identification number of the device before further queries can be made on the device.
[0095] For example, taking the PCIe data of a network card as an example, by running the lspci command, you can view the detailed information of the PCIe device installed in the system, which may include the manufacturer information, device ID, driver information, etc. of the device.
[0096] Assume that the device information to be queried is: 0000:1f:00.0 Ethernet controller:IntelCorporation Ethernet Controller X710 for 10GbE SFP+(rev 02). 0000:1f:00.0 is the DBDF number, that is, 0000 is the value of the Domain field, 1f is the Bus number, 00 is the Device number, and 0 is the Function number; Ethernet controller is the device type, which is a network card, and the following is the device manufacturer information, device information, and other information.
[0097] Step S102: Determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed.
[0098] In this embodiment, since there may be multiple devices of the same type on the motherboard, and there is no strong correlation between the physical location of the PCIe device and the DBDF number, if only one target location is displayed, it may be difficult for the tester to quickly and accurately find the target device on the motherboard, so it is also necessary to display other devices of the same type as the target device. The device type of the target device can be queried through step S101, so other devices of the same type as the target device are found through the device type, and the target device and other devices are used as devices to be displayed.
[0099] Step S103: Based on the device to be displayed, obtain configuration information corresponding to the device to be displayed, and generate a configuration display area; wherein the configuration information is a motherboard component number configuration or a model configuration.
[0100] In this embodiment, configuration information corresponding to the device to be displayed is searched according to the device to be displayed. The configuration information is a motherboard part number configuration or a model configuration. The motherboard part number configuration is a model sketch of the motherboard drawn in proportion to the corresponding physical motherboard. The model configuration is a model sketch of the server drawn in proportion to the corresponding server. The device to be displayed is displayed on the model sketch to generate a configuration display area.
[0101] Step S104: Visually display the target device and the other devices in the configuration display area with different display parameter values.
[0102] In this embodiment, in order to smoothly locate the position of the target device, the target device and other devices can be displayed in the configuration display area with different display parameter values, which is equivalent to distinguishing the target device from other devices. The position of the target device can be quickly located through different display parameter values, and the position of the target device in the configuration display area and the relative position relationship between the target device and other devices can be clearly seen.
[0103] In a specific embodiment, determining the target device having the unique identification number and other devices of the same type as the target device as the devices to be displayed may include the following steps:
[0104] First, based on the device query information, the target device corresponding to the query information is determined; then the name of the target device is obtained, and other devices with the same name are searched; finally, the target device and the other devices are determined as the devices to be displayed.
[0105] In this embodiment, the unique identification number of the target device is known through device query information, and the name of the corresponding target device can be found through the unique identification number. Since there are multiple devices with the same name on the mainboard, for the convenience of layout and easy search, devices with the same name are generally arranged in the same area. Therefore, the name of the target device can be used to find other devices with the same name; finally, the target device and other devices are determined as devices to be displayed.
[0106] For example, based on the DBDF number of the target device 0000:45:00.0, you can query its PCIe device name through the lspci command: 3D controller: NVIDIA Corporation GH100[H800](rev a1), then you can get other devices with the same PCIe device name, and then determine the target device and other devices as the devices to be displayed.
[0107] In a specific embodiment, based on the target device, obtaining configuration information corresponding to the target device and generating a configuration display area may include the following steps:
[0108] First, based on the target device, determine the model name and motherboard component number of the target device; then, based on the motherboard component number, find out whether there is a motherboard component number configuration corresponding to the motherboard component number; and if there is a motherboard component number configuration corresponding to the motherboard component number, obtain the motherboard component number configuration and generate the configuration display area; and if there is no motherboard component number configuration corresponding to the motherboard component number, obtain the model configuration based on the model name and generate the configuration display area.
[0109] In this embodiment, according to the target device, the model name and motherboard component number of the target device are determined. The motherboard component number is the component number of the motherboard where the target device is located, and the model name is the name of the server where the target device is located. Since there may be different types of motherboards in the server, the target device may be on different types of motherboards. The positions of the same target device on different types of motherboards may be different. In order to facilitate intuitively seeing the physical location of the target device and narrow the positioning range, different model sketches can be configured for different types of motherboards, and different model sketches can be configured according to different servers. Therefore, the motherboard component number configuration corresponding to the motherboard component number configuration can be preferentially searched according to the motherboard component number. Therefore, in the case where there is a motherboard component number configuration corresponding to the motherboard component number, the motherboard component number configuration is obtained, and a model sketch with a configuration display area of the motherboard component is generated. The model sketch is a sketch drawn 1:1 with the motherboard. And in the case where there is no motherboard component number configuration corresponding to the motherboard component number, a model sketch with a configuration display area of the server is generated. The model sketch is a sketch drawn 1:1 with the server.
[0110] In a specific embodiment, visually displaying the target device and the other devices in the configuration display area with different display parameter values may include the following steps:
[0111] First, based on the configuration display area, determine the number of the target devices and the other devices that need to be displayed in the configuration display area; based on the difference between the number and the preset number, determine whether it is necessary to divide the configuration display area into multiple sub-areas; then, if it is determined that the configuration display area needs to be divided into multiple sub-areas, divide the configuration display area into multiple sub-areas; wherein each sub-area maps at least one target device and one other device; then, based on the multiple sub-areas, display the target device and the other devices with different display parameter values; finally, if it is determined that it is not necessary to divide the configuration display area into multiple sub-areas, visually display the target device and the other devices with different display parameter values.
[0112] In this embodiment, according to the configuration display area, that is, the model sketch, it can be determined that the number of target devices and other devices that need to be displayed in the configuration display area is too large, and it is not convenient for the tester to directly observe the location of the target device. The configuration display area will be divided into multiple sub-areas to display the target devices and other devices. That is, when the number of displayed devices exceeds the preset number, the configuration display area can be divided into multiple sub-areas. In this embodiment, the number of devices can be the total number of displayed target devices and other devices, or the total number of types of target devices and other devices. For example, when there are multiple types of target devices, there will be multiple types of other devices corresponding to the target devices. In order to distinguish different types of devices, they are divided, which can facilitate testers to more intuitively judge the physical locations of different types of target devices. Therefore, the preset number can be selected according to the number of devices. This embodiment does not limit the preset number, and is mainly based on the convenience of testers.
[0113] Therefore, when the number of devices exceeds the preset number, the configuration display area can be divided into multiple sub-areas, each sub-area maps at least one target device and one other device, and the target device and other devices are displayed with different display parameter values according to the multiple sub-areas. The display parameter value can be a color, a text mark, or a graphic mark. In order to highlight the physical location of the target device, multiple sub-areas can display the target device and other devices with different display parameter values.
[0114] When it is determined that there is no need to divide the configuration display area into multiple sub-areas, that is, the configuration display area can also satisfy the tester's direct judgment of the physical location of the target device without being divided into multiple sub-areas. At this time, the target device and other devices can be directly visualized with different display parameter values.
[0115] In a specific embodiment, dividing the configuration display area into a plurality of sub-areas, wherein each sub-area maps at least one target device and one other device, may include the following steps:
[0116] First, based on the configured display area, display parameters are determined; wherein the display parameters include: display area name, display direction and display coordinates; then, based on the display parameters, the configured display area is divided into the multiple sub-areas according to the display direction, and a display order is generated.
[0117] In this embodiment, display parameters are determined according to the configured display area, and the display parameters include the display area name, display direction and display coordinates. The display area name is the device type of the device to be displayed, and the display direction is the positional relationship between devices of the same type, such as up and down, left and right. The display coordinates can be based on the position on a certain area of the configured display area as the coordinate origin, and the position coordinates of each device on the configured display area are displayed. Then, according to the display parameters, the configured display area is divided into multiple sub-areas according to the display direction, and a display order is generated. The display order is the display order of multiple sub-areas, and specifically, the display direction of the target device and other devices on each sub-area can be displayed.
[0118] In a specific embodiment, based on the multiple sub-areas, displaying the target device and the other devices with different display parameter values may include the following steps:
[0119] First, the display order of each sub-area is obtained, and based on the display order, each sub-area is configured with a unique identification number of the target device or the other device corresponding to the target device; then each sub-area configured with the unique identification number is colored with different display parameter values for visual display in the configuration display area.
[0120] In this embodiment, the display order of each sub-area is obtained. The display order is the display direction of the target device and other devices on the sub-area. For example, there is a target device and two other devices on the sub-area. The positions of the target device and other devices on the horizontal axis are consistent, but the positions on the vertical axis are different. Therefore, the display direction of the target device and the two other devices on the sub-area can be set up and down. Therefore, according to the display order, each sub-area can be configured with a unique identification number corresponding to the target device or other device, so that each device can be distinguished. However, in order to facilitate the tester to more intuitively determine the physical location of the target device, each sub-area configured with a unique identification number will be colored with different display parameter values, so as to be visually displayed in the configuration display area, so as to facilitate the tester to determine the physical location of the target device.
[0121] In a specific embodiment, before dividing the configuration display area into the multiple sub-areas according to the display direction based on the display parameters, the method also includes the following steps: determining whether the configuration display area needs to display an expansion device; if the expansion device needs to be displayed, dividing the area where the expansion device is located into a separate sub-area.
[0122] In this embodiment, it is also necessary to determine whether to configure the display area to display expansion devices. Expansion devices are other devices that are connected to the mainboard in addition to the devices already on the mainboard, that is, expansion devices. In order to facilitate the distinction between devices on the mainboard and devices outside the mainboard, if it is necessary to display the expansion devices, the area where the expansion devices are located is divided into a separate sub-area.
[0123] In a specific embodiment, before obtaining the device query information, the method further includes the following steps:
[0124] First, the device fault information is obtained, and the device query information is extracted based on the device fault information; then, based on the device query information, the category of the unique identification number in the query information is determined; when the category is a precise identification, the faulty device with the precise identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed; and when the category is a fuzzy identification, the faulty device with the fuzzy identification is determined as the device to be displayed;
[0125] Secondly, after obtaining configuration information corresponding to the device to be displayed based on the device to be displayed and generating a configuration display area, the method further includes the following steps:
[0126] First, an auxiliary display device is obtained, wherein the auxiliary display device is used to assist in locating a faulty device; then, the auxiliary display device is added to the configuration display area, and the configuration display area is updated; based on the updated display configuration area, the faulty device, the associated device, and the auxiliary display device are divided into a plurality of sub-areas according to device type; finally, the faulty device, the associated device, and the auxiliary display device are visually displayed in corresponding sub-areas with different display parameter values, respectively.
[0127] In this embodiment, before obtaining the device query information, the device fault information can also be obtained, and then the device query information is extracted based on the fault information, and then the category of the unique identification number in the query information is queried. If it is an accurate identification, the faulty device with the accurate identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed. If it is a fuzzy identification, the faulty device with the fuzzy identification is determined as the device to be displayed, and there is no need to search for devices associated with the faulty device.
[0128] Then, after generating the configuration display area according to the device to be displayed, obtain the auxiliary display device, which is used to assist in locating the faulty device. Specifically, it can be a power supply, CPU and other devices. Secondly, the auxiliary device can also be the key equipment that needs to be displayed, such as some equipment that is prone to failure. Then use the auxiliary device to update the configuration display area. Specifically, the location and name of the auxiliary device can be drawn into the model sketch, and then the updated configuration display area is divided into multiple sub-areas according to the type of device. The faulty device, related equipment and auxiliary display equipment can be visualized in the corresponding sub-areas with different display parameter values. This allows testers to more clearly and intuitively identify the positional relationship of each device in the updated configuration display area.
[0129] In addition, precise identification can be added for fuzzy devices. The display order can re-sort the physical positions of devices corresponding to the fuzzy devices. Fuzzy devices correspond to multiple devices without precise identification. In order to facilitate the positioning of fuzzy devices, fuzzy devices can also be numbered. The number corresponding to each device is unique. First, the physical position corresponding to the fuzzy device is obtained and numbered according to the display direction. Assuming that multiple devices in the fuzzy device are distributed vertically, they can be sorted from top to bottom. If multiple devices are distributed alternately horizontally and vertically, they can be sorted according to the distance of each device from the coordinate origin. If there are devices with equal distances, they are sorted from top to bottom and then from left to right. Finally, a sorting table is generated according to the sorted position, which is convenient for testers to accurately locate the physical position of each device in the fuzzy device according to the sorting table.
[0130] For example, the method for visualizing the device provided by the present application is described in detail below using a specific example:
[0131] A server, model name is PRODUCTNAME, has 8 GPUs, 2 X710 network cards, 1 GPU and 1 network card have errors, and you need to quickly locate the physical location of the GPU and network card that have errors. Since there are 2 optical port devices on the X710 network card, when querying PCIe devices, one X710 network card corresponds to 2 PCIe devices. The specific data corresponding to the 8 GPUs and 2 X710 network cards are as follows:
[0132] The 8 GPUs are:
[0133] 0000:0c:00.0 3D controller:NVIDIA Corporation GH100[H800](rev a1).
[0134] 0000:32:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0135] 0000:45:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0136] 0000:58:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0137] 0000:84:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0138] 0000:ac:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0139] 0000:c0:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0140] 0000:d4:00.0 3D controller: NVIDIA Corporation GH100[H800](rev a1).
[0141] The first X710 network card is:
[0142] 0000:1f:00.0 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+(rev 02).
[0143] 0000:1f:00.1 Ethernet controller: Intel Corporation Ethernet Controller X710 for 10GbE SFP+(rev 02).
[0144] The second X710 network card is:
[0145] 0000:20:00.0Ethernet controller:Intel Corporation Ethernet ControllerX710 for 10GbE SFP+(rev 02).
[0146] 0000:20:00.1Ethernet controller:Intel Corporation Ethernet ControllerX710 for 10GbE SFP+(rev 02).
[0147] Assume that the GPU in the third row and the first X710 network card are reported with errors, that is, the DBDF number of the GPU reporting the error is 0000:45:00.0, and the DBDF numbers of the X710 network card reporting the error are 0000:1f:00.0 and 0000:1f:00.1.
[0148] The PCIe devices corresponding to the GPU in the third row of the error report and the first X710 network card are taken as the target devices that need to be displayed more clearly, and then the DBDF name of the target is obtained according to the DBDF number. Then, other PCIe devices corresponding to the DBDF numbers with the same DBDF name are further obtained as the same type of PCIe devices displayed normally, that is, other devices.
[0149] Specifically, based on the DBDF number 0000:45:00.0 of the GPU that reports the error, you can use the lspci command to query the PCIe device name of the target device, which is 3D controller:NVIDIA Corporation GH100[H800](rev a1). Then, you can query and find that there are 8 DBDF numbers with the same PCIe device name.
[0150] Similarly, the four DBDF numbers of X710 can be obtained according to the DBDF number of the X710 network card that reports an error. The device that reports an error is the target device that needs to be displayed more effectively. Therefore, after the query is completed, the model name, motherboard part number, DBDF number, and whether to enhance the display can be obtained for each PCIe device. Refer to Table 1, which is a table of devices to be displayed.
[0151] Table 1- Equipment to be displayed
[0152]
[0153]
[0154] Then according to the data in Table 1, the motherboard part number configuration is given priority. If not, the model configuration is obtained, assuming the in the present embodiment. If the area on the model sketch is the GPU area, then generally one display area corresponds to one DBDF number. In a model, multiple specifications of riser cards may be included, and different configurations may use riser cards of different specifications. For example, 3*PCIeX16 (3 X16 PCIe slots), 1*PCIeX16+2*PCIeX8 (1 X16 PCIe slot and 2 X8 PCIe slots), 1*PCIeX16 (1 X16 PCIe slot). If the area is a riser card area, it is necessary to display multiple PCIe devices, then it is necessary to consider that the area will be split into multiple sub-areas for display. The practice of the present invention is that a riser card defaults to being used as a display area, and when the area needs to display several PCIe devices, it is evenly split into several parts for display.
[0155] According to the model sketch, mark all the areas where PCIe devices are to be displayed on the picture, obtain the pixel starting coordinates, and set the area name and the display direction when the area is split into multiple sub-areas. Generate the model configuration name, display area name, starting point coordinate x, starting point coordinate y, end point coordinate x, end point coordinate y, and display direction (display direction when split into multiple sub-areas). Configure the correspondence between the display area and the DBDF number. For example, when the riser card area may contain multiple PCIe devices, the DBDF numbers are configured in sequence according to the display order. At the same time, the matching method of the DBDF number supports exact matching and fuzzy matching. If the configured DBDF number is a specific DBDF number, it is an exact match. Refer to Table 2, which is the configuration parameter table for exact matching.
[0156] Table 2-Configuration parameters for precise matching
[0157]
[0158] If some data is configured with an *, it means that the position is processed by fuzzy matching. Refer to Table 3, which is a configuration parameter table with fuzzy matching.
[0159] Table 3 - Configuration parameters with fuzzy matching
[0160]
[0161]
[0162] Then set the model sketch resolution to 600*1000, and name the picture as: model name_configuration name.jsp. This configuration is the default configuration of the model, so the model sketch name is PRODUCTNAME_default.jsp (the configuration at the model motherboard part number level is named PRODUCTNAME_YZMB-00001-101.jsp). Mark the display area of the PCIe device and mark the display area of the PCIe device on the picture.
[0163] Finally, generate the configuration display area according to the model configuration, refer to Figure 2 , Figure 2 It is a schematic diagram of a model sketch provided by an embodiment of the present application. The figure has shown the areas of each device on the server. If a configuration display area is to display multiple PCIe devices, it is split according to the display direction and a display order is generated. The generated data grid refers to Table 4, which includes the model name, model configuration name, display area name, display order, DBDF number, whether to enhance the display mark, display direction, starting point coordinate x, starting point coordinate y, end point coordinate x, and end point coordinate y. Refer to Table 4, Table 4 is Figure 2 Display parameter table.
[0164] Table 4- Figure 2 Display parameter table.
[0165]
[0166]
[0167] According to the model and model configuration name, select the model sketch corresponding to the model as the configuration display area, and then process the configuration display area, and color the area according to the starting point coordinates and the end point coordinates. The display parameter value 1 of the target device or faulty device that needs to be displayed can be colored red, and the display parameter value 0 of other devices that are displayed normally can be colored green. Then display the target device and other devices in the configuration display area, or display the faulty device, related equipment and auxiliary equipment in the updated configuration display area. Reference Figure 3 , Figure 3 is a schematic diagram of a configuration display area of a differentiated display device provided in an embodiment of the present application, from Figure 3 It can be seen that the color of the device that needs to be displayed more strongly is darker than that of other devices that are displayed normally, and is more likely to be noticed by testers.
[0168] Reference Figure 4 , Figure 4 is a system diagram of a device visualization display provided by an embodiment of the present application, which is applied in a server, wherein the server includes a mainboard, and a plurality of devices are arranged on the mainboard; Figure 4 It can be seen that the system includes:
[0169] The acquisition module 401 is used to acquire device query information; wherein the device query information includes a unique identification number;
[0170] A determination module 402, configured to determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed;
[0171] The generating module 403 is used to obtain the configuration information corresponding to the device to be displayed based on the device to be displayed, and generate a configuration display area; wherein the configuration information is a motherboard part number configuration or a model configuration;
[0172] The display module 404 is used to visually display the target device and the other devices in the configuration display area with different display parameter values.
[0173] In this embodiment, the determining module 402 includes:
[0174] A first determining module, configured to determine the target device corresponding to the query information based on the device query information;
[0175] Obtain the name of the target device and search for other devices with the same name;
[0176] The target device and the other devices are determined as the devices to be displayed.
[0177] In this embodiment, the generating module 403 includes:
[0178] A second determination module is used to determine the model name and motherboard component number of the target device based on the target device;
[0179] Based on the motherboard component number, searching whether there is a motherboard component number configuration corresponding to the motherboard component number;
[0180] If there is a motherboard component number configuration corresponding to the motherboard component number, obtaining the motherboard component number configuration and generating the configuration display area;
[0181] If there is no motherboard component number configuration corresponding to the motherboard component number, the model configuration is obtained based on the model name and the configuration display area is generated.
[0182] In this embodiment, the display module 404 includes:
[0183] A third determining module is used to determine, based on the configuration display area, the number of the target device and the other devices that need to be displayed in the configuration display area;
[0184] Based on the difference between the number and a preset number, determining whether it is necessary to divide the configuration display area into a plurality of sub-areas;
[0185] In the case where it is determined that the configuration display area needs to be divided into a plurality of sub-areas, the configuration display area is divided into a plurality of sub-areas; wherein each sub-area maps at least one target device and one other device;
[0186] Based on the multiple sub-areas, displaying the target device and the other devices with different display parameter values;
[0187] When it is determined that the configuration display area does not need to be divided into a plurality of sub-areas, the target device and the other devices are visually displayed with different display parameter values.
[0188] In this embodiment, the display module 404 includes:
[0189] A first acquisition module is used to acquire a display order of each sub-area, and configure each sub-area with a unique identification number of the target device or the other device corresponding to each sub-area based on the display order;
[0190] Each sub-area where the unique identification number is configured is colored with different display parameter values to be visually displayed in the configuration display area.
[0191] In this embodiment, the configuration display area is divided into a plurality of sub-areas, including:
[0192] Based on the configured display area, determining display parameters; wherein the display parameters include: display area name, display direction and display coordinates;
[0193] Based on the display parameters, the configuration display area is divided into the multiple sub-areas according to the display direction, and a display order is generated.
[0194] In this embodiment, before dividing the configuration display area into the multiple sub-areas according to the display direction based on the display parameter, the system further includes:
[0195] A fourth determination module is used to determine whether the configuration display area needs to display expansion equipment;
[0196] In the case where the expansion device needs to be displayed, the area where the expansion device is located is divided into a sub-area separately.
[0197] In this embodiment, before acquiring the device query information, the system further includes:
[0198] A second acquisition module is used to acquire device fault information and extract the device query information based on the device fault information;
[0199] Based on the device query information, determining a category of the unique identification number in the query information;
[0200] In the case where the category is a precise identification, the faulty device with the precise identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed;
[0201] In the case where the category is an ambiguous identifier, determining the faulty device with the ambiguous identifier as the device to be displayed;
[0202] After acquiring configuration information corresponding to the device to be displayed based on the device to be displayed and generating a configuration display area, the system further includes:
[0203] A third acquisition module is used to acquire an auxiliary display device, wherein the auxiliary display device is used to assist in locating a faulty device;
[0204] adding the auxiliary display device to the configuration display area, and updating the configuration display area;
[0205] Based on the updated display configuration area, the faulty device, the associated device and the auxiliary display device are divided into a plurality of sub-areas according to device type;
[0206] The faulty device, the associated device and the auxiliary display device are visually displayed in corresponding sub-areas with different display parameter values respectively.
[0207] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for visual display of a device as described in the embodiment of the present application.
[0208] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0209] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods and devices according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0210] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0211] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0212] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0213] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0214] The above is a detailed introduction to a method, system and storage medium for visual display of a device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for visual display of a device, characterized in that: The method is applied in a server, wherein the server includes a mainboard, and a plurality of devices are arranged on the mainboard; the method includes: Obtaining device query information; wherein the device query information includes a unique identification number; Determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed; Based on the device to be displayed, obtain configuration information corresponding to the device to be displayed, and generate a configuration display area; wherein the configuration information is a motherboard part number configuration or a model configuration; The target device and the other devices are visually displayed in the configuration display area with different display parameter values.
2. The method according to claim 1, characterized in that: The step of determining the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed includes: Based on the device query information, determining the target device corresponding to the query information; Obtain the name of the target device and search for other devices with the same name; The target device and the other devices are determined as the devices to be displayed.
3. The method according to claim 1, characterized in that The acquiring, based on the target device, configuration information corresponding to the target device and generating a configuration display area includes: Based on the target device, determine the model name and motherboard part number of the target device; Based on the motherboard component number, searching whether there is a motherboard component number configuration corresponding to the motherboard component number; If there is a motherboard component number configuration corresponding to the motherboard component number, obtaining the motherboard component number configuration and generating the configuration display area; If there is no motherboard component number configuration corresponding to the motherboard component number, the model configuration is obtained based on the model name and the configuration display area is generated.
4. The method according to claim 1, characterized in that The visually displaying the target device and the other devices in the configuration display area with different display parameter values includes: Based on the configuration display area, determining that the configuration display area needs to display the number of the target device and the other devices; Based on the difference between the number and a preset number, determining whether it is necessary to divide the configuration display area into a plurality of sub-areas; In the case where it is determined that the configuration display area needs to be divided into a plurality of sub-areas, the configuration display area is divided into a plurality of sub-areas; wherein each sub-area maps at least one target device and one other device; Based on the multiple sub-areas, display the target device and the other devices with different display parameter values; When it is determined that the configuration display area does not need to be divided into a plurality of sub-areas, the target device and the other devices are visually displayed with different display parameter values.
5. The method according to claim 4, characterized in that The displaying the target device and the other devices with different display parameter values based on the multiple sub-areas includes: Obtaining a display order for each sub-area, and configuring each sub-area with a unique identification number of the target device or the other device corresponding to each sub-area based on the display order; Each sub-area where the unique identification number is configured is colored with different display parameter values to be visually displayed in the configuration display area.
6. The method according to claim 4, characterized in that The step of dividing the configuration display area into a plurality of sub-areas comprises: Based on the configured display area, determining display parameters; wherein the display parameters include: display area name, display direction and display coordinates; Based on the display parameters, the configuration display area is divided into the multiple sub-areas according to the display direction, and a display order is generated.
7. The method according to claim 6, characterized in that Before dividing the configuration display area into the plurality of sub-areas according to the display direction based on the display parameter, the method further includes: Determine whether the configuration display area needs to display expansion equipment; In the case where the expansion device needs to be displayed, the area where the expansion device is located is divided into a sub-area separately.
8. The method according to claim 1, characterized in that Before acquiring the device query information, the method further includes: Acquire device failure information, and extract the device query information based on the device failure information; Based on the device query information, determining a category of the unique identification number in the query information; In the case where the category is a precise identification, the faulty device with the precise identification and the associated devices of the same type as the faulty device are determined as the devices to be displayed; In the case where the category is an ambiguous identifier, determining the faulty device with the ambiguous identifier as the device to be displayed; After acquiring configuration information corresponding to the device to be displayed based on the device to be displayed and generating a configuration display area, the method further includes: Acquire an auxiliary display device, wherein the auxiliary display device is used to assist in locating a faulty device; Adding the auxiliary display device to the configuration display area, and updating the configuration display area; Based on the updated display configuration area, the faulty device, the associated device and the auxiliary display device are divided into a plurality of sub-areas according to device type; The faulty device, the associated device and the auxiliary display device are visually displayed in corresponding sub-areas with different display parameter values respectively.
9. A system for visual display of equipment, characterized in that: The system is applied in a server, wherein the server includes a mainboard, and a plurality of devices are arranged on the mainboard; the system includes: An acquisition module, used to acquire device query information; wherein the device query information includes a unique identification number; A determination module, configured to determine the target device having the unique identification number and other devices of the same type as the target device as devices to be displayed; A generating module, used for acquiring configuration information corresponding to the device to be displayed based on the device to be displayed, and generating a configuration display area; wherein the configuration information is a motherboard component number configuration or a model configuration; The display module is used to visually display the target device and the other devices in the configuration display area with different display parameter values.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for visual display of a device according to any one of claims 1 to 8 is implemented.
