CN115576779A - Management method and device of server hardware information, computer equipment and storage medium - Google Patents

Management method and device of server hardware information, computer equipment and storage medium Download PDF

Info

Publication number
CN115576779A
CN115576779A CN202211318965.6A CN202211318965A CN115576779A CN 115576779 A CN115576779 A CN 115576779A CN 202211318965 A CN202211318965 A CN 202211318965A CN 115576779 A CN115576779 A CN 115576779A
Authority
CN
China
Prior art keywords
hardware
acquired
type
information
server
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.)
Pending
Application number
CN202211318965.6A
Other languages
Chinese (zh)
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 CN202211318965.6A priority Critical patent/CN115576779A/en
Publication of CN115576779A publication Critical patent/CN115576779A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a management method and device of server hardware information, computer equipment and a storage medium. The baseboard management controller applied to the server comprises the following steps: responding to the account input by the user of the terminal to successfully log in the baseboard management controller, and receiving input parameters sent by the terminal; the input parameters are used for representing the type of the hardware to be acquired; determining corresponding hardware types to be acquired according to the input parameters, and matching corresponding information acquisition functions according to the hardware types to be acquired; calling an information acquisition function, and acquiring corresponding hardware information according to each hardware type to be acquired; and generating a server hardware information statistical table according to the hardware information. By adopting the method, the acquisition efficiency of the hardware information of the server can be improved.

Description

