CN115858298A - Information acquisition method and device, server, electronic equipment and storage medium - Google Patents

Information acquisition method and device, server, electronic equipment and storage medium Download PDF

Info

Publication number
CN115858298A
CN115858298A CN202211626312.4A CN202211626312A CN115858298A CN 115858298 A CN115858298 A CN 115858298A CN 202211626312 A CN202211626312 A CN 202211626312A CN 115858298 A CN115858298 A CN 115858298A
Authority
CN
China
Prior art keywords
component
serial interface
information
query request
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
CN202211626312.4A
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 CN202211626312.4A priority Critical patent/CN115858298A/en
Publication of CN115858298A publication Critical patent/CN115858298A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides an information acquisition method, an information acquisition device, a server, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a component query request sent by an operation terminal of a server based on a first serial interface; determining a second serial interface corresponding to the target component corresponding to the component query request in the CPLD chip; switching on the first serial interface and the second serial interface, sending a component query request to a target component, and transmitting component information determined by the target component based on the component query request to an operation terminal; the CPLD chip is provided with a first serial interface and a plurality of second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected to the serial interface of the component in the server. The method and the device improve the convenience of information acquisition of each part in the server and reduce the manufacturing cost of the server.

Description

Information acquisition method and device, server, electronic equipment and storage medium
Technical Field
The present application relates to the field of database technologies, and in particular, to an information acquisition method, an information acquisition apparatus, a server, an electronic device, and a storage medium.
Background
The server typically includes a plurality of intelligent modules. These intelligent modules are usually equipped with serial ports. For example, the intelligent modules may include BMC (Baseboard Management Controller), an intelligent network card, and the like. Taking the BMC as an example, the BMC is located in a core position of out-of-band monitoring management of the entire system of the server, so designers need to ensure normal and stable operation of the BMC, and once the BMC itself has a problem, the problem needs to be located effectively and quickly.
When these intelligent module broke down, because the server generally sets up in user's computer lab, inconvenient fortune dimension personnel got into for fortune dimension personnel are difficult to in time acquire intelligent module's equipment information and carry out failure analysis. If the equipment information output interface is independently added on the server for each intelligent module, the manufacturing cost of the server is greatly increased.
Disclosure of Invention
The application provides an information acquisition method, an information acquisition device, a server, electronic equipment and a storage medium, which are used for solving the technical problem that information acquisition of each component in the server is inconvenient.
The application provides an information acquisition method, which is applied to a CPLD chip and comprises the following steps:
receiving a component query request sent by an operation terminal of a server based on a first serial interface;
determining a second serial interface corresponding to a target component corresponding to the component query request in the CPLD chip;
switching on a data transmission channel between the first serial interface and the second serial interface, sending the component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal;
the CPLD chip is provided with the first serial interface and a plurality of second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected with the serial interface of the component in the server.
According to the information acquisition method provided by the application, the switching on a data transmission channel between the first serial interface and the second serial interface, sending the component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal includes:
under the condition that the target component is the BMC chip, acquiring a real-time heartbeat signal of the BMC chip based on a GPIO (general purpose input/output) interface connected with the BMC chip;
determining the running state of the BMC chip based on the real-time heartbeat signal;
and under the condition that the running state of the BMC chip is abnormal, switching on a data transmission channel between the first serial interface and a second serial interface corresponding to the BMC chip in the CPLD chip, and transmitting the component information of the BMC chip to the operation terminal based on the data transmission channel.
According to the information acquisition method provided by the application, the determining the running state of the BMC chip based on the real-time heartbeat signal comprises the following steps:
and if the real-time heartbeat signal sent by the BMC chip is not received within a preset time length, determining that the running state of the BMC chip is abnormal.
According to the information acquisition method provided by the present application, the determining a second serial interface corresponding to the target component corresponding to the component query request in the CPLD chip includes:
analyzing the part query request to determine a part identifier;
matching the component identification with the component identification of each component in a preset component connection table, and determining a target component corresponding to the component identification and a second serial interface corresponding to the target component in the CPLD chip based on a matching result;
the preset component connection table is used for recording component identifications of all components in the server and second serial interfaces corresponding to all the components.
According to the information acquisition method provided by the application, after the component information determined by the target component based on the component query request is transmitted to the operation terminal, the method comprises the following steps:
storing the component information to a component information memory based on a third serial interface, and generating stored information of the component information;
sending the storage information to the operation terminal based on the first serial interface;
the third serial interface is arranged in the CPLD chip and is connected with the data read-write interface of the component information memory.
According to the information acquisition method provided by the application, after the storage information is sent to the operation terminal based on the first serial interface, the method comprises the following steps:
receiving a historical component information query request sent by the operation terminal based on the first serial interface;
determining a storage address of historical component information corresponding to the historical component information query request in the component information storage based on the storage information in the historical component information query request;
sending the storage address to the component information storage, and controlling the component information storage to return historical component information corresponding to the storage address;
and sending the history component information to the operation terminal.
The application provides an information acquisition device, includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for receiving a component query request sent by an operation terminal of a server based on a first serial interface;
a determining unit, configured to determine a second serial interface, corresponding to a target component corresponding to the component query request, in the device;
a transmission unit, configured to connect a data transmission channel between the first serial interface and the second serial interface, send the component query request to the target component based on the data transmission channel, and transmit component information determined by the target component based on the component query request to the operation terminal;
wherein the device is provided with the first serial interface and a plurality of the second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected with the serial interface of the component in the server.
The application provides a server, which comprises a control board card; a CPLD chip is arranged on the control board card;
the CPLD chip executes the information acquisition method.
The present application provides a computer-readable storage medium including a stored program, wherein the program executes the information acquisition method when running.
The application provides an electronic device, which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor is configured to execute the information acquisition method through the computer program.
According to the information acquisition method, the information acquisition device, the server, the electronic equipment and the storage medium, the first serial interface and the plurality of second serial interfaces are arranged in the CPLD chip, and the first serial interface is connected with the terminal serial interface of the operation terminal after being switched through the system serial interface in the BMC chip in the server, so that the CPLD chip can perform data transmission with the operation terminal; the second serial interface is connected with the serial interfaces of the components in the server, so that the CPLD chip can perform data transmission with each component; the CPLD chip receives a component query request sent by an operation terminal of the server according to the first serial interface, determines a second serial interface corresponding to a target component corresponding to the component query request in the CPLD chip, then switches on the first serial interface and the second serial interface, sends the component query request to the target component, and transmits component information determined by the target component according to the component query request to the operation terminal; the operation and maintenance personnel can inquire the information of each part in the server through the operation terminal without entering a machine room where the server is located, the convenience of the operation and maintenance personnel for information acquisition of each part in the server is improved, meanwhile, for each part, the serial interface of each part is connected to the CPLD chip, the equipment information can be output to the operation terminal after the serial interface of the system on the BMC chip is switched, an additional data interface does not need to be arranged on a cabinet of the server, and the manufacturing cost of the server is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of an information collection method provided herein;
fig. 2 is a schematic connection diagram of a CPLD chip provided in the present application;
FIG. 3 is a schematic structural diagram of an information acquisition device provided in the present application;
FIG. 4 is a schematic diagram of a server provided herein;
fig. 5 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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.
It should be noted that the terms "first," "second," and the like in this application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic flow chart of an information acquisition method provided in the present application, and as shown in fig. 1, the method is applied to a CPLD chip. The method comprises the following steps:
step 110, receiving a component query request sent by an operation terminal of the server based on the first serial interface.
Specifically, an execution subject of the information acquisition method provided by the present application is a CPLD chip (Complex Programmable Logic Device) disposed in a server control board. The CPLD chip is a digital integrated circuit which constructs logic functions according to needs. The basic design method is to generate corresponding target files by means of an integrated development software platform and methods such as schematic diagrams, hardware description languages and the like, and to transmit codes to a target chip by downloading to realize a designed digital system.
Fig. 2 is a schematic connection diagram of a CPLD chip provided in the present application, and as shown in fig. 2, a first serial interface 201 and a plurality of second serial interfaces 202 are disposed in the CPLD chip 200; the first serial interface 201 is connected with the terminal serial interface 221 of the operation terminal 220 after being switched by the system serial interface 211 in the BMC chip 210 in the server; the second serial interface 202 is connected to the serial interface 231 of the component 230 in the server.
In particular, the BMC chip 210 further includes a data serial interface 212, which is also connected to the second serial interface 202 of the CPLD chip 200, for transmitting the operating status information or the device configuration information of the BMC chip 210 to the CPLD chip 200.
It should be noted that, a second serial interface in the CPLD chip is connected to a serial interface in one component in the server, so that the second serial interface is in one-to-one correspondence with each component in the server.
The various components in the server may include a BMC chip, a fan, a network card, and the like. These components are provided with a serial interface through which operating state information of the components, device configuration information, or the like can be transmitted to an external device.
The component query request is a request for querying information of each component in the server. The part query request may include an operation state information query request, a device configuration information query request, and the like, according to the type of the query information.
The operation terminal is a terminal capable of operating the server, and may include a desktop computer, a portable computer, a tablet computer, a mobile terminal, and the like. The operating terminal runs a server operating system. The user can set the server through the operating terminal, or the operating terminal collects the running state information of each component in the server.
Specific types of Serial interfaces that may be provided in the CPLD chip may include a UART (Universal Asynchronous Receiver Transmitter), a GPIO (General Purpose Input/Output), an I2C (Inter-Integrated Circuit), an SPI (Serial Peripheral Interface), and the like. In the embodiment of the present application, the first serial interface may adopt a UART interface.
On the one hand, the operation terminal of the server is generally connected with the BMC chip only and is not connected with the CPLD chip. On the other hand, the operating state of the UART interface arranged on the BMC chip can be independent of the operating state of the BMC chip, that is, if the operating state of the BMC chip is abnormal, the UART interface on the BMC chip can still transmit data normally.
Therefore, the UART interface connected to the operation terminal on the BMC chip may be determined as a system serial interface. And connecting the first serial interface on the CPLD chip with a system serial interface in a BMC chip in the server, namely, connecting the first serial interface with a terminal serial interface of the operation terminal after the first serial interface is switched by the system serial interface. In this case, the CPLD chip may be connected to the terminal serial interface of the operation terminal through the first serial interface, so as to receive the component query request from the operation terminal and transmit the component information corresponding to the component query request to the operation terminal.
And step 120, determining a second serial interface corresponding to the target component corresponding to the component query request in the CPLD chip.
Specifically, the CPLD chip comprises a plurality of second serial interfaces, and each serial interface is respectively connected with serial interfaces of different parts in the server. In the embodiment of the present application, the second serial interface may also adopt a UART interface.
After receiving the component query request, the CPLD chip may parse the request, and determine a target component corresponding to the request and a second serial interface corresponding to the target component in the CPLD chip. The target component is a component corresponding to the component query request.
Step 130, switching on a data transmission channel between the first serial interface and the second serial interface, sending a component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal.
Specifically, after the second serial interface corresponding to the target component is determined, the CPLD chip may select to turn on the data transmission channel between the first serial interface and the second serial interface. The CPLD chip sends a component query request to the target component. The target component may send corresponding component information to the operation terminal after receiving the component query request.
According to the information acquisition method provided by the embodiment of the application, the first serial interface and the plurality of second serial interfaces are arranged in the CPLD chip, and the first serial interface is connected with the terminal serial interface of the operation terminal after being switched by the system serial interface in the BMC chip in the server, so that the CPLD chip can perform data transmission with the operation terminal; the second serial interface is connected with the serial interfaces of the components in the server, so that the CPLD chip can perform data transmission with each component; the CPLD chip receives a component query request sent by an operation terminal of the server according to the first serial interface, determines a second serial interface corresponding to a target component corresponding to the component query request in the CPLD chip, then switches on the first serial interface and the second serial interface, sends the component query request to the target component, and transmits component information determined by the target component according to the component query request to the operation terminal; the operation and maintenance personnel can inquire the information of each part in the server through the operation terminal without entering a machine room where the server is located, the convenience of the operation and maintenance personnel for information acquisition of each part in the server is improved, meanwhile, for each part, the serial interface of each part is connected to the CPLD chip, the equipment information can be output to the operation terminal after the serial interface of the system on the BMC chip is switched, an additional data interface does not need to be arranged on a cabinet of the server, and the manufacturing cost of the server is reduced.
In some embodiments, step 130 comprises:
under the condition that the target component is a BMC chip, acquiring a real-time heartbeat signal of the BMC chip based on a GPIO interface connected with the BMC chip;
determining the running state of the BMC chip based on the real-time heartbeat signal;
and under the condition that the running state of the BMC chip is abnormal, connecting a data transmission channel between the first serial interface and a second serial interface corresponding to the BMC chip in the CPLD chip, and transmitting the component information of the BMC chip to the operation terminal based on the data transmission channel.
Specifically, in the running process of the server, the BMC chip generates serial port information according to the running states of the control board card and the accessory device, and records the serial port information in a log form. The serial port information relates to asset information display, hardware monitoring, heat dissipation regulation and control, system configuration, remote monitoring, fault diagnosis, system maintenance and the like of the server. The serial port information is helpful for analyzing the fault problems of small probability or irregular occurrence such as BMC starting failure and core service process hang-up. Thus, the BMC chip is a core component in the server.
The CPLD chip can be connected with the BMC chip through a GPIO interface, so that a real-time heartbeat signal of the BMC chip can be obtained.
The CPLD chip can judge the running state of the BMC chip by analyzing the real-time heartbeat signal. For example, if the CPLD chip can continuously obtain the real-time heartbeat signals of the BMC chip, and the receiving time interval of the real-time heartbeat signals is less than or equal to the preset time interval, it may be determined that the BMC chip is in a normal state; if the real-time heartbeat signal acquired by the CPLD chip is interrupted, the BMC chip can be determined to be in an abnormal state.
When the operating state of the BMC chip is abnormal, the BMC chip may fail to start, and the core service process may be locked. At the moment, the CPLD chip automatically connects the first serial interface and the second serial interface corresponding to the BMC chip in the CPLD chip, and transmits the component information of the BMC chip to the operation terminal.
In some embodiments, determining the operating state of the BMC chip based on the real-time heartbeat signal includes:
and if the real-time heartbeat signal sent by the BMC chip is not received within the preset time length, determining that the running state of the BMC chip is abnormal.
Specifically, the CPLD chip may count a real-time heartbeat signal sent by the BMC chip received within a preset time period, and if the count result is zero, it indicates that the heartbeat signal of the BMC chip stops, and it is determined that the operating state of the BMC chip is abnormal. The preset duration can be set as required.
In some embodiments, step 120 comprises:
analyzing the part query request and determining a part identifier;
matching the component identification with the component identification of each component in the preset component connection table, and determining a target component corresponding to the component identification and a second serial interface corresponding to the target component in the CPLD chip based on the matching result;
the preset component connection table is used for recording component identifications of all components and second serial interfaces corresponding to all the components.
Specifically, after the serial interfaces of the respective components in the server are connected to the respective second serial interfaces in the CPLD chip, the component identifiers of the respective components, the position information of the second serial interfaces corresponding to the respective components, and the like may be recorded in the preset component connection table, and the table may be stored in the CPLD chip.
After receiving the component query request sent by the operation terminal, the CPLD chip analyzes the query request, and can obtain the component identifier. The component identifier is a unique identifier of each component in the server, and for example, the device code of each component may be used. After acquiring the component identifier, the CPLD chip matches the component identifier with the component identifier of each component in the preset component connection table. If the component identification is the same as that of any component in the table, the component can be determined to be the target component, and the corresponding second serial interface of the target component in the CPLD chip is determined according to the information recorded in the table.
In some embodiments, step 130 is followed by:
storing the component information to a component information memory based on the third serial interface, and generating stored information of the component information;
sending the storage information to an operation terminal based on a first serial interface;
the third serial interface is arranged in the CPLD chip and is connected with the data read-write interface of the component information memory. In this embodiment, the third serial interface may adopt an SPI interface.
Specifically, a component information storage may be provided on a control board of the server, and is used to store component information of each component inside the server. The component information memory can be realized by a FLASH (FLASH memory) chip, and can also be realized by other nonvolatile memories.
The component information stored in the component information memory may be used to analyze an operational failure or an operational state of the component.
A third serial interface can be arranged in the CPLD chip, and the third serial interface is connected to the data read-write interface of the component information memory, so that the component information can be read or written through the CPLD chip.
After the CPLD chip transmits the component information to the operation terminal, the CPLD chip can simultaneously store the component information into the component information memory and generate the stored information of the component information. The storage information may include a component identification of the target component, and a storage address and a storage date of the component information in the component information storage, and the like.
In some embodiments, after the storage information is sent to the operation terminal based on the first serial interface, the method includes:
receiving a historical component information query request sent by an operation terminal based on a first serial interface;
determining the storage address of the historical component information corresponding to the historical component information query request in the component information storage based on the storage information in the historical component information query request;
sending the storage address to a component information storage, and controlling the component information storage to return historical component information corresponding to the storage address;
and sending the history component information to the operation terminal.
Specifically, the operation terminal may transmit a history component information query request to the CPLD chip. The historical component information inquiry request is used for inquiring the historical component information stored in the component information storage.
And after receiving the historical component information query request, the CPLD chip analyzes the historical component information query request to obtain the storage information. The storage information includes at least a storage address of the history component information.
The CPLD chip transmits the storage address of the history part information as address information to the part information memory, and transmits control information of data reading to the part information memory. And after receiving the address information and the control information, the component information memory returns the historical component information corresponding to the storage address to the CPLD chip as data information. And the CPLD chip sends the historical component information to the operation terminal.
The following describes the apparatus provided in the embodiments of the present application, and the apparatus described below and the method described above may be referred to correspondingly.
Fig. 3 is a schematic structural diagram of an information acquisition device provided in the present application, and as shown in fig. 3, the device includes:
an obtaining unit 310, configured to receive, based on a first serial interface, a component query request sent by an operation terminal of a server;
a determining unit 320, configured to determine a second serial interface corresponding to the target component corresponding to the component query request in the device;
a transmission unit 330 for connecting a data transmission channel between the first serial interface and the second serial interface, transmitting a component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal;
the device is provided with a first serial interface and a plurality of second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected to the serial interface of the component in the server.
According to the information acquisition device provided by the embodiment of the application, the first serial interface and the plurality of second serial interfaces are arranged in the CPLD chip, and the first serial interface is connected with the terminal serial interface of the operation terminal after being switched by the system serial interface in the BMC chip in the server, so that the CPLD chip can perform data transmission with the operation terminal; the second serial interface is connected with the serial interfaces of the components in the server, so that the CPLD chip can perform data transmission with each component; the CPLD chip receives a component query request sent by an operation terminal of the server according to the first serial interface, determines a second serial interface corresponding to a target component corresponding to the component query request in the CPLD chip, then switches on the first serial interface and the second serial interface, sends the component query request to the target component, and transmits component information determined by the target component according to the component query request to the operation terminal; the operation and maintenance personnel can inquire the information of each part in the server through the operation terminal without entering a machine room where the server is located, the convenience of the operation and maintenance personnel for information acquisition of each part in the server is improved, meanwhile, for each part, the serial interface of each part is connected to the CPLD chip, the equipment information can be output to the operation terminal after the serial interface of the system on the BMC chip is switched, an additional data interface does not need to be arranged on a cabinet of the server, and the manufacturing cost of the server is reduced.
In some embodiments, the transmission unit is specifically configured to:
under the condition that the target component is a BMC chip, acquiring a real-time heartbeat signal of the BMC chip based on a GPIO interface connected with the BMC chip;
determining the running state of the BMC chip based on the real-time heartbeat signal;
and under the condition that the running state of the BMC chip is abnormal, connecting a data transmission channel between the first serial interface and a second serial interface corresponding to the BMC chip in the CPLD chip, and transmitting the component information of the BMC chip to the operation terminal based on the data transmission channel.
In some embodiments, the transmission unit is further specifically configured to:
and if the real-time heartbeat signal sent by the BMC chip is not received within the preset time length, determining that the running state of the BMC chip is abnormal.
In some embodiments, the determining unit is specifically configured to:
analyzing the part query request and determining a part identifier;
matching the component identification with the component identification of each component in the preset component connection table, and determining a target component corresponding to the component identification and a second serial interface corresponding to the target component in the CPLD chip based on the matching result;
the preset component connection table is used for recording component identifications of all components and second serial interfaces corresponding to all the components.
In some embodiments, the apparatus further comprises:
a storage unit for storing the component information to the component information memory based on the third serial interface and generating storage information of the component information;
sending the storage information to an operation terminal based on a first serial interface;
the third serial interface is arranged in the CPLD chip and is connected with the data read-write interface of the component information memory.
In some embodiments, the apparatus further comprises:
the query unit is used for receiving a history component information query request sent by the operation terminal based on the first serial interface;
determining the storage address of the historical component information corresponding to the historical component information query request in the component information storage based on the storage information in the historical component information query request;
sending the storage address to a component information storage, and controlling the component information storage to return historical component information corresponding to the storage address;
and sending the history component information to the operation terminal.
Fig. 4 is a schematic structural diagram of a server provided in the present application, and as shown in fig. 4, the server 400 includes a control board 410; the control board card 410 is provided with a CPLD chip 200;
the CPLD chip 200 executes the above-described information acquisition method.
Fig. 5 is a schematic structural diagram of an electronic device provided in the present application, and as shown in fig. 5, the electronic device may include: a Processor (Processor) 510, a communication Interface (Communications Interface) 520, a Memory (Memory) 530, and a communication Bus (Communications Bus) 540, wherein the Processor 510, the communication Interface 520, and the Memory 530 communicate with each other via the communication Bus 540. Processor 510 may call logical commands in memory 530 to perform the following method:
receiving a component query request sent by an operation terminal of a server based on a first serial interface; determining a second serial interface corresponding to the target component corresponding to the component query request in the CPLD chip; under the condition that the running state of the BMC chip is abnormal, a data transmission channel between the first serial interface and a second serial interface, corresponding to the BMC chip, of the CPLD chip is connected, and component information of the BMC chip is transmitted to the operation terminal based on the data transmission channel; the CPLD chip is provided with a first serial interface and a plurality of second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected to the serial interface of the component in the server.
In addition, the logic commands in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including commands for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The processor in the electronic device provided in the embodiment of the present application may call a logic instruction in a memory to implement the method, and a specific implementation manner of the method is consistent with that of the method, and the same beneficial effects may be achieved, which is not described herein again.
The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the methods provided by the above embodiments.
The specific implementation manner is the same as the implementation manner of the method, and the same beneficial effects can be achieved, which is not described herein again.
Embodiments of the present application provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method is implemented as described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An information acquisition method is applied to a CPLD chip and comprises the following steps:
receiving a component query request sent by an operation terminal of a server based on a first serial interface;
determining a second serial interface corresponding to the target component corresponding to the component query request in the CPLD chip;
switching on a data transmission channel between the first serial interface and the second serial interface, sending the component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal;
the CPLD chip is provided with the first serial interface and a plurality of second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected with the serial interface of the component in the server.
2. The information acquisition method according to claim 1, wherein the switching on a data transmission channel between the first serial interface and the second serial interface, sending the component query request to the target component based on the data transmission channel, and transmitting component information determined by the target component based on the component query request to the operation terminal includes:
under the condition that the target component is the BMC chip, acquiring a real-time heartbeat signal of the BMC chip based on a GPIO (general purpose input/output) interface connected with the BMC chip;
determining the running state of the BMC chip based on the real-time heartbeat signal;
and under the condition that the running state of the BMC chip is abnormal, switching on a data transmission channel between the first serial interface and a second serial interface corresponding to the BMC chip in the CPLD chip, and transmitting the component information of the BMC chip to the operation terminal based on the data transmission channel.
3. The information acquisition method according to claim 2, wherein the determining the operating state of the BMC chip based on the real-time heartbeat signal comprises:
and if the real-time heartbeat signal sent by the BMC chip is not received within the preset time length, determining that the running state of the BMC chip is abnormal.
4. The information acquisition method according to claim 1, wherein said determining a second serial interface of a target component corresponding to the component query request in the CPLD chip comprises:
analyzing the part query request to determine a part identifier;
matching the component identification with the component identification of each component in a preset component connection table, and determining a target component corresponding to the component identification and a second serial interface corresponding to the target component in the CPLD chip based on a matching result;
the preset component connection table is used for recording component identifications of all components in the server and second serial interfaces corresponding to all the components.
5. The information acquisition method according to claim 1, wherein after the transmitting component information determined by the target component based on the component query request to the operation terminal, the method comprises:
storing the component information to a component information memory based on a third serial interface, and generating storage information of the component information;
sending the storage information to the operation terminal based on the first serial interface;
the third serial interface is arranged in the CPLD chip and is connected with the data read-write interface of the component information memory.
6. The information acquisition method according to claim 5, wherein after the sending of the stored information to the operation terminal based on the first serial interface, the method comprises:
receiving a historical component information query request sent by the operation terminal based on the first serial interface;
determining the storage address of the historical component information corresponding to the historical component information query request in the component information storage based on the storage information in the historical component information query request;
sending the storage address to the component information storage, and controlling the component information storage to return historical component information corresponding to the storage address;
and sending the historical component information to the operation terminal.
7. An information acquisition apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for receiving a component query request sent by an operation terminal of a server based on a first serial interface;
the determining unit is used for determining a second serial interface corresponding to a target component corresponding to the component inquiry request in the device;
a transmission unit, configured to connect a data transmission channel between the first serial interface and the second serial interface, send the component query request to the target component based on the data transmission channel, and transmit component information determined by the target component based on the component query request to the operation terminal;
wherein the device is provided with the first serial interface and a plurality of the second serial interfaces; the first serial interface is connected with a terminal serial interface of the operation terminal after being switched by a system serial interface in a BMC chip in the server; the second serial interface is connected with the serial interface of the component in the server.
8. A server is characterized by comprising a control board card; a CPLD chip is arranged on the control board card;
the CPLD chip executes the information acquisition method of any one of claims 1 to 6.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the information collecting method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the information acquisition method according to any one of claims 1 to 6 by the computer program.
CN202211626312.4A 2022-12-15 2022-12-15 Information acquisition method and device, server, electronic equipment and storage medium Pending CN115858298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211626312.4A CN115858298A (en) 2022-12-15 2022-12-15 Information acquisition method and device, server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211626312.4A CN115858298A (en) 2022-12-15 2022-12-15 Information acquisition method and device, server, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115858298A true CN115858298A (en) 2023-03-28

