Network management method, device and equipment and readable storage medium
Through the GPIO output function of the SWITCH chip, the network status is monitored and configured in real time, which solves the problems of low network switching efficiency and large resource utilization in the existing technology, and realizes efficient and reliable network management, which is suitable for multi-node server environments.
Patent Information
- Application Number
- CN202411746001.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-29
AI Technical Summary
The prior art has problems in server management with low network switching efficiency, large resource usage and high signal quality requirements, especially in multi-node environments, it is difficult to effectively solve the competition problems caused by limited interface resources.
Through the GPIO output function of the SWITCH chip, pre-configured management programs are called to monitor the network status in real time, and manage electrical signals through the GPIO output, guiding the BMC node to configure the network, such as maintaining or switching to the backup network.
It improves the efficiency and reliability of network management, reduces the use of BMC chip pin resources, simplifies hardware layout, and improves the reliability of the system, and is suitable for multi-node server environments.
Smart Images

Figure CN119603121A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of communication technology, and in particular to a network management method, device, equipment and readable storage medium. Background Art
[0002] In a large data center, there may be thousands of servers working at the same time. These servers need to be effectively managed to ensure data security, system stability, and service continuity. In order to manage these server clusters, enterprises or government agencies usually use NCSI (Network Controller Sideband Interface) to share the main network port for management, so as to reduce the use of physical ports, make the server network layout more concise, and provide comprehensive control of the system. This management includes key operations such as starting and restarting the server when it is shut down, monitoring hardware status, collecting logs, and upgrading firmware.
[0003] However, in current technical practice, in order to improve the system stability of server management applications, customers often need to increase additional costs and the complexity of network layout by connecting to the dedicated network port of the server for management network backup. This backup mechanism ensures that even if the NCSI carrier network card is damaged, it will not affect the management of the server. However, this network backup management involves network switching, and network switching involves network status perception, which is technically challenging.
[0004] The most commonly used loads for network status perception are switch chips and PHY chips. The server BMC (Baseboard Management Controller) chip reads the relevant registers of the network load chip through the SMI (Serial Management Interface) interface to determine whether the link status is link up or link down. The software then chooses whether to switch the network based on this information. This process is a polling process, which has the problems of low operating efficiency, large operating resource occupation, and slow effect speed. In addition, the SMI interface needs to occupy 2 GPIOs, which occupies more pin resources of the BMC chip, which is a significant disadvantage when hardware resources are limited. In terms of signal quality requirements, since the SMI interface works under a certain communication protocol, its recognition data needs to rely on the clock, so the requirements for signal quality are higher, which to a certain extent limits its reliability in harsh environments. Summary of the invention
[0005] In view of this, the present specification provides a network management method, device, electronic device, and readable storage medium to improve the above-mentioned problem of lack of reliable network switching solutions.
[0006] The specific technical solutions are as follows:
[0007] The present specification provides a network management method, which is applied to a SWITCH chip of a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the method comprises: calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program; obtaining a network connection state, and assigning a value to a register associated with the target pin that enables the GPIO output function according to the network connection state; and sending a management electrical signal to a connected BMC node in a GPIO output manner through the target pin according to the assigned register, wherein the management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection state corresponding to the management electrical signal, and the network configuration options include maintaining the current network and switching to a backup network.
[0008] As a technical solution, the method of obtaining the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status includes: assigning a value of 0 to a register associated with the target pin according to the acquired network connection status being a Link down state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register includes: sending a low-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 0, so that the BMC node switches to a backup network according to the management electrical signal.
[0009] As a technical solution, the method of obtaining the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status includes: assigning a value of 1 to a register associated with the target pin according to the acquired network connection status being a Link up state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register includes: sending a high-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0010] As a technical solution, the calling of a management program pre-configured and stored in a storage unit associated with a SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: calling a pre-written and stored eeprom program, configuring the target pin to enable the GPIO function according to the eeprom program, and configuring it to output mode.
[0011] As a technical solution, the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, including: sending the management electrical signal to all connected BMC nodes through the target pin in the form of GPIO output, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
[0012] The present specification also provides a network management device, which is applied to a SWITCH chip of a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the device includes: a first module, which is used to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure a target pin to enable a GPIO output function according to the management program; a second module, which is used to obtain a network connection status, and assign a value to a register associated with the target pin that enables the GPIO output function according to the network connection status; a third module, which is used to send a management electrical signal to a connected BMC node in a GPIO output manner through the target pin according to the assigned register, wherein the management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal, and the network configuration options include maintaining the current network and switching to a backup network.
[0013] As a technical solution, the method of obtaining the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status includes: assigning a value of 0 to a register associated with the target pin according to the acquired network connection status being a Link down state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register includes: sending a low-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 0, so that the BMC node switches to a backup network according to the management electrical signal.
[0014] As a technical solution, the method of obtaining the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status includes: assigning a value of 1 to a register associated with the target pin according to the acquired network connection status being a Link up state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register includes: sending a high-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0015] As a technical solution, the calling of a management program pre-configured and stored in a storage unit associated with a SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: calling a pre-written and stored eeprom program, configuring the target pin to enable the GPIO function according to the eeprom program, and configuring it to output mode.
[0016] As a technical solution, the management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output according to the assigned register, including: sending the management electrical signal to all connected BMC nodes through the target pin in the form of GPIO output, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
[0017] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned network management method.
[0018] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned network management method.
[0019] The above technical solution provided in this specification brings at least the following beneficial effects:
[0020] Through the GPIO output function of the SWITCH chip, efficient network management of multi-BMC node server devices is achieved. This method monitors the network status in real time through a pre-configured management program, and uses GPIO output management electrical signals to guide the BMC node to perform network configuration, such as maintaining or switching to a backup network, thereby improving the efficiency and reliability of network management. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.
[0022] Figure 1 is a flow chart of a network management method in one implementation of this specification;
[0023] Figure 2 is a flow chart in one implementation of this specification;
[0024] Figure 3 is a structural diagram of a network management device in one implementation mode of this specification;
[0025] Figure 4 It is a hardware structure diagram of an electronic device in one implementation mode of this specification.
[0026] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION
[0027] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] With the advent of the Internet AI era, the demand for big data processing, artificial intelligence training, database storage, and high-performance computing is growing, which has led to a significant increase in the demand for server clusters in large enterprises and government agencies. In large data centers, there may be thousands of servers running at the same time. In order to achieve effective management of these servers, NCSI (Network Controller Sideband Interface) is usually used to share the main network port for management. This method can reduce the number of physical ports used, make the server network layout more concise, and provide comprehensive control capabilities for the system, such as allowing the server to be started or restarted when the server is turned off, monitor hardware status, collect log information, upgrade firmware, and other functions.
[0030] Some customers are willing to increase costs and network complexity to improve system stability, and choose to establish a management network backup by connecting to the dedicated management network port of the server. This approach ensures that even if the network card that NCSI relies on fails, it will not affect the management of the server. In the case of single-node network management, the server BMC chip can read the relevant registers in the network load chip through the SMI interface to determine whether the link status is "link up" or "link down". Based on this information, the software layer can choose whether to switch the network path. However, there are some problems with this polling process, such as low operating efficiency, occupying more operating resources, and slow response speed.
[0031] The above technical solution still has limitations in application, especially it cannot be directly applied to the situation where two nodes are only configured with one dedicated management network port. This is because in this case, a SWITCH chip is needed to expand to support the management functions of two nodes, but a SWITCH chip generally has only one SMI interface, resulting in the problem of two nodes competing for the same SMI interface.
[0032] The above technical solution periodically queries the status of network devices through the BMC chip to decide whether to perform network switching operations. Although this method can meet the needs to a certain extent, it has exposed a series of shortcomings in the actual application process: first, the polling mechanism itself is inefficient, which not only consumes a lot of processor time, but also reduces the response speed of the entire system; second, since the SMI interface needs to follow a specific communication protocol when working, it has high requirements for signal quality, which increases the instability of the system; finally, when faced with a situation where multiple nodes share a management network interface, the existing method seems to be unable to cope with it and it is difficult to effectively solve the competition problem caused by limited interface resources.
[0033] In view of this, the present specification provides a network management method, device, electronic device, and readable storage medium to improve at least one of the above technical problems.
[0034] The specific technical solution is described below.
[0035] In one embodiment, the present specification provides a network management method, which is applied to a SWITCH chip of a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the method includes: calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program; obtaining a network connection status, and assigning a value to a register associated with the target pin that enables the GPIO output function according to the network connection status; and sending a management electrical signal to a connected BMC node through the target pin in a GPIO output manner according to the assigned register, wherein the management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal, and the network configuration options include maintaining the current network and switching to a backup network.
[0036] Specifically, Figure 1 , including the following steps:
[0037] Step S11, calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program.
[0038] The SWITCH chip is the core component, which is responsible for connecting the dedicated network ports of multiple BMC nodes. First, a management program is pre-configured and stored in the storage unit of the SWITCH chip. This management program is specially designed for network management and can dynamically adjust the configuration of GPIO (general purpose input and output) pins according to changes in network status.
[0039] Step S12, obtaining the network connection status, and assigning a value to a register associated with a target pin for enabling the GPIO output function according to the network connection status.
[0040] After configuring the GPIO output function, the next step is to obtain the network connection status. The SWITCH chip monitors the network connection status in real time and assigns values to the registers associated with the target pins that enable the GPIO output function based on these statuses. This step is automated and does not require manual intervention, greatly improving the efficiency of network management.
[0041] Step S13: sending a management electrical signal to the connected BMC node through the target pin in a GPIO output mode according to the assigned register.
[0042] According to the assigned register, the SWITCH chip will send management electrical signals to the connected BMC nodes through the target pins in the form of GPIO output. These management electrical signals contain information about the network connection status. The BMC nodes that receive these signals will perform network configuration according to the network connection status corresponding to the management electrical signals.
[0043] Take MARVELL's 88E6141-switch chip as an example. By writing the eeprom program, the pin is configured as the GPIO function and set to output mode. The internal link status register can be assigned to the GPIO data register in real time through the program. When the SWITCH chip starts, the internal program of the eeprom is read, so that the link status can be output through the GPIO. For example, the GPIO output low level (0) can be set to indicate that the link is down, and the output high level (1) can indicate that the link is up.
[0044] If the management signal indicates that the current network connection status is down, the BMC node can automatically switch to the backup network to ensure the continuous operation of the server and the security of the data. On the contrary, if the management signal indicates that the current network connection status is up, the BMC node can maintain the current network configuration without switching.
[0045] Compared with the traditional polling mechanism, the above implementation method realizes real-time monitoring and response through GPIO output, which greatly improves the efficiency of network management. The GPIO solution only occupies a single pin, reduces the occupation of BMC chip pin resources, and simplifies the hardware layout. Since GPIO does not require complex communication protocols, BMC does not require complex processing procedures. The complex part has been processed in the SWITCH chip, which improves the reliability of the system and effectively solves the problem of dual-master SMI interface conflicts under multi-nodes. It is suitable for multi-node server environments.
[0046] In one embodiment, the obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: assigning a value of 0 to a register associated with the target pin according to the obtained network connection status being a Link down state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register include: sending a low-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 0, so that the BMC node switches to a backup network according to the management electrical signal.
[0047] In one embodiment, the obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: assigning a value of 1 to a register associated with the target pin according to the acquired network connection status being a Link up state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register include: sending a high-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0048] In one embodiment, the calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: calling a pre-written and stored eeprom program, configuring the target pin to enable the GPIO function according to the eeprom program, and configuring it to output mode.
[0049] In one embodiment, sending a management electrical signal to a connected BMC node via a target pin in a GPIO output manner according to an assigned register includes: sending a management electrical signal to all connected BMC nodes via a target pin in a GPIO output manner, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
[0050] In one embodiment, Figure 2 Inside the SWITCH chip, there is a non-volatile storage unit (such as EEPROM) associated with it, in which a specific management program is pre-configured and stored. When the system starts, the SWITCH chip loads this program into the working memory. According to the instructions of the management program, the selected target pins are configured to have GPIO output function. This process is completed by writing a specific eeprom program to ensure that the relevant pins can be correctly converted to GPIO mode and set to output state. This configuration enables the SWITCH chip to directly transmit the status information of the network link to external devices, such as BMC nodes, in the form of physical signals.
[0051] The SWITCH chip continuously monitors the actual link status of the network port to which it is connected. Whenever it detects a change in link status (i.e., from "link up" to "link down" or vice versa), it immediately updates the data register value associated with the pin previously designated as a GPIO output function. Specifically, if the link is active, the corresponding register will be set to indicate a logic high level (1); conversely, if the link is disconnected, the register value is adjusted to a logic low level (0). In this way, at any point in time, the BMC can accurately know whether the current network is available by reading these register values.
[0052] After the target register is assigned a new value, the SWITCH chip sends the corresponding high and low level changes as management electrical signals through the configured GPIO pins. These signals can be directly transmitted to all BMC nodes connected to it. After receiving the signal, each BMC determines the current network status according to the preset logic, and decides whether to perform network configuration operations, such as maintaining the existing network connection unchanged or switching to an alternative network path. This process does not require complex communication protocol processing, greatly simplifies the information transmission process, and improves the response speed and stability of the overall system.
[0053] In one embodiment, Figure 3 This specification also provides a network management device, which is applied to a SWITCH chip of a server device with multiple BMC nodes. The SWITCH chip is used to connect to a dedicated network port of a BMC node. The device includes: a first module, which is used to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure a target pin to enable a GPIO output function according to the management program; a second module, which is used to obtain a network connection state, and assign a value to a register associated with the target pin that enables the GPIO output function according to the network connection state; a third module, which is used to send a management electrical signal to the connected BMC node in a GPIO output manner through the target pin according to the assigned register, and the management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection state corresponding to the management electrical signal, and the network configuration options include maintaining the current network and switching to a backup network.
[0054] In one embodiment, the obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: assigning a value of 0 to a register associated with the target pin according to the obtained network connection status being a Link down state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register include: sending a low-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 0, so that the BMC node switches to a backup network according to the management electrical signal.
[0055] In one embodiment, the obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: assigning a value of 1 to a register associated with the target pin according to the acquired network connection status being a Link up state; and sending a management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register include: sending a high-level management electrical signal to a connected BMC node through a target pin in a GPIO output manner according to the assigned register being 1, so that the BMC node maintains the current network according to the management electrical signal.
[0056] In one embodiment, the calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: calling a pre-written and stored eeprom program, configuring the target pin to enable the GPIO function according to the eeprom program, and configuring it to output mode.
[0057] In one embodiment, sending a management electrical signal to a connected BMC node via a target pin in a GPIO output manner according to an assigned register includes: sending a management electrical signal to all connected BMC nodes via a target pin in a GPIO output manner, so that multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
[0058] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.
[0059] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned network management method. From a hardware level, the hardware architecture diagram can be seen in Figure 4 shown.
[0060] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned network management method.
[0061] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0062] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0063] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0064] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0065] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0066] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0068] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0069] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A network management method, characterized in that: A SWITCH chip applied to a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the method comprises: Calling a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring a target pin to enable a GPIO output function according to the management program; Get the network connection status, and assign values to the registers associated with the target pins that enable the GPIO output function according to the network connection status; According to the assigned register, a management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output. The management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal. The options for the network configuration include maintaining the current network and switching to a backup network.
2. The method according to claim 1, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: According to the obtained network connection status of Link down, the register associated with the target pin is assigned a value of 0; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 0, a low-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node switches to the backup network according to the management electrical signal.
3. The method according to claim 1, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: According to the obtained network connection status as Link up, assign 1 to the register associated with the target pin; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 1, a high-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node maintains the current network according to the management electrical signal.
4. The method according to claim 1, characterized in that: The calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: Call the pre-written and stored eeprom program, configure the target pin according to the eeprom program to enable the GPIO function, and configure it as output mode.
5. The method according to claim 1, characterized in that The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: The management electrical signal is sent to all connected BMC nodes in the form of GPIO output through the target pin, so that the multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
6. A network management device, characterized in that: A SWITCH chip applied to a server device with multiple BMC nodes, wherein the SWITCH chip is used to connect to a dedicated network port of a BMC node, and the device comprises: The first module is used to call a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configure the target pin to enable the GPIO output function according to the management program; The second module is used to obtain the network connection status and assign a value to the register associated with the target pin that enables the GPIO output function according to the network connection status; The third module is used to send a management electrical signal to the connected BMC node through the target pin in the form of GPIO output according to the assigned register. The management electrical signal is used to enable the BMC node that receives the management electrical signal to perform network configuration according to the network connection status corresponding to the management electrical signal. The optional options of the network configuration include maintaining the current network and switching to the backup network.
7. The device according to claim 6, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: According to the obtained network connection status of Link down, the register associated with the target pin is assigned a value of 0; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 0, a low-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node switches to the backup network according to the management electrical signal.
8. The device according to claim 6, characterized in that The obtaining of the network connection status and assigning a value to a register associated with a target pin that enables a GPIO output function according to the network connection status include: According to the obtained network connection status as Link up, assign 1 to the register associated with the target pin; The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: According to the value assigned to the register as 1, a high-level management electrical signal is sent to the connected BMC node through the target pin in the form of GPIO output, so that the BMC node maintains the current network according to the management electrical signal.
9. The device according to claim 6, characterized in that The calling of a management program pre-configured and stored in a storage unit associated with the SWITCH chip, and configuring the target pin to enable the GPIO output function according to the management program, includes: Call the pre-written and stored eeprom program, configure the target pin according to the eeprom program to enable the GPIO function, and configure it as output mode.
10. The device according to claim 6, characterized in that The method of sending a management electrical signal to a connected BMC node in a GPIO output mode through a target pin according to the assigned register includes: The management electrical signal is sent to all connected BMC nodes in the form of GPIO output through the target pin, so that the multiple BMC nodes perform network configuration according to the network connection status corresponding to the management electrical signal.
11. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any method described in claims 1-5.
12. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-5.
Citation Information
Patent Citations
Method, system and device for obtaining IP address, and medium
CN111193818A
Network switching device of double-BMC system and network switching method thereof
CN112019460A
Control mainboard slot enabling method, device and system and medium
CN112667544A
Method and device for monitoring GPIO (general purpose input / output) of board card
CN113127302A
Server management method, device and system, electronic equipment and readable storage medium
CN114866424A