Serial port information collection device, method and server
By using a serial port information collection device in a multi-channel server, and using baseboard management controllers and complex programmable logic devices to poll and store multiple CPU serial port information, the problem of being unable to obtain complete serial port information in the existing technology is solved, and faults are improved. Improves troubleshooting efficiency and reduces maintenance costs.
Patent Information
- Application Number
- CN202210181240.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-26
AI Technical Summary
The existing multi-channel server cannot obtain complete and effective serial port information, resulting in low troubleshooting efficiency. Maintenance personnel need to perform on-site wiring to reproduce the fault, which wastes manpower, material resources and time.
Design a serial port information collection device that polls and stores multiple CPU serial port information through the baseboard management controller and complex programmable logic devices to achieve complete recording and storage of information before and after faults, reducing the cost of reproducing faults.
Operation and maintenance personnel can obtain complete serial port information before and after server failure, improving troubleshooting efficiency and reducing manpower, material resources and time costs.
Smart Images

Figure CN114579400B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a serial port information collection device, method and server. Background Art
[0002] With the rise of big data applications and the rapid growth of cloud computing, the application of large-scale computing systems faces the problem of limited computer room space. High-density servers are server devices with optimized architectures launched for cloud computing, data centers, and Internet applications. They can integrate more processors and I / O (Input / Output) expansion capabilities in a very small physical space. Such a design can greatly reduce customers' space costs and significantly improve computer performance. Multi-way servers with specifications such as 1U dual-way and 2U 4-way are high-density servers developed with the goal of increasing computing power density in limited space. Multi-way here refers to multiple CPUs (Central Processing Unit). The sales volume of high-density servers is growing, and the application scenarios are becoming more and more extensive. There are more and more types of problems. Some problems can be directly analyzed and located in event logs, alarm logs, or system logs. Some more hidden problems require more information analysis. Serial port information before and when problems occur is a common maintenance basis.
[0003] In the prior art, only one or several CPU serial ports of a multi-way server are connected to the BMC (Baseboard Management Controller), and other serial ports are only left as debug interfaces in the chassis. The BMC only stores information of one serial port. When obtaining information of other serial ports, it is necessary to connect the debug serial port and manually input a specified command to view it. However, when a problem occurs in the multi-way server, the serial port information of the debug serial port is viewed after the debug serial port is connected. This is no longer valid information when the problem occurs, and cannot be used for fault phenomenon analysis and fault location. Therefore, the debug value is not great. At this time, maintenance personnel need to go to the site to connect multiple serial port lines to reproduce the fault phenomenon, which consumes a lot of manpower and material resources. Summary of the invention
[0004] In view of this, the present invention proposes a serial port information collection device, method and server, which solves the problem that the existing multi-channel server cannot obtain complete and valid serial port information and can only require operation and maintenance personnel to go to the site to connect multiple serial port lines to reproduce the fault phenomenon. By recording and storing complete and valid serial port information in a time-sharing manner, the operation and maintenance personnel can obtain complete and valid logs before and when the fault occurs, thereby reducing the manpower, material resources and time costs wasted in reproducing the problem phenomenon.
[0005] Based on the above purpose, an embodiment of the present invention provides a serial port information collection device in one aspect, the serial port information collection device specifically comprising: a plurality of central processing units, a baseboard management controller and a complex programmable logic device, the central processing unit comprising a plurality of first serial ports, the baseboard management controller comprising a plurality of second serial ports, the central processing unit being connected to the second serial ports and / or the complex programmable logic device respectively through the first serial ports, and the baseboard management controller being connected to the complex programmable logic device through the second serial ports;
[0006] The baseboard management controller is configured to poll the information output by the first serial port and / or the complex programmable logic device received by the second serial port, and determine whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device.
[0007] In some implementations, the complex programmable logic device includes a plurality of switching switches, and the complex programmable logic device is configured to change the first serial port connected to the complex programmable logic device based on the switching switches.
[0008] In some implementations, polling the second serial port for information output by the first serial port and / or the complex programmable logic device includes:
[0009] Polling the information output by the first serial port and / or the complex programmable logic device received by the second serial port;
[0010] A serial port identifier is added before the information output by the first serial port and / or the complex programmable logic device, and the information output by the first serial port and / or the complex programmable logic device with the serial port identifier added is saved in a file.
[0011] In some implementations, determining whether to notify the complex programmable logic device to replace a first serial port connected to the complex programmable logic device based on information output by the complex programmable logic device includes:
[0012] In response to polling that the information received from the second serial port is information output by the complex programmable logic device, it is determined based on the information output by the complex programmable logic device whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0013] In some implementations, the baseboard management controller is specifically configured as follows:
[0014] Pre-configuring keywords based on information output by the complex programmable logic device;
[0015] Polling the second serial port to receive information output by the central processing unit and / or the complex programmable logic device;
[0016] In response to polling that the information received by the second serial port is information output by the complex programmable logic device, determining whether the information contains the keyword;
[0017] If the information includes the keyword, a corresponding switching instruction is sent to the complex programmable logic device based on the keyword to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0018] In some embodiments, the device further includes a storage chip connected to the baseboard management controller, and the storage chip is configured to store information received by the baseboard management controller based on the second serial port.
[0019] In some embodiments, the device also includes a network management interface connected to the baseboard management controller, and the network management interface is configured to connect to a network so that a remote client can access the baseboard management controller through the network so that the remote client can obtain information received by the baseboard management controller based on the second serial port.
[0020] Another aspect of the embodiment of the present invention further provides a method for collecting serial port information, based on the serial port information collection device as described in any one of the above, performing the following steps:
[0021] The baseboard management controller polls the information output by the first serial port and / or the complex programmable logic device received by the second serial port, and determines whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device.
[0022] In some implementations, determining whether to notify the complex programmable logic device to replace a first serial port connected to the complex programmable logic device based on information output by the complex programmable logic device includes:
[0023] In response to polling that the information received from the second serial port is information output by the complex programmable logic device, it is determined based on the information output by the complex programmable logic device whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0024] According to another aspect of the embodiments of the present invention, a server is provided, comprising the serial port information collection device as described in any one of the above items.
[0025] The present invention has at least the following beneficial technical effects: through the serial port information collection device, the BMC is able to receive and store information output by multiple CPU serial ports, which facilitates operation and maintenance personnel to obtain valid serial port information before and when a server fails, reduces the manpower, material resources and time costs wasted in reproducing the fault phenomenon, and greatly improves the efficiency of troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of an embodiment of a serial port information collection device provided by the present invention;
[0028] Figure 2 A structural schematic diagram of an embodiment of a serial port information collection device for a 2-way server provided by the present invention;
[0029] Figure 3 A block diagram of an embodiment of a method for collecting serial port information provided by the present invention;
[0030] Figure 4 A schematic diagram of the structure of an embodiment of a server provided by the present invention. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0032] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0033] Based on the above purpose, the first aspect of the embodiment of the present invention provides an embodiment of a serial port information collection device. Figure 1As shown, the serial port information collection device specifically includes: multiple central processing units 10, a baseboard management controller 11 and a complex programmable logic device 12, the central processing unit 10 includes multiple first serial ports 13, the baseboard management controller 11 includes multiple second serial ports 14, the central processing unit 10 is connected to the second serial ports 14 and / or the complex programmable logic device 12 through the first serial ports 13, and the baseboard management controller 11 is connected to the complex programmable logic device 12 through the second serial port 14.
[0034] The baseboard management controller 12 is configured to poll the information output by the first serial port 13 and / or the complex programmable logic device 12 received by the second serial port 14, and determine whether to notify the complex programmable logic device 12 to replace the first serial port 13 connected to the complex programmable logic device 12 based on the information output by the complex programmable logic device 12.
[0035] The number of CPUs (central processing units) is related to the server. If the server is multi-channel, the number of CPUs is also multiple. For example, if the server is any one of 2-channel, 4-channel, 8-channel, 12-channel, and 16-channel servers, then the corresponding number of CPUs is 2, 4, 8, 12, and 16. The CPU has multiple serial ports, depending on the function of the CPU. When a multi-channel server is running, generally only one or several serial ports of the main CPU are connected to the serial port of the BMC, and the other serial ports are left in the chassis for use during debugging. In addition, the BMC only stores the output information of one CPU serial port. When obtaining the serial port information of other CPUs, it is necessary to connect the debug serial port and manually input the specified command before it can be seen. As a result, when a problem occurs in a multi-channel server, the serial port information of the debug serial port is connected to the debug serial port to view the serial port information, which is no longer valid information when the problem occurs and cannot be used for fault phenomenon analysis and fault location. Therefore, the debug value is not great. At this time, maintenance personnel need to go to the site to connect multiple serial port lines to reproduce the fault phenomenon, which consumes more manpower and material resources.
[0036] A multi-way server includes a main CPU and an auxiliary CPU. In addition to directly connecting a small number of first serial ports (1 to 2 first serial ports) of the main CPU to the second serial port of the BMC, the serial port information collection device of this embodiment also connects part or all of the remaining first serial ports of the main CPU and the auxiliary CPU through a CPLD (complex programmable logic device). The BMC controls the CPLD to select a corresponding first serial port to be connected to the CPLD, so that the information of the first serial port connected to the CPLD at this time can be output to the BMC, and the BMC receives and stores the serial port information output by the first serial port directly connected to it and the serial port information output by the first serial port currently connected to the CPLD.
[0037] When the received serial port information is the serial port information output by the first serial port connected to the CPLD, it is determined whether to switch the first serial port connected to the CPLD according to the serial port information. For example, when the BMC detects that the serial port information contains a command output completion message, the CPLD is notified to switch the first serial port of the CPU currently connected to it to the other first serial port of the CPU or the first serial port of another CPU, or when the BMC detects that the serial port information contains the start of a certain function, the CPLD is notified to switch the first serial port currently connected to it to the first serial port corresponding to a certain function. In this way, the BMC can directly or through the CPLD receive and store the serial port information output by multiple first serial ports of multiple CPUs, which facilitates the operation and maintenance personnel to obtain the effective serial port information before and when the server fails, reduces the manpower, material resources and time costs wasted in reproducing the failure phenomenon, and greatly improves the efficiency of troubleshooting.
[0038] In some implementations, the complex programmable logic device includes a plurality of switching switches, and the complex programmable logic device is configured to change the first serial port connected to the complex programmable logic device based on the switching switches.
[0039] The first serial port connected to the complex programmable logic device is controlled by a switching switch inside the complex programmable logic device.
[0040] In this embodiment, the complex programmable logic device is connected to part or all of the first serial ports except the first serial port directly connected to the BMC. The complex programmable logic device is connected to many first serial ports. In order to avoid resource waste, the complex programmable logic device selects to turn on part of all the first serial ports connected to it through a switching switch. The switching switch is a multiplexer, and the number and model of the switching switches are determined based on factors such as the number of CPUs and first serial ports and the actual working conditions of the CPU.
[0041] For example, the current server is a 2-way service with 2 CPUs, namely CPU1 and CPU2. Each CPU has 4 first serial ports, and the BMC has 4 second serial ports. The 4 first serial ports of CPU1 all have information output (two of which are directly connected to the second serial ports of the BMC), and CPU2 has two first serial ports with information output. At this time, two 2-to-1 multiplexers can be set, corresponding to CPU1 and CPU2 respectively, to switch the first serial ports of the complex programmable logic device to be connected to CPU1 and CPU2 respectively.
[0042] For another example, the current server is a 2-way service with 2 CPUs, namely CPU1 and CPU2. Each CPU has 4 first serial ports, the BMC has 4 second serial ports, the 2 serial ports of CPU1 both have information output (directly connected to the second serial port of the BMC), and the two serial ports of CPU2 have information output. At this time, a 2-to-1 multiplexer can be set corresponding to the 2 first serial ports of CPU2 to switch the complex programmable logic device to the first serial port of CPU2.
[0043] For another example, the current server provides 4-way services and has 4 CPUs, namely CPU1, CPU2, CPU3, and CPU4. Each CPU has 4 first serial ports, and the BMC has 4 second serial ports. The two first serial ports of CPU1 both have information output (directly connected to the second serial port of the BMC), CPU2 has two first serial ports with information output, and CPU3 and CPU4 each have one first serial port with information output. In this case, two two-to-one multiplexers can be set, one corresponding to the two first serial ports of CPU2, and the other corresponding to the first serial ports of CPU3 and CPU4, which are used to switch the first serial ports of the complex programmable logic device and CPU2, CPU3, and CPU4 respectively.
[0044] The above is only an example of this implementation, but is not limited to this. The number and model of the switching switches are freely defined according to the situation of the server and are not limited to a 2-to-1 multiplexer.
[0045] In some implementations, polling the second serial port for information output by the first serial port and / or the complex programmable logic device includes:
[0046] Polling the information output by the first serial port and / or the complex programmable logic device received by the second serial port;
[0047] A serial port identifier is added before the information output by the first serial port and / or the complex programmable logic device, and the information output by the first serial port and / or the complex programmable logic device with the serial port identifier added is saved in a file.
[0048] The BMC polls the second serial port on the BMC. When the second serial port receives information input, it adds a serial port number mark before the information and outputs the information with the serial port number mark to a specified file for storage, such as a serial port log file.
[0049] In some implementations, determining whether to notify the complex programmable logic device to replace a first serial port connected to the complex programmable logic device based on information output by the complex programmable logic device includes:
[0050] In response to polling that the information received from the second serial port is information output by the complex programmable logic device, it is determined based on the information output by the complex programmable logic device whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0051] When the BMC polls the designated serial port (i.e., the second serial port connected to the complex programmable logic device), it determines whether the information output by the complex programmable logic device contains pre-set information. If so, in addition to continuing to poll the next second serial port, the BMC also needs to notify the CPLD to switch to the first serial port connected to it according to the established procedure.
[0052] In some implementations, the baseboard management controller is specifically configured as follows:
[0053] Pre-configuring keywords based on the output information;
[0054] Polling the second serial port to receive information output by the central processing unit and / or the complex programmable logic device;
[0055] In response to polling that the information received by the second serial port is information output by the complex programmable logic device, determining whether the information contains the keyword;
[0056] If the information includes the keyword, a corresponding switching instruction is sent to the complex programmable logic device based on the keyword to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0057] The BMC configures a keyword of the first serial port connected to the complex programmable logic device, where the keyword is associated with information output by the first serial port connected to the complex programmable logic device, and is used to reflect that the current state of the first serial port is a switchable state.
[0058] When the BMC polls and finds that the information received by its second serial port is the output information of the first serial port directly connected to it, it directly adds the serial port number to the output information and saves it in a folder; when the BMC polls and finds that the information received by its second serial port is the information output by the complex programmable logic device, it determines whether the information output by the complex programmable logic device contains pre-set information. If so, in addition to adding the serial port number to the output information and saving it in a folder, the BMC also notifies the CPLD to switch to the first serial port connected to it according to the established procedure.
[0059] The following is an example of BMC polling. Keyword information is pre-configured in BMC. BMC has 4 second serial ports, namely BMC serial ports 1 to 4, and 2 CPUs, namely CPU1 and CPU2. Each CPU has 4 first serial ports, namely CPU1 serial ports 1 to 4 and CPU2 serial ports 1 to 4. CPU1 serial ports 1 and 2 of CPU1 are connected to BMC serial ports 1 and 2 respectively. When BMC polls, the output information is as follows:
[0060]
[0061] By polling the serial port information received by its second serial port, the BMC can save the serial port information completely to a file. When a problem occurs on the server later, the operation and maintenance personnel can understand the status of the server before and when the problem occurs through the file storing the log information and quickly locate the fault.
[0062] In some embodiments, the device further includes a storage chip connected to the baseboard management controller, and the storage chip is configured to store information received by the baseboard management controller based on the second serial port.
[0063] After the BMC saves the serial port information received from the first serial port and the serial port information output by the complex programmable logic device to a file, such as a serial port log file, two storage spaces are opened in the storage chip to store the serial port log file. When the first storage space is used up, the file is stored in the second storage space. When the second storage space is used up, the first storage space is erased and the file is stored in the first storage space, and the process is repeated in sequence.
[0064] In some embodiments, the device also includes a network management interface connected to the baseboard management controller, and the network management interface is configured to connect to a network so that a remote client can access the baseboard management controller through the network so that the remote client can obtain information received by the baseboard management controller based on the second serial port.
[0065] After the BMC is connected to the network cable through the BMC network management interface, the network will assign a network IP address to the BMC. Remote maintenance personnel can download the serial port log file stored on the storage chip through the BMC network IP address on the client and view the server status before and when the problem occurs through the serial port log file.
[0066] like Figure 2 , which is a structural diagram of an embodiment of a serial port information collection device for a 2-way server provided by the present invention.
[0067] The serial port information collection device comprises: CPU1, CPU2, BMC, CPLD, network management interface and storage chip. BMC has 4 serial ports, namely BMC serial ports 1 to 4. CPU1 has 4 serial ports, namely CPU1 serial ports 1 to 4. CPU2 has 5 serial ports, namely CPU2 serial ports 1 to 5. CPLD comprises two switching switches, namely switching switch 1 and switching switch 2. Switching switches 1 and 2 are both 2-to-1 multiplexers. CPU1 serial ports 1 and 2 are respectively connected to BMC serial ports 1 and 2. CPU1 serial ports 3 and 4 are respectively connected to the output end of switching switch 1. CPU2 serial ports 2 and 4 are respectively connected to the input end of switching switch 2. The output ends of switching switches 1 and 2 are respectively connected to BMC serial ports 3 and 4. BMC is connected to CPLD through I2C bus. BMC is also connected to network management interface and storage chip.
[0068] CPU1 serial ports 3 and 4 are two groups of serial ports with a long information output time interval. According to the information output by CPU1 serial ports 3 and 4, BMC designs several keywords for switching the connection between CPU1 serial port 3 or CPU1 serial port 4 and CPLD. When BMC recognizes that there is keyword output in the received information through BMC serial port 1 or 2, it notifies CPLD to switch the serial port according to the established procedure.
[0069] Similarly, CPU2 serial ports 2 and 4 are configured with keywords through BMC according to the keyword design method of CPU1 serial ports 3 and 4, so as to notify CPLD to switch serial ports according to the established procedure when BMC recognizes that there are keywords output in the received information through BMC serial port 3 or 4.
[0070] The CPLD and BMC communicate via I2C (Inter-Integrated Circuit, two-wire serial bus). The CPLD receives the BMC's instructions via I2C, transmits the received information of the CPU's corresponding serial port to the BMC, or switches the CPU's serial port connected to the CPLD via the corresponding switch.
[0071] The BMC polls BMC serial ports 1 to 4. When there is information input, the serial port number is marked in front of the information and output to the serial port log file. When polling BMC serial port 2 or 3, because BMC serial ports 2 and 3 are connected to CPLD, the serial port information output by CPU1 serial port 3 or CPU1 serial port 4 or CPU2 serial port 2 or CPU2 serial port 4 is indirectly received through CPLD, and it is determined whether the information contains the keyword corresponding to the serial port information output by CPU1 serial port 3 or CPU1 serial port 4 or CPU2 serial port 2 or CPU2 serial port 4. If so, the BMC notifies CPLD to switch serial ports according to the established procedure and continues to poll the next serial port.
[0072] The above is only an example of using the serial port information collection device of the present invention for a 2-way server. The actual application of the serial port information collection device is not limited to this. It can also be applied to multi-way servers such as 4-way servers and 8-way servers. The number and selection of switching switches can be adjusted according to actual business needs.
[0073] Based on the same inventive concept, according to another aspect of the present invention, Figure 3 As shown, an embodiment of the present invention further provides a serial port information collection method, based on the serial port information collection device as described in any one of the above, performing the following steps:
[0074] Step S101: The baseboard management controller polls the information output by the first serial port and / or the complex programmable logic device received by the second serial port, and determines whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device.
[0075] In some implementations, determining whether to notify the complex programmable logic device to replace a first serial port connected to the complex programmable logic device based on information output by the complex programmable logic device includes:
[0076] In response to polling that the information received from the second serial port is information output by the complex programmable logic device, it is determined based on the information output by the complex programmable logic device whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
[0077] Based on the same inventive concept, according to another aspect of the present invention, Figure 4 As shown, an embodiment of the present invention further provides a server 40, comprising a serial port information collection device 410 as described in any one of the above items.
[0078] The embodiment of the present invention may also include a corresponding computer device. The computer device includes a memory, at least one processor, and a computer program stored in the memory and executable on the processor, and the processor executes any one of the above methods when executing the program.
[0079] Among them, the memory, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the serial port information collection method in the embodiment of the present application. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, the serial port information collection method of the above method embodiment is realized.
[0080] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.
[0082] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0083] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0084] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0085] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A serial port information collection device, characterized in that: include: A plurality of central processing units, baseboard management controllers and complex programmable logic devices, wherein the central processing unit comprises a plurality of first serial ports, the baseboard management controller comprises a plurality of second serial ports, the central processing unit is connected to the second serial ports and / or the complex programmable logic device respectively through the first serial ports, and the baseboard management controller is connected to the complex programmable logic device through the second serial ports; The baseboard management controller is configured to poll the information output by the first serial port and / or the complex programmable logic device received by the second serial port, and determine whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device; Wherein, polling the information output by the first serial port and / or the complex programmable logic device received by the second serial port includes: polling the information output by the first serial port and / or the complex programmable logic device received by the second serial port; adding a serial port identifier before the information output by the first serial port and / or the complex programmable logic device, and saving the information output by the first serial port and / or the complex programmable logic device with the added serial port identifier into a file; Determining whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device includes: in response to polling that the information received at the second serial port is information output by the complex programmable logic device, determining whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port based on the information output by the complex programmable logic device.
2. The device according to claim 1, characterized in that The complex programmable logic device includes a plurality of switching switches, and the complex programmable logic device is configured to change a first serial port connected to the complex programmable logic device based on the switching switches.
3. The device according to claim 1, characterized in that The baseboard management controller is specifically configured as follows: Pre-configuring keywords based on information output by the complex programmable logic device; Polling the second serial port to receive information output by the central processing unit and / or the complex programmable logic device; In response to polling that the information received by the second serial port is information output by the complex programmable logic device, determining whether the information contains the keyword; If the information includes the keyword, a corresponding switching instruction is sent to the complex programmable logic device based on the keyword to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
4. The device according to claim 1, characterized in that It also includes a storage chip connected to the baseboard management controller, and the storage chip is configured to store information received by the baseboard management controller based on the second serial port.
5. The device according to claim 1, characterized in that It also includes a network management interface connected to the baseboard management controller, and the network management interface is configured to connect to a network so that a remote client can access the baseboard management controller through the network so that the remote client can obtain information received by the baseboard management controller based on the second serial port.
6. A method for collecting serial port information, characterized in that: Based on the device according to any one of claims 1 to 5, the following steps are performed: The baseboard management controller polls the information output by the first serial port and / or the complex programmable logic device received by the second serial port, and determines whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device.
7. The method according to claim 6, characterized in that Determining whether to notify the complex programmable logic device to replace the first serial port connected to the complex programmable logic device based on the information output by the complex programmable logic device includes: In response to polling that the information received from the second serial port is information output by the complex programmable logic device, it is determined based on the information output by the complex programmable logic device whether to send a switching instruction to the complex programmable logic device to switch the complex programmable logic device from being connected to the current first serial port to being connected to the corresponding first serial port.
8. A server, comprising the serial port information collection device according to any one of claims 1 to 5.
Citation Information
Patent Citations
Serial port path selection method and system based on BMC, terminal and storage medium
CN113760800A
Method and system for updating default configuration of hard disk backplane
CN113835762A