Family

ID=85673825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211626312.4A Pending CN115858298A (en) 2022-12-15 2022-12-15 Information acquisition method and device, server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115858298A (en)

Similar Documents

Publication Publication Date Title
US20040228063A1 (en) IPMI dual-domain controller
CN112463689B (en) OCP card hot plug device, method and computer readable storage medium
CN105183575A (en) Processor fault diagnosis method, device and system
EP3208723A1 (en) Usb wireless network card configuration method, host, usb wireless network card and communication system
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN111367766A (en) Method, device and equipment for determining connection relation between monitoring host and equipment
EP1581878B1 (en) Systems and methods for automatic assignment of identification codes devices
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
CN113010122A (en) Image forming apparatus monitoring apparatus, method, system, and storage medium
CN115858298A (en) Information acquisition method and device, server, electronic equipment and storage medium
CN116137603A (en) Link fault detection method and device, storage medium and electronic device
CN111124828A (en) Data processing method, device, equipment and storage medium
CN115098342A (en) System log collection method, system, terminal and storage medium
CN116126613A (en) Position detection method and device of PCIe (peripheral component interconnect express) equipment, electronic equipment and storage medium
CN115470056A (en) Method, system, device and medium for troubleshooting power-on starting of server hardware
CN115080325A (en) PSU (power system unit) testing method, system, device and medium based on PDU (protocol data Unit)
CN113849135A (en) Log access method and device and server
CN115599311B (en) Polarity inversion method and apparatus, storage medium, and electronic apparatus
CN111414327A (en) Network device
CN113900715B (en) Information management system, method, device and storage medium
CN115643223B (en) Interrupt signal transmission method and device
CN111092765A (en) Intelligent driving method, system, electronic device and readable storage medium
CN115470054A (en) Server memory function testing method, system, device and storage medium
CN115934616A (en) Serial port information storage method and device, server, electronic equipment and storage medium
CN109120422B (en) Remote server system capable of obtaining hardware information and management method thereof

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