Management method and device of server hardware information, computer equipment and storage medium
Technical Field
The present application relates to the field of hardware information processing technologies, and in particular, to a method and an apparatus for managing server hardware information, a computer device, and a storage medium.
Background
A Baseboard Management Controller (BMC) is a specific Management Controller of a server, and the BMC can automatically monitor the operation state of the server and timely perform control according to the operation state of the server. The BMC may communicate with and regulate each hardware device in the server and monitor hardware information of each hardware device through an Inter-Integrated Circuit (I2C) bus. However, in the conventional method, since the BMC obtains the hardware information from different channels, there are problems that the efficiency of obtaining the hardware information of the server is low, and the like.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for managing server hardware information, a computer device, and a storage medium, which can improve the efficiency of acquiring server hardware information.
In a first aspect, a method for managing server hardware information is provided, where the method is applied to a baseboard management controller of a server, and the method includes:
responding to the account input by the user of the terminal to successfully log in the baseboard management controller, and receiving input parameters sent by the terminal; the input parameters are used for representing the type of hardware to be acquired;
determining the corresponding hardware type to be acquired according to the input parameters, and matching the corresponding information acquisition function according to each hardware type to be acquired;
calling an information acquisition function, and acquiring corresponding hardware information according to each hardware type to be acquired;
and generating a server hardware information statistical table according to each piece of hardware information.
In one embodiment, determining the type of hardware to be acquired according to the input parameters includes: judging whether the input parameters meet a first preset condition or not; the first preset condition is that the format of the input parameter is a standard format and the input parameter belongs to a standard input parameter set; if so, inputting the input parameters into a preset type matching function to obtain a corresponding hardware type to be acquired; the type matching function is used for representing the corresponding relation between the input parameters and the type of the hardware to be acquired.
In one embodiment, determining the type of the hardware to be acquired according to the input parameters further includes: if not, sending a display control instruction to the terminal; the display control instruction is used for instructing the terminal to display the standard format and the standard input parameter set.
In one embodiment, the method further includes: in response to the fact that the user input account and the user input password sent by the terminal are received, whether the user input account and the user input password meet a second preset condition is judged; the second preset condition is that the user input account belongs to the user account set and the user input password is a correctly set password of the user input account; if yes, logging in the baseboard management controller according to the user input account, and judging that the user input account successfully logs in the baseboard management controller.
In one embodiment, invoking an information collection function to collect corresponding hardware information according to each type of hardware to be collected includes: calling an information acquisition function, and acquiring monitoring data of target hardware corresponding to each hardware type to be acquired according to each hardware type to be acquired; and extracting the monitoring data of the target hardware corresponding to each hardware type to be acquired to obtain each hardware information.
In one embodiment, the hardware types to be collected comprise a power supply, a baseboard management controller, a field programmable gate array, a complex programmable logic device, a basic input output system and a PCIe device.
In one embodiment, the hardware information includes a hardware version number, hardware bit information, and hardware operating power.
In a second aspect, a management device for server hardware information is provided, which is applied to a baseboard management controller of a server, and the device includes a data receiving module, a function matching module, an information collecting module, and a table generating module.
The data receiving module is used for responding to a user account of the terminal to successfully log in the baseboard management controller and receiving input parameters sent by the terminal; the input parameters are used for representing the type of the hardware to be acquired; the function matching module is used for determining the corresponding type of the hardware to be acquired according to the input parameters and matching the corresponding information acquisition function according to each type of the hardware to be acquired; the information acquisition module is used for calling an information acquisition function and acquiring corresponding hardware information according to each type of hardware to be acquired; and the table generating module is used for generating a server hardware information statistical table according to each piece of hardware information.
In a third aspect, a computer device is provided, the computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any one of the above method embodiments when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the steps of any of the above-described method embodiments.
According to the management method, device, computer equipment and storage medium for the server hardware information, the user who responds to the terminal inputs the account number to successfully log in the baseboard management controller, and input parameters sent by the terminal are received; then, determining the corresponding hardware type to be acquired according to the input parameters, and matching the corresponding information acquisition function according to each hardware type to be acquired; then, calling an information acquisition function, and acquiring corresponding hardware information according to each hardware type to be acquired; and then, a server hardware information statistical table is generated according to the hardware information, so that the hardware information corresponding to the hardware equipment required by the user can be acquired at one time through the server hardware information statistical table, the server hardware information acquisition efficiency is improved, the server hardware information can be mastered in time, and the gridding and batch management of the server can be facilitated.
Drawings
FIG. 1 is a diagram of an application environment of a method for managing server hardware information according to an embodiment;
FIG. 2 is a first flowchart of a method for managing server hardware information according to an embodiment;
FIG. 3 is a schematic flow chart of the step of determining the type of hardware to be acquired based on input parameters in one embodiment;
FIG. 4 is a flowchart illustrating a step of calling an information collection function and collecting corresponding hardware information according to each type of hardware to be collected in one embodiment;
FIG. 5 is a diagram illustrating a second process of a method for managing server hardware information according to an embodiment;
FIG. 6 is a block diagram showing an exemplary embodiment of a device for managing server hardware information;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first resistance may be referred to as a second resistance, and similarly, a second resistance may be referred to as a first resistance, without departing from the scope of the present application. The first resistance and the second resistance are both resistances, but they are not the same resistance.
It is to be understood that "connection" in the following embodiments is to be understood as "electrical connection", "communication connection", and the like if the connected circuits, modules, units, and the like have communication of electrical signals or data with each other.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," or "having," and the like, specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
The management method of the server hardware information can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by multiple servers.
In a first aspect, as shown in fig. 2, a method for managing server hardware information is provided, which is described by taking an example that the method is applied to a baseboard management controller of the server 104 in fig. 1, and includes the following steps 201 to 204.
Step 201, responding to the account input by the user of the terminal to successfully log in the baseboard management controller, and receiving the input parameters sent by the terminal.
The input parameters are used for representing the type of the hardware to be acquired. In a specific example, the remote communication connection is established between the terminal 102 and the baseboard management controller of the server 104 in advance, which is only a specific example, and is flexibly set according to the user requirement in practical application, and is not limited herein.
Specifically, the baseboard management controller of the server 104 may receive the input parameter sent by the terminal 102 when the user of the terminal 102 inputs an account number and successfully logs in the baseboard management controller.
It is understood that the hardware configured in the server includes a Baseboard Management Controller (BMC), a Basic Input Output System (BIOS), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), and a PCIe device (PCI-Express), and a power supply.
And 202, determining the corresponding hardware type to be acquired according to the input parameters, and matching the corresponding information acquisition function according to each hardware type to be acquired.
An information acquisition function database is pre-configured in the baseboard management controller of the server 104, multiple types of information acquisition functions are stored in the information acquisition function database, and each information acquisition function corresponds to a type of hardware to be acquired. The information acquisition function has the function of acquiring the monitoring data of the target hardware corresponding to each hardware type to be acquired at one time according to each hardware type to be acquired. It can be understood that the baseboard management controller of the server 104 may determine the corresponding type of the hardware to be collected according to the input parameters; and then, matching the corresponding information acquisition functions according to the types of the hardware to be acquired based on the information acquisition function database.
In one embodiment, the hardware types to be collected comprise a power supply, a baseboard management controller, a field programmable gate array, a complex programmable logic device, a basic input output system and a PCIe device.
In one embodiment, as shown in fig. 3, determining the type of hardware to be acquired according to the input parameters includes steps 301 to 302.
Step 301, determining whether the input parameter satisfies a first preset condition.
The first preset condition is that the format of the input parameter is a standard format and the input parameter belongs to a standard input parameter set. The bmc of the server 104 may determine whether the input parameter satisfies a first preset condition.
And 302, if yes, inputting the input parameters into a preset type matching function to obtain the corresponding hardware type to be acquired.
The type matching function is used for representing the corresponding relation between the input parameters and the type of the hardware to be acquired. It can be understood that, when the input parameter meets the first preset condition, the baseboard management controller of the server 104 inputs the input parameter to the preset type matching function, so as to obtain the type of the hardware to be acquired corresponding to the input parameter.
In this embodiment, the type of the hardware to be acquired corresponding to the input parameter can be obtained by judging whether the input parameter meets the first preset condition and inputting the input parameter to the preset type matching function under the condition that the input parameter meets the first preset condition, so that the efficiency of determining the type of the hardware to be acquired is improved, and the efficiency of acquiring the hardware information of the server is also improved.
In one embodiment, as shown in fig. 3, the determining the type of the hardware to be acquired according to the input parameters further includes step 303.
And step 303, if not, sending a display control instruction to the terminal.
The display control instruction is used for indicating the terminal to display the standard format and the standard input parameter set. It is understood that, in a case that the input parameter does not satisfy the first preset condition, the bmc of the server 104 may send a display control instruction to the terminal 102, so that the terminal displays the standard format and the standard input parameter set.
In this embodiment, when the input parameter does not satisfy the first preset condition, a display control instruction may be sent to the terminal 102, so that the terminal displays the standard format and the standard input parameter set; therefore, when the input parameters input by the terminal user on the terminal 102 do not meet the first preset condition, the input parameters can be input again in time according to the standard format and the standard input parameter set displayed by the terminal, and the convenience of the management method of the server hardware information is improved.
And 203, calling an information acquisition function, and acquiring corresponding hardware information according to each type of the hardware to be acquired.
After the baseboard management controller of the server 104 matches the corresponding information collection function according to each type of the hardware to be collected, the information collection function may be called, and the hardware information corresponding to each type of the hardware to be collected is collected according to each type of the hardware to be collected.
In one embodiment, the hardware information includes a hardware version number, hardware bit information, and hardware operating power.
In a specific example, when it is determined that the types of the hardware to be acquired corresponding to the input parameters are the power supply, the field programmable gate array, and the PCIe device according to the input parameters, acquiring corresponding hardware information according to each type of the hardware to be acquired includes hardware information of the power supply, hardware information of the field programmable gate array, and hardware information of the PCIe device. Specifically, the hardware information of the power supply includes a hardware version number of the power supply, hardware in-place information of the power supply, and hardware operating power of the power supply; the hardware information of the field programmable gate array comprises the hardware version number of the field programmable gate array, the hardware in-place information of the field programmable gate array and the hardware working power of the field programmable gate array; the hardware information of the PCIe device comprises hardware information of a power supply, including a hardware version number of the PCIe device, hardware in-place information of the PCIe device and hardware working power of the PCIe device; the above are only specific examples, and are flexibly set according to user requirements in practical applications, and are not limited herein.
In one embodiment, as shown in fig. 4, invoking the information collection function to collect corresponding hardware information according to each type of hardware to be collected includes steps 401 and 402.
Step 401, calling an information acquisition function, and acquiring monitoring data of target hardware corresponding to each hardware type to be acquired according to each hardware type to be acquired.
Step 402, extracting the monitoring data of the target hardware corresponding to each hardware type to be collected to obtain each hardware information.
The baseboard management controller of the server 104 may call an information acquisition function, and acquire monitoring data of target hardware corresponding to each hardware type to be acquired according to each hardware type to be acquired; and then, extracting the monitoring data of the target hardware corresponding to each hardware type to be acquired to obtain each hardware information.
In a specific example, the baseboard management controller of the server 104 may regulate and control the target hardware through I2C bus communication, read values of sensors corresponding to various target hardware, or receive monitoring data sent from various target hardware, so as to implement management and heat dissipation regulation and control on the target hardware according to hardware information corresponding to each type of hardware to be collected. The above is only a specific example, and the setting is flexible according to the user requirement in practical application, and is not limited herein.
And step 204, generating a server hardware information statistical table according to each piece of hardware information.
After the baseboard management controller of the server 104 can call the information collection function and collect the hardware information corresponding to each hardware type to be collected according to each hardware type to be collected, a server hardware information statistical table can be generated according to each hardware information, so that the hardware information corresponding to each hardware device required by a user can be obtained at one time through the server hardware information statistical table, and the server hardware information obtaining efficiency is improved. In addition, the format of the server hardware information statistical table is flexibly set according to the user requirements in practical application, and is not limited herein.
Based on the method, the management method of the server hardware information successfully logs in the baseboard management controller by responding to the account input by the user of the terminal, and receives the input parameters sent by the terminal; then, determining corresponding hardware types to be acquired according to the input parameters, and matching corresponding information acquisition functions according to the hardware types to be acquired; then, calling an information acquisition function, and acquiring corresponding hardware information according to each hardware type to be acquired; and then, generating a server hardware information statistical table according to the hardware information, thereby realizing that the hardware information corresponding to the hardware equipment required by the user is acquired at one time through the server hardware information statistical table. Compared with the prior art that hardware information corresponding to each hardware device required by a user needs to be acquired according to different types of hardware in a grading manner, the method and the system improve the acquisition efficiency of the hardware information of the server, ensure the server to timely master the hardware information of the server, and facilitate gridding and batch management of the server.
In one embodiment, the method further comprises: and printing the server hardware information statistical table to the terminal.
The baseboard management controller of the server 104 may print the server hardware information statistical table to the terminal 102.
In this embodiment, the server hardware information statistical table may be printed to the terminal 102, so that a user can timely know, through the terminal, the hardware information corresponding to the acquisition of each hardware type to be acquired, and convenience of the management method for the server hardware information is improved.
In one embodiment, as shown in fig. 5, the method further includes steps 501 to 503.
Step 501, in response to receiving a user input account and a user input password sent by a terminal, determining whether the user input account and the user input password satisfy a second preset condition.
And 502, if yes, logging in the baseboard management controller according to the user input account, and judging that the user input account successfully logs in the baseboard management controller.
And 503, if not, judging that the user input account is logged in the baseboard management controller to be failed.
The second preset condition is that the user input account belongs to the user account set and the user input password is a correctly set password of the user input account. The baseboard management controller of the server 104 stores in advance a data table including a user account set and a password for correctly setting an account input by each user in the user account set.
It can be understood that, after receiving the user input account and the user input password sent by the terminal 102, the baseboard management controller of the server 104 may determine whether the user input account and the user input password satisfy the second preset condition; then, under the condition that the user input account and the user input password meet a second preset condition, logging in the baseboard management controller according to the user input account, and judging that the user input account successfully logs in the baseboard management controller; meanwhile, under the condition that the user input account and the user input password do not meet a second preset condition, the condition that the user input account logs in the baseboard management controller is judged to be failed.
In the embodiment, whether the user input account and the user input password meet a second preset condition is judged by responding to the received user input account and the user input password sent by the terminal; if yes, logging in the baseboard management controller according to the user input account, and judging that the user input account successfully logs in the baseboard management controller; if not, judging that the user input account number is failed to log in the baseboard management controller; therefore, the safety and the privacy of the management method of the server hardware information are ensured.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
In a second aspect, as shown in fig. 6, an apparatus for managing server hardware information is provided, which is applied to a baseboard management controller of a server, and the apparatus includes a data receiving module 610, a function matching module 620, an information collecting module 630, and a table generating module 640.
The data receiving module 610 is configured to respond to a user account of the terminal to successfully log in the baseboard management controller, and receive an input parameter sent by the terminal; the input parameters are used for representing the type of the hardware to be acquired; the function matching module 620 is configured to determine a corresponding type of the hardware to be acquired according to the input parameters, and match a corresponding information acquisition function according to each type of the hardware to be acquired; the information acquisition module 630 is configured to invoke an information acquisition function, and acquire corresponding hardware information according to each type of hardware to be acquired; the table generating module 640 is configured to generate a server hardware information statistical table according to each piece of hardware information.
In one embodiment, the function matching module 620 includes a first determining unit.
The first judging unit is used for judging whether the input parameters meet a first preset condition or not; the first preset condition is that the format of the input parameter is a standard format and the input parameter belongs to a standard input parameter set; the first judging unit is used for inputting the input parameters to a preset type matching function if the input parameters are the preset type matching function, and obtaining the corresponding type of the hardware to be acquired; the type matching function is used for representing the corresponding relation between the input parameters and the type of the hardware to be acquired.
In one embodiment, the first judging unit is used for sending a display control instruction to the terminal if the terminal does not receive the display control instruction; the display control instruction is used for instructing the terminal to display the standard format and the standard input parameter set.
In one embodiment, the management device of the server hardware information comprises a second judgment unit.
The second judging unit is used for responding to a received user input account and a user input password sent by the terminal and judging whether the user input account and the user input password meet a second preset condition or not; the second preset condition is that the user input account belongs to the user account set and the user input password is a correctly set password of the user input account; and the second judgment unit is used for logging in the baseboard management controller according to the user input account if the user input account is successful, and judging that the user input account successfully logs in the baseboard management controller.
In one embodiment, the information collection module 630 includes a data collection unit and an information extraction unit.
The data acquisition unit is used for calling an information acquisition function and acquiring monitoring data of target hardware corresponding to each hardware type to be acquired according to each hardware type to be acquired; the information extraction unit is used for extracting the monitoring data of the target hardware corresponding to each hardware type to be acquired to obtain each hardware information.
In one embodiment, the hardware types to be collected include a power supply, a baseboard management controller, a field programmable gate array, a complex programmable logic device, a basic input output system, and a PCIe device.
In one embodiment, the hardware information includes a hardware version number, hardware bit information, and hardware operating power.
For specific limitations of the management apparatus for the server hardware information, reference may be made to the above limitations of the management method for the server hardware information, which are not described herein again. The modules in the management device of the hardware information of the server can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer equipment is used for storing information acquisition functions and hardware type data to be acquired. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of managing server hardware information.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In a third aspect, a computer device is provided, the computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any one of the above method embodiments when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements the steps of any of the above-described method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A management method for server hardware information is characterized in that the method is applied to a baseboard management controller of a server, and the method comprises the following steps:
responding to an account input by a user of a terminal to successfully log in the baseboard management controller, and receiving input parameters sent by the terminal; the input parameters are used for representing the type of hardware to be acquired;
determining the corresponding hardware type to be acquired according to the input parameters, and matching the corresponding information acquisition function according to each hardware type to be acquired;
calling the information acquisition function, and acquiring corresponding hardware information according to the types of the hardware to be acquired;
and generating a server hardware information statistical table according to the hardware information.
2. The method of claim 1, wherein the determining the type of hardware to be acquired according to the input parameters comprises:
judging whether the input parameters meet a first preset condition or not; the first preset condition is that the format of the input parameter is a standard format and the input parameter belongs to a standard input parameter set;
if so, inputting the input parameters into a preset type matching function to obtain the corresponding hardware type to be acquired; the type matching function is used for representing the corresponding relation between the input parameters and the type of the hardware to be acquired.
3. The method of claim 2, wherein the determining the type of hardware to be acquired according to the input parameters further comprises:
if not, sending a display control instruction to the terminal; and the display control instruction is used for instructing the terminal to display the standard format and the standard input parameter set.
4. The method of claim 1, further comprising:
responding to the received user input account and the user input password sent by the terminal, and judging whether the user input account and the user input password meet a second preset condition; the second preset condition is that the user input account belongs to a user account set and the user input password is a correct setting password of the user input account;
if yes, logging in the baseboard management controller according to the user input account, and judging that the user input account successfully logs in the baseboard management controller.
5. The method according to claim 1, wherein the calling the information collection function to collect corresponding hardware information according to each hardware type to be collected includes:
calling the information acquisition function, and acquiring monitoring data of target hardware corresponding to each hardware type to be acquired according to each hardware type to be acquired;
and extracting the monitoring data of the target hardware corresponding to each hardware type to be acquired to obtain each hardware information.
6. The method of claim 1, wherein the hardware types to be collected comprise a power supply, a baseboard management controller, a field programmable gate array, a complex programmable logic device, a basic input output system, and a PCIe device.
7. The method of claim 1, wherein the hardware information comprises a hardware version number, hardware presence information, and hardware operating power.
8. An apparatus for managing hardware information of a server, applied to a baseboard management controller of the server, the apparatus comprising:
the data receiving module is used for responding to the successful login of a user account of the terminal to the baseboard management controller and receiving input parameters sent by the terminal; the input parameters are used for representing the type of hardware to be acquired;
the function matching module is used for determining the corresponding type of the hardware to be acquired according to the input parameters and matching the corresponding information acquisition function according to each type of the hardware to be acquired;
the information acquisition module is used for calling the information acquisition function and acquiring corresponding hardware information according to the type of each hardware to be acquired;
and the table generating module is used for generating a server hardware information statistical table according to each piece of hardware information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202211318965.6A 2022-10-26 2022-10-26 Management method and device of server hardware information, computer equipment and storage medium Pending CN115576779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211318965.6A CN115576779A (en) 2022-10-26 2022-10-26 Management method and device of server hardware information, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211318965.6A CN115576779A (en) 2022-10-26 2022-10-26 Management method and device of server hardware information, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115576779A true CN115576779A (en) 2023-01-06

Family

ID=84586049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211318965.6A Pending CN115576779A (en) 2022-10-26 2022-10-26 Management method and device of server hardware information, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115576779A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251836A (en) * 2023-11-15 2023-12-19 苏州元脑智能科技有限公司 Method, device, equipment and storage medium for logging in baseboard management controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251836A (en) * 2023-11-15 2023-12-19 苏州元脑智能科技有限公司 Method, device, equipment and storage medium for logging in baseboard management controller
CN117251836B (en) * 2023-11-15 2024-02-20 苏州元脑智能科技有限公司 Method, device, equipment and storage medium for logging in baseboard management controller

Similar Documents

Publication Publication Date Title
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110674440A (en) Buried point data processing method, system, computer device and readable storage medium
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
CN112000903B (en) Data query method and device, computer equipment and storage medium
CN115576779A (en) Management method and device of server hardware information, computer equipment and storage medium
CN103136083A (en) Test device and test method of universal serial bus
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN108845869B (en) Concurrent request control method, device, computer equipment and storage medium
CN111654408A (en) Equipment monitoring method and device, computer equipment and storage medium
CN115314416B (en) Network card state automatic detection method and device, electronic equipment and storage medium
CN113159737A (en) RPA service processing method, RPA management platform, device and medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN111046982A (en) Equipment data monitoring method and device, computer equipment and storage medium
CN111897843A (en) Configuration method and device of data transfer strategy of Internet of things and computer equipment
CN115543746A (en) Graphics processor monitoring method, system and device and electronic equipment
CN111381786B (en) Text printing method and device, computer equipment and storage medium
CN113722225A (en) Page testing method and device, computer equipment and storage medium
CN112486838A (en) Interface testing method and device, computer equipment and storage medium
CN111880864A (en) Model calling method, system, computer equipment and storage medium based on HTTP
CN111324654A (en) Interface calling method, system, computer device and computer readable storage medium
CN117155781B (en) Interaction method, device and equipment of data processor and data processor
CN113285819B (en) Communication parameter processing method, communication parameter processing device, computer equipment and computer storage medium
CN116455809A (en) Method, device, equipment and storage medium for processing data after link abnormality

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