Intelligent device management method, device, network device and readable storage medium
Through the MCTP management component transmission protocol out-of-band channel, a virtual console is created for smart devices, which solves the problems of inconvenient management and poor versatility of smart devices, realizes convenient management and maintenance, and avoids the need for frequent upgrades of BMC firmware and external management software. .
Patent Information
- Application Number
- CN201910458834.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-05-29
AI Technical Summary
Out-of-band management of smart devices is inconvenient and has poor versatility. Especially when the functions provided by smart devices exceed the existing definitions, BMC cannot directly provide support, and after upgrade, BMC needs to be upgraded to support new functions.
Create a virtual console for smart devices through the MCTP management component transmission protocol out-of-band channel to implement console message input and output with external management, allowing external management software or users to manage and maintain smart devices on the console, independent of BMC firmware and external management software.
It improves the convenience and versatility of smart device management, allowing external management software to support smart devices from all manufacturers without upgrading BMC firmware. New smart devices or functions do not require upgrading BMC firmware and external management software.
Smart Images

Figure CN112015690B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to, but are not limited to, the field of communications, and specifically, relate to, but are not limited to, a smart device management method, an apparatus, a network device, and a readable storage medium. Background Art
[0002] MCTP (Management Component Transport Protocol) is a "data link layer" protocol based on the physical layer for communication between intelligent devices inside computers that is independent of various media. It facilitates platform management developers to quickly and economically develop and deploy platform management subsystems that can be accessed by CIM (Common Information Model). MCTP defines a transport layer protocol that is independent of physical media. The link layer is defined in a series of MCTP binding protocols. The supported physical media types include: PCIe (Peripheral Component Interconnect Express), SMBus (System Management Bus), USB (Universal Serial Bus), BT (Block Transfer), KCS (Keyboard Controller Style), etc.
[0003] At present, most of the intelligent devices that support MCTP out-of-band management in computer systems support PCIe and SMBus as media types. The MCTP Over PCIe VDM transmission binding specification defines the communication protocol between intelligent devices based on PCIe links based on the PCIe transport layer protocol; the MCTP Over SMBus transmission binding specification defines the communication protocol between intelligent devices based on I2C links based on the SMBus Block Write bus protocol, etc. The basic specification of MCTP defines the communication mechanism between intelligent devices that support different physical layer links.
[0004] A computer system equipped with a BMC (Baseboard Management Controller) communicates with the managed devices through physical channels such as out-of-band PCIe and SMBus, and assumes the responsibility of hardware monitoring of the computer system.
[0005] The various MCTP binding protocols and MCTP basic specifications defined by DMTF (Distributed Management Task Force) together ensure that smart devices from different manufacturers can communicate through out-of-band channels.
[0006] Generally, devices that support MCTP are intelligent devices with their own processor units and firmware. When the out-of-band functions provided by intelligent devices exceed the existing defined functions, such as intelligent devices with switching functions providing switching configuration functions and debugging of intelligent devices, due to the lack of standard protocol definition, each intelligent device is implemented according to the manufacturer, and BMC cannot directly provide support. Moreover, when the intelligent device is upgraded, BMC also needs to be upgraded to support new functions. Similarly, external management software connected to BMC cannot manage intelligent devices, or cannot manage intelligent devices after adding new functions. Summary of the invention
[0007] The smart device management method, apparatus, network device and readable storage medium provided by the embodiments of the present invention mainly solve the technical problem of inconvenient out-of-band management of smart devices and poor versatility.
[0008] In order to solve the above technical problems, an embodiment of the present invention provides a smart device management method, including:
[0009] A virtual console for smart devices;
[0010] Console messages are sent and received to and from external management via the MCTP management component transport protocol out-of-band channel.
[0011] The embodiment of the present invention further provides a smart device management device, including:
[0012] A console building module is used to create a virtual console for smart devices;
[0013] The interactive management module is used to input and / or output console messages with external management through the MCTP management component transmission protocol out-of-band channel.
[0014] An embodiment of the present invention further provides a network device, the network device comprising a processor, a memory and a communication bus;
[0015] The communication bus is used to realize the connection and communication between the processor and the memory;
[0016] The processor is used to execute one or more computer programs stored in the memory to implement the steps of the above-mentioned smart device management method.
[0017] An embodiment of the present invention further provides a computer storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned smart device management method.
[0018] The beneficial effects of the present invention are:
[0019] According to the smart device management method, apparatus, network device and readable storage medium provided by the embodiment of the present invention, a virtual console for smart devices is provided; the console messages are input and / or output between external management through the MCTP management component transmission protocol out-of-band channel. Thus, after setting up a console for a smart device, the smart device can implement various functions on the console, and the external management software or user connects to the console and uses the console's messages to manage and maintain the smart device, thereby improving the convenience and versatility of smart device management.
[0020] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flow chart of a smart device management method provided in Embodiment 1 of the present invention;
[0022] Figure 2 A schematic diagram of BMC communication provided in Embodiment 1 of the present invention;
[0023] Figure 3 A system architecture diagram of the intelligent device management method provided in the second embodiment of the present invention;
[0024] Figure 4 A flow chart of a smart device management method provided in Embodiment 2 of the present invention;
[0025] Figure 5 This is a system architecture diagram of the intelligent device management method provided in Embodiment 3 of the present invention;
[0026] Figure 6 A flow chart of a smart device management method provided in Embodiment 3 of the present invention;
[0027] Figure 7 A schematic diagram of the composition of the intelligent device management device provided in the fourth embodiment of the present invention;
[0028] Figure 8 A schematic diagram of a network device structure provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0030] Embodiment 1:
[0031] This embodiment provides a smart device management method, please refer to Figure 1 , the method comprising:
[0032] S11, a virtual console for smart devices;
[0033] S12. Input and / or output console messages to and from external management via the MCTP management component transport protocol out-of-band channel.
[0034] Smart devices can implement various functions on their own consoles. You can connect to the consoles of smart devices on BMC or external management software and use the commands provided by the consoles to manage and maintain smart devices.
[0035] In some embodiments, a virtual console for a smart device may include:
[0036] Use at least one type value in the reserved type segment of the PLDM platform-level data model, defined as PLDM forconsole console; or,
[0037] In the MCTP definition message, the console function message body is defined. Specifically, a type value such as 100000b in the reserved type segment of the PLDM platform-level data model can be used to define it as PLDM for console, or the console function message body can be defined in the MCTP Vendor defined-PCI / MCTP Vendor defined–IANA (The Internet Assigned Numbers Authority) message.
[0038] In some embodiments, input and / or output of console messages to and from external management via the MCTP out-of-band channel may include:
[0039] The BMC baseboard management controller acts as an MCTP message communication agent, communicating with smart devices and external management software respectively; the BMC acts as an MCTP message communication agent so that external management software and smart devices can complete the interaction of console messages. Figure 2As shown, BMC can communicate with multiple smart devices at the same time, and can also allow multiple external management software to access at the same time. The external management software inputs and / or outputs console messages, and provides the user with a console for the smart device. The advantages of this solution are: BMC firmware and external management software support the debugging, maintenance and management of smart devices with console functions from all manufacturers; adding new smart devices does not require upgrading BMC firmware and external management software; users can operate all functions of smart devices through the console provided by the external management software; BMC, external management software and smart devices are decoupled, and adding new smart devices or adding new functions to smart devices does not require upgrading BMC firmware and external management software.
[0040] In some embodiments, inputting and / or outputting console messages to and from external management via the MCTP out-of-band channel may also include:
[0041] BMC implements the console operation interface of smart devices;
[0042] Through the console operation interface of the BMC, the console and / or CLI command line interface of the intelligent device is accessed to input and / or output the console message. The advantages of this solution are: no special external management software is required, and common terminal tools such as serial terminal tools, SSH / Telnet client tools, and ipmitool's SOL (Serial Over Lan) function are used to debug, maintain and manage the intelligent devices in the computer system. There is no need to upgrade the BMC firmware when adding new intelligent devices or upgrading the functions of intelligent devices.
[0043] Specifically, the BMC console operation interface may include:
[0044] At least one of the serial, serial port, SSH (Secure Shell) and Telnet remote terminal protocols on the SOL local area network.
[0045] In some embodiments, the method may further include: accessing the console and / or CLI command line interface of the smart device through the console operation interface of the BMC, inputting and / or outputting console messages, and performing at least one of debugging, maintaining and managing the smart device.
[0046] In some embodiments, the smart device virtual console may specifically include:
[0047] Scan the system through BMC to identify the smart devices in the system;
[0048] Through BMC, a virtual console is provided for smart devices.
[0049] In some embodiments, a virtual console for a smart device may include:
[0050] The external management software connects to the MCTP message broker over the network and generates a console for the smart device.
[0051] According to the smart device management method provided in this embodiment, a virtual console is provided for the smart device; the console message is input and / or output with the external management through the MCTP management component transmission protocol out-of-band channel. Therefore, after setting up a console for the smart device, the smart device can implement various functions on the console, and the external management software or user connects to the console and uses the console's messages to manage and maintain the smart device, thereby improving the convenience and versatility of smart device management.
[0052] Embodiment 2
[0053] This embodiment provides a smart device management method, wherein the method is applied to diagnose Raid failures.
[0054] System architecture Figure 3 As shown, the Raid card and CPU are linked via PCIe to implement in-band services, and the Raid card and BMC are linked via the SMBus bus for out-of-band management. When the OS running on the CPU fails to access the logical disk, follow the steps below to diagnose the Raid card failure:
[0055] S41: BMC scans the smart device Raid card in the system through the MCTP series protocol and generates a console for the smart device Raid card;
[0056] S42: The user connects to the console of the Raid card through a serial terminal, SSH / Telnet client, or ipmitool SOL function;
[0057] S43: The user operates the debugging and diagnosis commands of the Raid card in the console and observes the output of the console to analyze the fault of the Raid.
[0058] Embodiment 3
[0059] This embodiment provides a smart device management method, wherein the method is applied to configure Ethernet switching.
[0060] like Figure 5 As shown, the Ethernet switches in computer systems 1 and 2 need to be stacked to provide external switching functions, but the software running in computer systems 1 and 2 does not manage Ethernet switches 1 and 2. The default ports of Ethernet switches 1 and 2 are not configured for stacking, but support configuration through the MCTP console. The configuration of Ethernet switches is performed as follows:
[0061] S61: BMC1 and BMC2 scan to Ethernet switch 1 and Ethernet switch 2 through MCTP series protocol;
[0062] S62: The external management software is connected to the MCTP message agent 1 of the BMC 1 through the network, and generates a console 1 for the Ethernet switch 1;
[0063] S63: The external management software is connected to the MCTP message agent 2 of the BMC 2 through the network, and generates a console 2 for the Ethernet switch 2;
[0064] S64: The external management software automatically executes the stack configuration script on the consoles 1 and 2, respectively, to configure the stack function for the Ethernet switch 1 and the Ethernet switch 2, respectively.
[0065] Embodiment 4
[0066] This embodiment provides a smart device management device. Figure 7 , the device comprises:
[0067] A console establishment module 71 is used to create a virtual console for the smart device;
[0068] The interactive management module 72 is used to input and / or output console messages with external management through the MCTP management component transmission protocol out-of-band channel.
[0069] Smart devices can implement various functions on their own consoles. You can connect to the consoles of smart devices on BMC or external management software and use the commands provided by the consoles to manage and maintain smart devices.
[0070] In some embodiments, a virtual console for a smart device may include:
[0071] Use at least one type value in the reserved type segment of the PLDM platform-level data model, defined as PLDM forconsole console; or,
[0072] In the MCTP definition message, the console function message body is defined. Specifically, a type value such as 100000b in the reserved type segment of the PLDM platform-level data model can be used to define it as PLDM for console, or the console function message body can be defined in the MCTP Vendor defined-PCI / MCTP Vendor defined–IANA message.
[0073] In some embodiments, input and / or output of console messages to and from external management via the MCTP out-of-band channel may include:
[0074] The BMC baseboard management controller acts as an MCTP message communication agent, communicating with smart devices and external management software respectively; the BMC acts as an MCTP message communication agent so that external management software and smart devices can complete the interaction of console messages. Figure 2 As shown, BMC can communicate with multiple smart devices at the same time, and can also allow multiple external management software to access at the same time. The external management software inputs and / or outputs console messages, and provides the user with a console for the smart device. The advantages of this solution are: BMC firmware and external management software support the debugging, maintenance and management of smart devices with console functions from all manufacturers; adding new smart devices does not require upgrading BMC firmware and external management software; users can operate all functions of smart devices through the console provided by the external management software; BMC, external management software and smart devices are decoupled, and adding new smart devices or adding new functions to smart devices does not require upgrading BMC firmware and external management software.
[0075] In some embodiments, inputting and / or outputting console messages to and from external management via the MCTP out-of-band channel may also include:
[0076] BMC implements the console operation interface of smart devices;
[0077] Through the console operation interface of the BMC, access the console and / or CLI command line interface of the intelligent device to input and / or output console messages. The advantages of this solution are: no special external management software is required, and common terminal tools such as serial terminal tools, SSH / Telnet client tools, and ipmitool's SOL function are used to debug, maintain and manage intelligent devices in the computer system. There is no need to upgrade the BMC firmware when adding new intelligent devices or upgrading the functions of intelligent devices.
[0078] Specifically, the BMC console operation interface may include:
[0079] At least one of the serial, serial port, SSH, and Telnet remote terminal protocols on the SOL local area network.
[0080] In some embodiments, the method may further include: accessing the console and / or CLI command line interface of the smart device through the console operation interface of the BMC, inputting and / or outputting console messages, and performing at least one of debugging, maintaining and managing the smart device.
[0081] In some embodiments, the smart device virtual console may specifically include:
[0082] Scan the system through BMC to identify the smart devices in the system;
[0083] Through BMC, a virtual console is provided for smart devices.
[0084] In some embodiments, a virtual console for a smart device may include:
[0085] The external management software connects to the MCTP message broker over the network and generates a console for the smart device.
[0086] According to the smart device management method provided in this embodiment, a virtual console is provided for the smart device; the console message is input and / or output with the external management through the MCTP management component transmission protocol out-of-band channel. Therefore, after setting up a console for the smart device, the smart device can implement various functions on the console, and the external management software or user connects to the console and uses the console's messages to manage and maintain the smart device, thereby improving the convenience and versatility of smart device management.
[0087] Embodiment 5
[0088] This embodiment also provides a network device, see Figure 8 As shown, it includes a processor 81, a memory 82 and a communication bus 83, wherein:
[0089] The communication bus 83 is used to realize the connection and communication between the processor 81 and the memory 82;
[0090] The processor 81 is used to execute one or more computer programs stored in the memory 82 to implement the steps of the smart device management method in the above-mentioned embodiments, which will not be repeated here.
[0091] The present embodiment also provides a computer-readable storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage systems, or any other medium that can be used to store desired information and can be accessed by a computer.
[0092] The computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored therein can be executed by a processor to implement at least one step of the smart device management method in the above embodiments.
[0093] This embodiment also provides a computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing system to implement at least one step of the smart device management method in the above embodiments.
[0094] This embodiment further provides a computer program product, including a computer readable system, on which the computer program shown above is stored. In this embodiment, the computer readable system may include the computer readable storage medium shown above.
[0095] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the methods disclosed above can be implemented as software (which can be implemented with computer program code executable by a computing system), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.
[0096] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.
[0097] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A smart device management method, comprising: A virtual console for smart devices; Input and / or output of console messages to and from external management via the MCTP management component transport protocol out-of-band channel; The smart device virtual console includes: Scan the system through BMC to determine the smart device in the system; Through the BMC, a virtual console is provided for the smart device; The input and / or output of console messages between external management and the MCTP management component transmission protocol out-of-band channel includes: The BMC baseboard management controller acts as an MCTP message communication agent, communicating with the smart device and the external management software respectively; External management software performs input and / or output of console messages.
2. The intelligent device management method according to claim 1, characterized in that: The smart device virtual console includes: Use at least one type value in the reserved type segment of the PLDM platform-level data model, defined as PLDM forconsole console; or, In the MCTP definition message, define the console function message body.
3. The intelligent device management method according to any one of claims 1 to 2, characterized in that: The input and / or output of console messages to and from external management via the MCTP out-of-band channel also includes: BMC implements the console operation interface of smart devices; Access the console and / or CLI of the smart device through the BMC console operation interface to input and / or output console messages.
4. The intelligent device management method according to claim 3, characterized in that: The BMC console operation interface includes: At least one of the following protocols: serial, serial port, SSH secure shell protocol, and Telnet remote terminal protocol on SOL local area network.
5. The intelligent device management method according to claim 3, characterized in that: Also includes: Through the console operation interface of the BMC, access the console and / or CLI command line interface of the smart device to input and / or output console messages, and perform at least one of debugging, maintenance and management on the smart device.
6. The smart device management method according to any one of claims 1 to 2, characterized in that: The smart device virtual console includes: The external management software connects to the MCTP message broker through the network and generates a console for the smart device.
7. An intelligent device management device, comprising: A console building module is used to create a virtual console for smart devices; An interactive management module, configured to input and / or output console messages to and from external management via an MCTP management component transport protocol out-of-band channel; The smart device virtual console includes: Scan the system through BMC to determine the smart device in the system; Through the BMC, a virtual console is provided for the smart device; The input and / or output of console messages between external management and the MCTP management component transmission protocol out-of-band channel includes: The BMC baseboard management controller acts as an MCTP message communication agent, communicating with the smart device and the external management software respectively; External management software performs input and / or output of console messages.
8. The intelligent device management device according to claim 7, characterized in that: The smart device virtual console includes: Use at least one type value in the reserved type segment of the PLDM platform-level data model, defined as PLDM forconsole console; or, In the MCTP definition message, define the console function message body.
9. The intelligent device management device according to any one of claims 7 to 8, characterized in that: The input and / or output of console messages to and from external management via the MCTP out-of-band channel also includes: BMC implements the console operation interface of smart devices; Access the console and / or CLI of the smart device through the BMC console operation interface to input and / or output console messages.
10. A network device, comprising a processor (151), a memory (152) and a communication bus (153); The communication bus (153) is used to realize the connection and communication between the processor (151) and the memory (152); The processor (151) is used to execute one or more computer programs stored in the memory (152) to implement the steps of the smart device management method according to any one of claims 1 to 6.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the steps of the smart device management method according to any one of claims 1 to 6.
