CN113626278A - Hardware topology generation method and related equipment thereof - Google Patents

Hardware topology generation method and related equipment thereof Download PDF

Info

Publication number
CN113626278A
CN113626278A CN202110741888.4A CN202110741888A CN113626278A CN 113626278 A CN113626278 A CN 113626278A CN 202110741888 A CN202110741888 A CN 202110741888A CN 113626278 A CN113626278 A CN 113626278A
Authority
CN
China
Prior art keywords
target server
hardware
configuration information
basic configuration
topological graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110741888.4A
Other languages
Chinese (zh)
Other versions
CN113626278B (en
Inventor
刘骏
张旭芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110741888.4A priority Critical patent/CN113626278B/en
Publication of CN113626278A publication Critical patent/CN113626278A/en
Application granted granted Critical
Publication of CN113626278B publication Critical patent/CN113626278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3048Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the topology of the computing system or computing system component explicitly influences the monitoring activity, e.g. serial, hierarchical systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Abstract

The application discloses a hardware topology generation method and related equipment thereof, wherein the method comprises the following steps: firstly, acquiring basic configuration information of a target server from the target server by utilizing a pre-constructed instruction set; then, according to the basic configuration information of the target server, a hardware topological graph of the target server is constructed, so that the hardware topological graph can accurately represent the basic configuration information of the target server; finally, the hardware topological graph of the target server is displayed, so that an administrator can quickly acquire the basic configuration information of the target server from the hardware topological graph, and thus adverse effects (low information acquisition efficiency or incomplete information acquisition and the like) caused by the fact that the administrator queries the basic configuration information by means of a large number of instructions can be effectively avoided, and convenience of server management operation and maintenance can be effectively improved.

Description

Hardware topology generation method and related equipment thereof
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a hardware topology generation method and related devices.
Background
In the operation and maintenance management of the server, an administrator needs to know basic configuration information of each server (for example, connection structure of each hardware in the server, device attribute information such as model and driver), and the administrator needs to use a large number of instructions to query, which results in poor information obtaining effect of the basic configuration information of the server, and thus causes inconvenience in operation and maintenance management of the server.
Disclosure of Invention
In order to solve the technical problems in the prior art, the present application provides a hardware topology generation method and related devices thereof, which can improve the convenience of server management operation and maintenance.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
the embodiment of the application provides a hardware topology generation method, which comprises the following steps:
acquiring basic configuration information of a target server from the target server by utilizing a pre-constructed instruction set;
constructing a hardware topological graph of the target server according to the basic configuration information of the target server;
and displaying the hardware topological graph of the target server.
In a possible implementation manner, the process of building the hardware topology of the target server includes:
determining the display information of at least one piece of hardware to be displayed and the connection relation between the at least one piece of hardware to be displayed according to the basic configuration information of the target server;
constructing a topological structure between the at least one piece of hardware to be displayed according to the connection relation between the at least one piece of hardware to be displayed;
and determining a hardware topological graph of the target server according to the topological structure between the at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed.
In a possible implementation manner, if the target server includes a first device and the basic configuration information of the target server includes the configuration information of the first device, the process of constructing the hardware topology of the target server includes:
if the configuration information of the first device indicates that the first device supports lighting of a positioning lamp, generating an option switch button corresponding to the first device, so that the option switch button corresponding to the first device is used for realizing a lighting positioning function of the first device;
and adding an option switch button corresponding to the first device to the hardware topological graph of the target server.
In a possible implementation manner, if the target server includes a second device, and the basic configuration information of the target server includes the configuration information of the second device, the process of constructing the hardware topology of the target server includes:
if the configuration information of the second device indicates that the second device supports hot plug operation, generating an option switch button corresponding to the second device, so that the option switch button corresponding to the second device is used for supporting the hot plug operation of the second device;
and adding an option switch button corresponding to the second device to the hardware topological graph of the target server.
In a possible implementation manner, if the target server includes a third device and the basic configuration information of the target server includes the configuration information of the third device, the process of constructing the hardware topology of the target server includes:
if the configuration information of the third device indicates that the third device supports the upgrading function, generating a pop-up window corresponding to the third device, so that the pop-up window corresponding to the third device is used for realizing the upgrading function of the third device;
and determining a hardware topological graph of the target server according to the pop-up window corresponding to the third device.
In one possible embodiment, the method further comprises:
after an error record is obtained, generating alarm information according to the error record;
and updating the hardware topological graph of the target server by using the alarm information, so that the updated hardware topological graph is used for representing the alarm information carried by the alarm information.
An embodiment of the present application further provides a hardware topology generating apparatus, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring basic configuration information of a target server from the target server by using a pre-constructed instruction set;
the construction unit is used for constructing a hardware topological graph of the target server according to the basic configuration information of the target server;
and the display unit is used for displaying the hardware topological graph of the target server.
An embodiment of the present application further provides an apparatus, where the apparatus includes a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute any implementation manner of the hardware topology generation method provided by the embodiment of the application according to the computer program.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute any implementation manner of the hardware topology generation method provided in the embodiment of the present application.
The embodiment of the present application further provides a computer program product, and when the computer program product runs on a terminal device, the terminal device is enabled to execute any implementation manner of the hardware topology generation method provided in the embodiment of the present application.
Compared with the prior art, the embodiment of the application has at least the following advantages:
in the technical scheme provided by the embodiment of the application, for a target server, basic configuration information of the target server is collected from the target server by utilizing a pre-constructed instruction set; then, according to the basic configuration information of the target server, a hardware topological graph of the target server is constructed, so that the hardware topological graph can accurately represent the basic configuration information of the target server; finally, the hardware topological graph of the target server is displayed, so that an administrator can quickly acquire the basic configuration information of the target server from the hardware topological graph, and thus adverse effects (low information acquisition efficiency or incomplete information acquisition and the like) caused by the fact that the administrator queries the basic configuration information by means of a large number of instructions can be effectively avoided, and convenience of server management operation and maintenance can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a hardware topology generation method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a hardware topology provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of constructing a hardware topology provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a hardware topology generating apparatus according to an embodiment of the present application.
Detailed Description
The inventors found in the research for obtaining the basic configuration information of the server that:
(1) when an administrator needs to know basic configuration information of each server (for example, connection structures of various hardware in the server, device attribute information such as models and drivers), the administrator needs to use many different instructions to query, and needs to filter out required information from a large number of query results, sometimes needs to perform next query according to a certain query result, and the instructions queried by the servers with different configurations are different, so that management, operation and maintenance are inconvenient.
(2) The lspci-tv command provided by the system can only simply see the topology of the pci device, but the device information connected with the deeper RAID/SAS/HBA/HCA card cannot be checked, which causes inconvenience in management, operation and maintenance.
(3) When a certain hardware in the server has an error, the state of the equipment cannot be known in time, and when the server is found to be abnormal by other monitoring software or a user, the relevant logs can be retrieved to determine the error information of the equipment, so that the management, operation and maintenance are inconvenient.
(4) When the hot plug replacement is performed on the device to be replaced, the pci connection slot of the device needs to be found out under the system, and the corresponding spot positioning lamp and power-on/power-off command are executed, so that the management, operation and maintenance are inconvenient.
(5) When the drivers/firmware of certain components are upgraded, the drivers/firmware need to be installed one by one under the system, so that the operation and maintenance management is inconvenient.
Based on the above findings, in order to solve the technical problems of the background art section, an embodiment of the present application provides a hardware topology generating method, including: firstly, acquiring basic configuration information of a target server from the target server by utilizing a pre-constructed instruction set; then, according to the basic configuration information of the target server, a hardware topological graph of the target server is constructed, so that the hardware topological graph can accurately represent the basic configuration information of the target server; finally, the hardware topological graph of the target server is displayed, so that an administrator can quickly acquire the basic configuration information of the target server from the hardware topological graph, and thus adverse effects (low information acquisition efficiency or incomplete information acquisition and the like) caused by the fact that the administrator queries the basic configuration information by means of a large number of instructions can be effectively avoided, and convenience of server management operation and maintenance can be effectively improved.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
Method embodiment
Referring to fig. 1, the figure is a flowchart of a hardware topology generation method provided in an embodiment of the present application.
The hardware topology generation method provided by the embodiment of the application comprises the following steps of S1-S3:
s1: and acquiring basic configuration information of the target server from the target server by utilizing a pre-constructed instruction set.
The instruction set refers to an instruction set used for collecting basic configuration information of a target server from the target server.
In addition, the instruction set is not limited in the embodiments of the present application, and for example, the instruction set may include instructions such as dmidcode, lspci, lscpu, udevadm _ info, bios devname, ethtol, mdadm, lsusb, and the like, which are built in the system.
The target server is a server needing to construct a hardware topological graph; furthermore, the target server is not limited in the embodiments of the present application, for example, for a multi-server system, the target server may be a server currently running.
"basic configuration information of a target server" is used to describe relevant information (e.g., attribute information, function information, and connection relation) of each hardware in the target server; in addition, the embodiment of the present application does not limit "basic configuration information of the target server," and for example, the basic configuration information may specifically include configuration information of a CPU, a memory, a storage device, a network device, a PCIE device, and the like in the server.
The embodiment of the present application is not limited to S1, for example, S1 may specifically include: sh configuration information of a CPU, a memory, a storage device, a network device, a PCIE device and the like in a server is collected by using a shell script GetTopologyInfo, and specifically used system built-in instructions and functions are as follows:
lscpu: collecting and filtering information such as specific CPU model, Socket, Thread, NUMA, frequency and the like;
dmidrecode: collecting and filtering the topology of the memory slots and the on-site condition of the memory bank;
lspci: collecting and filtering information attributes of the pcie equipment, such as pcie connection slot position information of equipment such as a network card, RAID/SAS/HBA, a display card, a GPU and the like;
udevadm _ info: collecting the information of the storage card inquired in the filtered lspci, all connected magnetic disks and the information of the connection relation among the magnetic disks, the back plate and the storage card;
bios name: collecting information of BIOS name, Kernel name, Index, Bus Info, drive module, drive version and the like of the filter screen card equipment;
ethtopool: collecting the information of the link state, bandwidth, IP, RX/TX receiving and transmitting packets of the filter network card;
mdadm: collecting the Raid state attribute information identified under a filtering system;
lsusb: and collecting and filtering the attribute and the connection slot position information of the USB equipment.
Based on the above-mentioned related content of S1, for the target server, the basic configuration information of the target server may be collected from the target server by using a pre-constructed instruction set, so that the basic configuration information can accurately describe the related information (such as attribute information, function information, and connection relationship) of each hardware in the target server, so that the hardware topology of the target server can be constructed based on the basic configuration information in the following.
S2: and constructing a hardware topological graph of the target server according to the basic configuration information of the target server.
The hardware topological graph of the target server is used for showing the basic configuration information of the target server according to the topological graph (as shown in fig. 2).
In addition, the embodiments of the present application are not limited to the implementation of S2, for example, in one possible implementation, S2 may specifically include S21 to S23:
s21: and determining the connection relationship between the display information of at least one piece of hardware to be displayed and the at least one piece of hardware to be displayed according to the basic configuration information of the target server.
Wherein "at least one hardware to be exposed" refers to at least one hardware in the target server.
The display information of the hardware to be displayed is used for representing the attribute information of the hardware to be displayed; furthermore, the embodiment of the present application does not limit "the display information of one piece of hardware to be displayed," for example, the display information may specifically include: the hardware to be displayed comprises attribute information such as temperature, voltage, equipment manufacturer information, drive version information, fw version information and the like monitored by a sensor in the hardware to be displayed. For another example, the attribute information of the CPU further includes: attribute information such as specific model, Socket, Thread, NUMA, frequency and the like; the attribute information of the network card further includes: displaying the name, bandwidth, transmission rate, packet receiving and transmitting conditions and the like of a network card under the system; the attribute information of the RAID/SAS/HBA card further comprises: displaying model specification information, bandwidth, connected back plates, disk topological structures, RAID construction information and the like; the attribute information of the disk further includes: and displaying the name of the drive letter, partition information, capacity, residual space, occupation ratio and the like under the system.
The "connection relationship between at least one piece of hardware to be shown" is used to indicate the connection relationship between any two pieces of hardware in the target server.
S22: and constructing a topological structure between the at least one piece of hardware to be displayed according to the connection relation between the at least one piece of hardware to be displayed.
In this embodiment of the application, after the "connection relationship between the at least one piece of hardware to be displayed" is obtained, a topology structure between the at least one piece of hardware to be displayed may be constructed according to connection information represented by the "connection relationship between the at least one piece of hardware to be displayed", so that the topology structure between the at least one piece of hardware to be displayed may accurately restore the connection relationship between any two pieces of hardware in the target server.
S23: and determining a hardware topological graph of the target server according to the topological structure between the at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed.
In the embodiment of the application, after the topological structure between at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed are acquired, the topological graph of the hardware of the target server can be determined by referring to the topological structure between the at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed, so that the topological graph of the hardware can accurately show the connection relationship between any two pieces of hardware in the target server and the attribute information of each piece of hardware in the target server.
In some cases, in order to keep the simplicity of the "hardware topology of the target server", the display information of each hardware to be displayed may be hidden in the "hardware topology of the target server", so that after the hardware topology is displayed to the administrator, if the administrator clicks a hardware image in the hardware topology, the display information of the hardware is displayed. Therefore, the simplicity of the hardware topological graph can be improved on the premise of ensuring that the information completeness of the hardware topological graph is higher, and therefore, better information acquisition by an administrator is facilitated.
Based on the above-mentioned related contents of S21 to S23, after the basic configuration information of the target server is obtained, the hardware topology map of the target server may be constructed according to the basic configuration information of the target server, so that the hardware topology map can accurately restore the related information of each hardware in the target server, so that a subsequent administrator can accurately know the related information of each hardware in the target server from the hardware topology map, which is beneficial to improving the convenience of managing, operating and maintaining the server.
In fact, some hardware in the server has special functions (e.g., functions of positioning lighting, hot plug operation, and firmware upgrade, etc.), so in order to make the hardware topology map more accurately represent each hardware in the target server, the hardware topology map of the target server may be constructed with reference to these special functions. For ease of understanding, the following description is made in conjunction with three examples.
Example 1, if the target server includes a first device and the basic configuration information of the target server includes the configuration information of the first device, the process of constructing the hardware topology of the target server may include steps 11 to 12:
step 11: and if the configuration information of the first device indicates that the first device supports lighting of a positioning lamp, generating an option switch button corresponding to the first device, so that the option switch button corresponding to the first device is used for realizing a lighting positioning function of the first device.
Wherein the first device is used for representing a device supporting lighting of the positioning lamp; the first device is not limited in the embodiment of the present application, and for example, the first device may be a storage device such as a magnetic disk and an nvme.
The option switch button corresponding to the first equipment is used for realizing the lighting positioning function of the first equipment; and the "option switch button corresponding to the first device" can perform the operation of lighting on and off the positioning lamp on the first device by an ipmi command (e.g., # ipmitool raw 0x3c 0xef 0x 100 x 01).
Step 12: and adding an option switch button corresponding to the first device to the hardware topological graph of the target server.
Based on the above-mentioned related contents of step 11 to step 12, for the devices supporting lighting of the positioning lamp, an option switch button may be provided for the devices in the hardware topology of the target server, so that the subsequent administrator can perform the operation of lighting and extinguishing the positioning lamp on the devices through the ipmi instruction.
Example 2, if the target server includes a second device and the basic configuration information of the target server includes the configuration information of the second device, the process of constructing the hardware topology of the target server includes steps 21 to 22:
step 21: if the configuration information of the second device indicates that the second device supports hot plug operation, generating an option switch button corresponding to the second device, so that the option switch button corresponding to the second device is used for supporting the hot plug operation of the second device.
The second device is used for representing a device supporting hot plug operation; the second device is not limited in the embodiments of the present application, and for example, the second device may be a memory, a disk, a network card, or the like.
The option switch button corresponding to the second equipment is used for realizing the hot plug operation of the second equipment; and the option switch button corresponding to the second device can execute power-off and power-on operations on the second device before and after hot plugging through the ipmi sol instruction.
It should be noted that the present embodiment does not limit the ipmi sol instruction, and for example, the ipmi sol instruction may be specifically as follows:
executing before removing the equipment:
#echo 1>/sys/bus/pci/drivers/<device>/<domain:bus:device.fn>/remove
#echo 0>/sys/bus/pci/slots/<device>/power
after inserting the equipment, executing:
#echo 1>/sys/bus/pci/slots/<device>/power
#echo 1>/sys/bus/pci/rescan
step 22: and adding an option switch button corresponding to the second device to the hardware topological graph of the target server.
Based on the above-mentioned related contents of steps 21 to 22, for the devices supporting the hot plug operation, an option switch button may be set in the hardware topology of the target server for the devices, so that the subsequent administrator can perform the power-off and power-on operations on the devices before and after the hot plug through the ipmi sol instruction.
Example 3, if the target server includes a third device and the basic configuration information of the target server includes the configuration information of the third device, the process of constructing the hardware topology of the target server includes steps 31 to 32:
step 31: and if the configuration information of the third device indicates that the third device supports the upgrading function, generating a pop-up window corresponding to the third device, so that the pop-up window corresponding to the third device is used for realizing the upgrading function of the third device.
Wherein the third device is to represent a device that supports a driver firmware upgrade function.
The popup window corresponding to the third device is used for realizing the upgrading function of the third device; moreover, the pop-up window corresponding to the third device is not limited in the embodiment of the application, for example, the pop-up window corresponding to the third device may be used to display a driver or firmware upgrade package that needs to be installed, so that after the pop-up window corresponding to the third device is displayed to an administrator, the administrator can select the driver or firmware upgrade package that needs to be installed from the pop-up window, and thus, one-key upgrade can be implemented.
Step 32: and determining a hardware topological graph of the target server according to the pop-up window corresponding to the third device.
In the embodiment of the application, after the pop-up window corresponding to the third device is obtained, the hardware topological graph of the target server can be determined according to the pop-up window corresponding to the third device, so that the hardware topological graph can be used for displaying the pop-up window corresponding to the third device.
In some cases, in order to keep the simplicity of the "hardware topology of the target server", the pop-up window corresponding to each third device may be hidden in the "hardware topology of the target server", so that after the hardware topology is displayed to the administrator, if the administrator triggers a display request of the pop-up window corresponding to one third device by executing a preset action, the pop-up window corresponding to the third device may be displayed, so that the administrator can select a driver or firmware upgrade package to be installed from the pop-up window, and thus, one-key upgrade can be implemented. Therefore, the simplicity of the hardware topological graph can be improved on the premise of ensuring that the information completeness of the hardware topological graph is higher, and therefore, better information acquisition by an administrator is facilitated.
Based on the related content of S2, after the basic configuration information of the target server is obtained, the hardware topology map of the target server may be constructed with reference to the basic configuration information, so that the hardware topology map can restore each hardware in the target server as much as possible, which is beneficial to improving convenience of server management operation and maintenance.
S3: and displaying the hardware topological graph of the target server.
In the embodiment of the application, after the hardware topological graph of the target server is obtained, the hardware topological graph of the target server can be displayed to a manager, so that the manager can obtain the relevant content of each hardware in the target server from the hardware topological graph of the target server.
It should be noted that the embodiment of the present application does not limit the display manner of the "hardware topology of the target server", and for example, the display manner may be performed by a remote management terminal (e.g., a Baseboard Management Controller (BMC)).
In some cases, in order to further improve convenience of managing operation and maintenance of the server, the embodiment of the present application further provides a possible implementation manner of the hardware topology generation method, which may further include, in addition to the foregoing S1-S3, S4-S5:
s4: and after the error record is obtained, generating alarm information according to the error record.
Wherein the error log is used to describe the hardware in the target server where the problem occurred.
In addition, the embodiment of the present application does not limit the obtaining manner of the error record, and for example, the obtaining manner may specifically include: and acquiring Error records of the Corrected Error and the Uncorrected Error of the components from the CPU/PCIE register by the BIOS.
The alarm information is used to indicate hardware in which a problem occurs in the target server.
S5: and updating the hardware topological graph of the target server by using the alarm information, so that the updated hardware topological graph is used for representing the alarm information carried by the alarm information.
Based on the above related contents of S4 to S5, for the target server, after the Error records of the Corrected Error and the uncorr obtained by the BIOS from the CPU/PCIE register, the Error may be recorded through some threshold control, and the component receiving the Error is displayed in a red-marked or flashing display form in the topology map, so as to prompt an alarm to the administrator.
Based on the related contents of S1 to S3, for the hardware topology generation method provided in the embodiment of the present application, first, a pre-constructed instruction set is used to collect basic configuration information of a target server from the target server; then, according to the basic configuration information of the target server, a hardware topological graph of the target server is constructed, so that the hardware topological graph can accurately represent the basic configuration information of the target server; finally, the hardware topological graph of the target server is displayed, so that an administrator can quickly acquire the basic configuration information of the target server from the hardware topological graph, and thus adverse effects (low information acquisition efficiency or incomplete information acquisition and the like) caused by the fact that the administrator queries the basic configuration information by means of a large number of instructions can be effectively avoided, and convenience of server management operation and maintenance can be effectively improved.
In addition, as shown in fig. 3, the name, capacity, space, drive, fw version, etc. of each component can be displayed in the hardware topology, so that a system administrator can conveniently know the connection structure and configuration information of the specific components of the current server.
In addition, as shown in fig. 3, for the hardware topology, for the component supporting the positioning lamp display, the lighting positioning operation may be performed, and for the component supporting the hot plug, the power-on and power-off control operation may be performed, so that the system administrator may perform the component positioning and replacing operation on the server conveniently.
In addition, as shown in fig. 3, in the hardware topology, the driver/firmware of the specified component may also be upgraded, which is convenient for a system administrator to perform component upgrade on the server.
Finally, as shown in fig. 3, the present application also detects component failure information by monitoring system logs, and when a component of the server fails, the component displays a blinking warning color or sends notification information in the hardware topological graph, so that an administrator can find the component with the failure in time according to the hardware topological graph.
Based on the hardware topology generation method provided by the above method embodiment, the embodiment of the present application further provides a hardware topology generation apparatus, which is explained and explained below with reference to the accompanying drawings.
Device embodiment
Please refer to the above method embodiment for technical details of the hardware topology generating apparatus provided in the apparatus embodiment.
Referring to fig. 4, this figure is a schematic structural diagram of a hardware topology generating apparatus according to an embodiment of the present application.
The hardware topology generating apparatus 400 provided in the embodiment of the present application includes:
the acquisition unit 401 is configured to acquire basic configuration information of a target server from the target server by using a pre-constructed instruction set;
a constructing unit 402, configured to construct a hardware topology map of the target server according to the basic configuration information of the target server;
a display unit 403, configured to display a hardware topology of the target server.
In a possible implementation manner, the building unit 402 is specifically configured to:
determining the display information of at least one piece of hardware to be displayed and the connection relation between the at least one piece of hardware to be displayed according to the basic configuration information of the target server;
constructing a topological structure between the at least one piece of hardware to be displayed according to the connection relation between the at least one piece of hardware to be displayed;
and determining a hardware topological graph of the target server according to the topological structure between the at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed.
In a possible implementation manner, the building unit 402 is specifically configured to:
if the target server comprises first equipment and the basic configuration information of the target server comprises the configuration information of the first equipment, after the configuration information of the first equipment is determined to represent that the first equipment supports lighting of a positioning lamp, an option switch button corresponding to the first equipment is generated, so that the option switch button corresponding to the first equipment is used for realizing the lighting positioning function of the first equipment; and adding an option switch button corresponding to the first device to the hardware topological graph of the target server.
In a possible implementation manner, the building unit 402 is specifically configured to:
if the target server comprises a second device and the basic configuration information of the target server comprises the configuration information of the second device, after determining that the configuration information of the second device indicates that the second device supports hot plug operation, generating an option switch button corresponding to the second device, so that the option switch button corresponding to the second device is used for supporting the hot plug operation of the second device; and adding an option switch button corresponding to the second device to the hardware topological graph of the target server.
In a possible implementation manner, the building unit 402 is specifically configured to:
if the target server comprises third equipment and the basic configuration information of the target server comprises the configuration information of the third equipment, after determining that the configuration information of the third equipment indicates that the third equipment supports the upgrading function, generating a pop-up window corresponding to the third equipment so that the pop-up window corresponding to the third equipment is used for realizing the upgrading function of the third equipment; and determining a hardware topological graph of the target server according to the pop-up window corresponding to the third device.
In a possible implementation manner, the hardware topology generating apparatus 400 further includes:
the generating unit is used for generating alarm information according to the error record after the error record is obtained;
and the updating unit is used for updating the hardware topological graph of the target server by using the alarm information so that the updated hardware topological graph is used for representing the alarm information carried by the alarm information.
Based on the related content of the hardware topology generating device 400, for the hardware topology generating device 400, first, a pre-constructed instruction set is used to collect the basic configuration information of a target server from the target server; then, according to the basic configuration information of the target server, a hardware topological graph of the target server is constructed, so that the hardware topological graph can accurately represent the basic configuration information of the target server; finally, the hardware topological graph of the target server is displayed, so that an administrator can quickly acquire the basic configuration information of the target server from the hardware topological graph, and thus adverse effects (low information acquisition efficiency or incomplete information acquisition and the like) caused by the fact that the administrator queries the basic configuration information by means of a large number of instructions can be effectively avoided, and convenience of server management operation and maintenance can be effectively improved.
Further, an embodiment of the present application further provides an information generating apparatus, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is used for storing one or more programs, and the one or more programs comprise instructions which, when executed by the processor, cause the processor to execute any one of the implementation methods of the hardware topology generation method.
Further, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is caused to execute any implementation method of the above hardware topology generation method.
Further, an embodiment of the present application further provides a computer program product, which when running on a terminal device, causes the terminal device to execute any implementation method of the above hardware topology generation method.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make numerous possible variations and modifications to the present teachings, or modify equivalent embodiments to equivalent variations, without departing from the scope of the present teachings, using the methods and techniques disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.

Claims (10)

1. A hardware topology generation method, the method comprising:
acquiring basic configuration information of a target server from the target server by utilizing a pre-constructed instruction set;
constructing a hardware topological graph of the target server according to the basic configuration information of the target server;
and displaying the hardware topological graph of the target server.
2. The method according to claim 1, wherein the construction process of the hardware topology of the target server comprises:
determining the display information of at least one piece of hardware to be displayed and the connection relation between the at least one piece of hardware to be displayed according to the basic configuration information of the target server;
constructing a topological structure between the at least one piece of hardware to be displayed according to the connection relation between the at least one piece of hardware to be displayed;
and determining a hardware topological graph of the target server according to the topological structure between the at least one piece of hardware to be displayed and the display information of the at least one piece of hardware to be displayed.
3. The method according to claim 1, wherein if the target server includes a first device and the basic configuration information of the target server includes the configuration information of the first device, the constructing process of the hardware topology map of the target server includes:
if the configuration information of the first device indicates that the first device supports lighting of a positioning lamp, generating an option switch button corresponding to the first device, so that the option switch button corresponding to the first device is used for realizing a lighting positioning function of the first device;
and adding an option switch button corresponding to the first device to the hardware topological graph of the target server.
4. The method according to claim 1, wherein if the target server includes a second device and the basic configuration information of the target server includes the configuration information of the second device, the constructing process of the hardware topology map of the target server includes:
if the configuration information of the second device indicates that the second device supports hot plug operation, generating an option switch button corresponding to the second device, so that the option switch button corresponding to the second device is used for supporting the hot plug operation of the second device;
and adding an option switch button corresponding to the second device to the hardware topological graph of the target server.
5. The method according to claim 1, wherein if the target server includes a third device and the basic configuration information of the target server includes the configuration information of the third device, the constructing process of the hardware topology map of the target server includes:
if the configuration information of the third device indicates that the third device supports the upgrading function, generating a pop-up window corresponding to the third device, so that the pop-up window corresponding to the third device is used for realizing the upgrading function of the third device;
and determining a hardware topological graph of the target server according to the pop-up window corresponding to the third device.
6. The method of claim 1, further comprising:
after an error record is obtained, generating alarm information according to the error record;
and updating the hardware topological graph of the target server by using the alarm information, so that the updated hardware topological graph is used for representing the alarm information carried by the alarm information.
7. A hardware topology generation apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring basic configuration information of a target server from the target server by using a pre-constructed instruction set;
the construction unit is used for constructing a hardware topological graph of the target server according to the basic configuration information of the target server;
and the display unit is used for displaying the hardware topological graph of the target server.
8. An apparatus, comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the method of any of claims 1-6 in accordance with the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of any of claims 1-6.
10. A computer program product, characterized in that it, when run on a terminal device, causes the terminal device to perform the method of any one of claims 1 to 6.
CN202110741888.4A 2021-06-30 2021-06-30 Hardware topology generation method and related equipment thereof Active CN113626278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110741888.4A CN113626278B (en) 2021-06-30 2021-06-30 Hardware topology generation method and related equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110741888.4A CN113626278B (en) 2021-06-30 2021-06-30 Hardware topology generation method and related equipment thereof

Publications (2)

Publication Number Publication Date
CN113626278A true CN113626278A (en) 2021-11-09
CN113626278B CN113626278B (en) 2023-08-04

Family

ID=78378689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110741888.4A Active CN113626278B (en) 2021-06-30 2021-06-30 Hardware topology generation method and related equipment thereof

Country Status (1)

Country Link
CN (1) CN113626278B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567569A (en) * 2022-02-25 2022-05-31 西安微电子技术研究所 PCIe simulation data visualization method, system, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234168A (en) * 2016-12-15 2018-06-29 腾讯科技(深圳)有限公司 A kind of method for exhibiting data and system based on service topology
CN110855457A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Method and device for generating network model and configuring network
CN111030840A (en) * 2019-11-06 2020-04-17 视联动力信息技术股份有限公司 Method and device for generating topological graph, electronic equipment and storage medium
CN112685175A (en) * 2020-12-24 2021-04-20 北京浪潮数据技术有限公司 Method and device for constructing service topological graph and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234168A (en) * 2016-12-15 2018-06-29 腾讯科技(深圳)有限公司 A kind of method for exhibiting data and system based on service topology
CN110855457A (en) * 2018-08-20 2020-02-28 阿里巴巴集团控股有限公司 Method and device for generating network model and configuring network
CN111030840A (en) * 2019-11-06 2020-04-17 视联动力信息技术股份有限公司 Method and device for generating topological graph, electronic equipment and storage medium
CN112685175A (en) * 2020-12-24 2021-04-20 北京浪潮数据技术有限公司 Method and device for constructing service topological graph and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567569A (en) * 2022-02-25 2022-05-31 西安微电子技术研究所 PCIe simulation data visualization method, system, device and medium
CN114567569B (en) * 2022-02-25 2023-10-20 西安微电子技术研究所 PCIe simulation data visualization method, system, equipment and medium

Also Published As

Publication number Publication date
CN113626278B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
US9954727B2 (en) Automatic debug information collection
CN106561018B (en) Server monitoring method, monitoring device and monitoring system
US8959633B1 (en) Detecting anomalous behavior patterns in an electronic environment
US20110225582A1 (en) Snapshot management method, snapshot management apparatus, and computer-readable, non-transitory medium
US20140122931A1 (en) Performing diagnostic tests in a data center
EP2472402A1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
CN109189627B (en) Hard disk fault monitoring and detecting method, device, terminal and storage medium
WO2016145888A1 (en) Display screen processing method and device
US10275330B2 (en) Computer readable non-transitory recording medium storing pseudo failure generation program, generation method, and generation apparatus
CN113434356A (en) Method and system for automatically detecting and alerting computing device component changes
CN112306802A (en) Data acquisition method, device, medium and electronic equipment of system
CN114328102A (en) Equipment state monitoring method, device, equipment and computer readable storage medium
CN113626278B (en) Hardware topology generation method and related equipment thereof
US11422605B2 (en) Power consumption exception prompt method, server, and terminal
US8583789B2 (en) Computer system management method and management apparatus
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
CN115599617B (en) Bus detection method and device, server and electronic equipment
CN111324516A (en) Method and device for automatically recording abnormal event, storage medium and electronic equipment
CN115098342A (en) System log collection method, system, terminal and storage medium
CN114237957A (en) Method and device for processing abnormal disk partition
CN114064401A (en) Method and device for positioning hard disk fault, electronic equipment and storage medium
CN109614279B (en) Industrial personal computer self-checking system and control method thereof and related equipment
CN111414267A (en) Far-end eliminating method for abnormal state of cabinet applied to data center
CN117349127B (en) GPU card-falling detection method and device
CN111416721A (en) Far-end eliminating method for abnormal state of cabinet applied to data center

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant