Method and device for managing memory card based on BMC, storage medium and program product

By setting up management images in BMC and mounting them to the server host, and using network protocol to obtain memory card status information, the problem that BMC cannot directly manage memory cards is solved, achieving convenient and efficient memory card management.

CN119902781APending Publication Date: 2025-04-29LOONGSON ZHONGKE (XIAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411979070.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, BMC cannot directly manage memory cards and needs to rely on source code or authorization provided by memory card manufacturers, which increases management difficulty.

Method used

By setting up a management image in the BMC and mounting it to the server host side, using preset network protocols (such as SNMP protocol) to obtain the status information of the memory card from the server host side, the memory card management is realized.

Benefits of technology

Without the need for technical support from memory card manufacturers, the management of memory cards on the server is conveniently implemented through the BMC-based management mirror mounting method, which improves management convenience and reduces management complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902781A_ABST
    Figure CN119902781A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for managing a memory card based on a BMC, a storage medium and a program product, and the method comprises the steps: responding to a mounting instruction of the BMC, and mounting a management mirror image in the BMC to a server host end, so that the server host end is started through the management mirror image and obtains the state information of the memory card; and obtaining the state information of the memory card from the server host end through a preset network protocol so as to realize management of the memory card. The management mirror image is arranged in the BMC and mounted at the host end of the server, so that the management mirror image can manage the memory card on the server, and the BMC communicates with the management mirror image mounted at the host end of the server to obtain the state information of the memory card so as to manage the memory card. According to the method provided by the invention, technical support does not need to be provided by a memory card manufacturer, management of the memory card on the server can be conveniently realized in a mode of managing mirror image mounting, the convenience of memory card management is improved, and the complexity of memory card management is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for managing a memory card based on a BMC, an electronic device, a readable storage medium, and a computer program product. Background Art

[0002] BMC (Baseboard Management Controller) is an important component in the server. It is mainly responsible for monitoring the hardware status of the server, such as temperature, power supply, fan speed, etc., and issuing warnings when abnormal conditions occur. In addition, BMC also provides remote management functions, allowing administrators to remotely control BMC through the network to perform operations such as power on, power off, and restart of the server, which greatly facilitates server maintenance.

[0003] The functions of BMC are mainly focused on the hardware management and maintenance of the server, and do not include the direct management of specific devices such as storage cards.

[0004] Therefore, when it comes to the management of memory cards, it is necessary to rely on the source code provided by the memory card manufacturer or obtain authorization, which increases the difficulty of memory card management. Summary of the invention

[0005] In view of the above problems, embodiments of the present application are proposed to provide a method, device, storage medium and program product for managing a memory card based on a BMC that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present application discloses a method for managing a memory card based on a BMC, the method comprising:

[0007] In response to a mount instruction of the BMC, the management image in the BMC is mounted to the server host, so that the server host can start up through the management image and obtain the status information of the memory card;

[0008] The status information of the memory card is obtained from the server host through a preset network protocol to achieve management of the memory card.

[0009] Optionally, the BMC is connected to the server host via a first Universal Serial Bus (USB) interface, and the step of mounting the management image in the BMC to the server host in response to a mount instruction of the BMC comprises:

[0010] In response to the mounting instruction of the BMC, the management image is mounted to the server host end based on the first USB interface through the virtual media service of the BMC.

[0011] Optionally, the method further comprises:

[0012] In response to a mount operation performed on the remote management page of the BMC, a mount instruction for the management image is generated.

[0013] Optionally, the BMC is connected to the server host via a second USB interface, and the acquiring the status information of the memory card from the server host via a preset network protocol includes:

[0014] Convert the second USB interface into a network interface;

[0015] The status information of the storage card is obtained from the management image of the server host based on the network interface and a preset network protocol.

[0016] Optionally, the preset network protocol is SNMP protocol, and the acquiring the status information of the storage card from the management image of the server host based on the network interface and the preset network protocol includes:

[0017] Sending a request instruction to the server host based on the network interface; the request instruction is an instruction based on the SNMP protocol,

[0018] The management image of the server host receives the status information of the memory card returned by the request instruction.

[0019] Optionally, converting the second USB interface into a network interface includes:

[0020] The second USB interface is converted into a network interface through a USB to network driver.

[0021] Optionally, after mounting the management image in the BMC to the server host, the method further includes:

[0022] Get the running status of BMC terminal service;

[0023] When there is no error in the running state, it is determined that the management image is mounted successfully.

[0024] Optionally, the management image is pre-set in the BMC and is used to obtain status information of a storage card on the server;

[0025] The storage card includes an array card and a pass-through card.

[0026] In a second aspect, an embodiment of the present application further discloses an electronic device, including:

[0027] Processor; and

[0028] The memory stores one or more programs, and when the programs are executed by the processor, the processor performs the following operations:

[0029] In response to a mount instruction of the BMC, the management image in the BMC is mounted to the server host, so that the server host can start up through the management image and obtain the status information of the memory card;

[0030] The status information of the memory card is obtained from the server host through a preset network protocol to achieve management of the memory card.

[0031] In a third aspect, an embodiment of the present application further discloses a readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method described in the first aspect.

[0032] In a fourth aspect, an embodiment of the present application further discloses a computer program product, including a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0033] In the embodiment of the present application, in response to the mount instruction of the BMC, the management image in the BMC is mounted to the server host side, so that the server host side can start through the management image and obtain the status information of the storage card; the status information of the storage card is obtained from the server host side through a preset network protocol to achieve the management of the storage card. The method of the present application sets a management image in the BMC, mounts the management image on the server host side, so that the management image can manage the storage card on the server and obtain the status information of the storage card. The BMC obtains the status information of the storage card by communicating with the management image mounted on the server host side to achieve the management of the storage card. The method of the present application does not require the storage card manufacturer to provide technical support. The management of the storage card on the server can be conveniently achieved through the management image mounting method based on the BMC, which improves the convenience of storage card management and reduces the complexity of storage card management. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a hardware connection diagram provided in an embodiment of the present application;

[0035] Figure 2 is a flowchart of a method for managing a memory card based on a BMC provided in an embodiment of the present application;

[0036] Figure 3 It is a flowchart of another method for managing a memory card based on a BMC provided in an embodiment of the present application;

[0037] Figure 4 is a block diagram of an electronic device provided in an embodiment of the present application;

[0038] Figure 5 This is a block diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0040] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, the term "and / or" in the specification and claims is used to describe the association relationship of associated objects, indicating that three kinds of relationships can exist, for example, A and / or B can be represented: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the front and back associated objects are a kind of "or" relationship. In the embodiment of the present application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0041] The concepts involved in this application are explained below.

[0042] SNMP (Simple Network Management Protocol) is a standard protocol designed specifically for managing network nodes (servers, workstations, routers, switches, and Hubs, etc.) on Internet Protocol (IP) networks. It is an application layer protocol. BMC usually supports the SNMP protocol, which allows remote management and monitoring of server hardware, including the status and performance of storage cards, through the SNMP protocol. As an SNMP agent, BMC is responsible for collecting hardware information collected by the server.

[0043] The virtual media function of BMC is an embedded microcontroller function that allows administrators to remotely access the server through the network to remotely install the operating system, update the firmware, and other operations. Through the virtual media function, administrators can map local CDs, USB devices, etc. to remote servers to achieve remote installation and configuration. Specifically, the virtual media function of BMC supports mounting ISO images or disk drives to the server, allowing administrators to remotely install operating systems, update firmware, etc. This function greatly improves the management efficiency and flexibility of the server.

[0044] refer to Figure 1 , Figure 1 A hardware connection diagram provided in an embodiment of the present application is shown, including: a BMC, a bridge chip, a memory card and a disk, wherein the BMC is connected to the bridge chip through a first USB interface and a second USB interface respectively, the bridge chip is connected to a central processing unit (CPU), the CPU is connected to the memory card, and the memory card is connected to the disk.

[0045] Specifically, BMC (Baseboard Management Controller) is a small operating system independent of the server system, a chip integrated on the motherboard, used for remote out-of-band management. It can be plugged into the motherboard through PCIe and other forms, has an independent RJ45 network port and IP address, and is used for remote management, monitoring, installation, restart and other operations of the server. The BMC is connected to the CPU through a bridge chip. The function of the bridge chip is to connect multiple CPUs and other components to ensure that data and instructions can be transmitted efficiently. The BMC and the bridge chip communicate through the USB interface. The CPU is connected to the memory card through the data bus, address bus and control bus, while the memory card is connected to the disk through the data bus and control bus. This connection method ensures efficient transmission and processing of data.

[0046] refer to Figure 2 , which shows a flowchart of the steps of the method for managing a memory card based on a BMC provided in an embodiment of the present application, including:

[0047] Step 101, in response to a mount instruction of the BMC, mount the management image in the BMC to a server host, so that the server host can start up through the management image and obtain status information of a storage card.

[0048] In the embodiment of the present application, the management image may be a program pre-set in the BMC for obtaining various information of the memory card, operating the storage device, adding or removing the memory card, and other functions supported by a series of memory cards. The BMC may mount the management image to the server host, so that the server host can start based on the management image, enter the memory card management mode, and obtain the status information of the memory card. At this time, the management image communicates with the BMC as an agent, and provides the obtained status information of the memory card to the BMC through communication with the BMC, so as to realize the management of the memory card by the BMC.

[0049] Optionally, the BMC is connected to the server host via a first USB interface, and step 101 includes:

[0050] Sub-step 1011, in response to a mount instruction of the BMC, the management image is mounted to the server host end based on the first USB interface through the virtual media service of the BMC.

[0051] In an embodiment of the present application, the BMC virtual media service (BMC Virtual Media) is a function of the BMC that allows users to remotely access and operate the server's virtual optical drive and virtual floppy drive through the BMC, so that server administrators can remotely install operating systems, load files, or perform other operations that require an optical drive or floppy drive without physical access to the server.

[0052] Specifically, in the remote management interface of the BMC, the management image to be mounted can be selected through interactive operations, and the management image can be connected to the server, so that the server can recognize the image file as a bootable device, thereby allowing the user to start or install the operating system from the image file when remotely managing the server through the BMC. After the server host is restarted through the management image, the management image is used to obtain the status information of the storage card to achieve management of the storage card.

[0053] Further, the BMC mount instruction may be an instruction generated based on the mount operation of the management image in the remote management interface of the BMC. The BMC and the server host are connected via the first USB interface. Figure 1 , the mounting instruction is sent to the server host through the first USB interface via the bridge chip, so as to mount the management image to the server host.

[0054] Step 102: Obtain the status information of the memory card from the server host through a preset network protocol to manage the memory card.

[0055] In an embodiment of the present invention, after the management image is mounted to the server host, the management image can implement a series of management operations such as obtaining status information of the storage card, adding or removing storage cards, etc. based on a pre-compiled program. The obtained status information of the storage card can be recorded, and the BMC can obtain the status information of the storage card by communicating with the management image.

[0056] Specifically, the preset network protocol may be the SNMP protocol, and the BMC and the management image may communicate based on the SNMP protocol to obtain the status information of the storage card. SNMP is a standard protocol for managing network nodes (such as servers, workstations, routers, switches, etc.) in an IP network. It allows network administrators to monitor and control network devices through an NMS (network management system). BMC usually supports the SNMP protocol, so the server hardware, including the status and performance of the storage card, may be remotely managed and monitored through the SNMP protocol.

[0057] Furthermore, although the SNMP protocol itself is based on an IP network, the BMC can be connected to other parts of the server through a USB interface, such as a USB network adapter. In this case, the USB network adapter can convert USB signals into IP network signals, thereby enabling the BMC to communicate with the management image through the IP network.

[0058] The method of the present application sets a management image in the BMC and mounts the management image on the server host side, so that the management image can manage the storage card on the server and obtain the status information of the storage card. The BMC obtains the status information of the storage card by communicating with the management image mounted on the server host side to manage the storage card. The method of the present application does not require technical support from the storage card manufacturer. The management of the storage card on the server can be conveniently achieved by mounting the management image based on the BMC, thereby improving the convenience of storage card management and reducing the complexity of storage card management.

[0059] Optionally, the BMC is connected to the server host via a second USB interface, and step 102 includes:

[0060] Sub-step 1021: convert the second USB interface into a network interface.

[0061] Optionally, sub-step 1021 includes:

[0062] Sub-step 10211, converting the second USB interface into a network interface via a USB to network driver.

[0063] In the embodiment of the present invention, with respect to sub-step 1021 and sub-step 10211, the second USB interface may be converted into a network interface via a USB-to-network driver to implement communication between the BMC and the management image.

[0064] Specifically, the second USB interface can be converted into a network interface by using a USB to network driver: using a USB Ethernet adapter. The second USB interface is converted into an Ethernet network interface so that the USB device can be connected through the network. The USB device is connected to the USB interface of the USB Ethernet adapter, and then the Ethernet interface of the adapter is connected to a router or switch in the local area network. After installing relevant drivers or software on other devices in the local area network, they can be connected to the network for data transmission and information exchange.

[0065] Sub-step 1022: acquiring the status information of the storage card from the management image of the server host based on the network interface and a preset network protocol.

[0066] In the embodiment of the present invention, for sub-step 1022, based on the network interface, the BMC and the management image on the server host can communicate based on the SNMP (Simple Network Management Protocol) protocol to obtain the status information of the storage card.

[0067] Specifically, SNMP is a protocol for network device management. BMC can communicate with the server through the SNMP protocol to obtain and monitor the server's hardware information, such as CPU usage, memory usage, storage status, etc., as well as the status information of the storage card obtained in this application.

[0068] Optionally, the preset network protocol is SNMP protocol, and sub-step 1022 includes:

[0069] Sub-step 10221, sending a request instruction to the server host based on the network interface; the request instruction is an instruction based on the SNMP protocol,

[0070] Sub-step 10222: receiving the status information of the memory card returned by the management image of the server host based on the request instruction.

[0071] In the embodiment of the present invention, for sub-steps 10221 and 10222, the management image mounted on the server host side can save the obtained result after obtaining the status information of the storage card, and the BMC can send a request instruction to the server host side based on the network interface, and the request instruction is an instruction based on the SNMP protocol, and the request instruction is an instruction for obtaining the status information of the storage card. After receiving the request instruction, the server host side transmits the status information of the storage card corresponding to the request instruction to the BMC based on the SNMP protocol and the network interface, so as to realize the management of the storage card based on the BMC.

[0072] The method of the present application sets a small system image, namely, a management image, in the BMC. When there is no system on the host side, the system image can be used as an agent and the BMC to manage the storage card and related devices on the storage card through the USB (hardware link) SNMP protocol, thereby solving the problem in the related art that the management of the storage card depends on the source code release of the storage card manufacturer, resulting in the inability to conveniently implement the storage card management.

[0073] Optionally, the method further comprises:

[0074] Step 103: In response to the mount operation performed on the remote management page of the BMC, a mount instruction for the management image is generated.

[0075] In an embodiment of the present invention, the remote management page of the BMC may include a login management interface, and the user enters a user name and password in the login management interface, and after verification, enters the mounting operation of the management image. Specifically, the management image may be an ISO file, and the mounting operation may be an operation of selecting the management image on the remote management page through the virtual media function of the BMC, and mounting it to the server host end, generating a mount instruction based on the mount operation, and transmitting the mount instruction to the server host end through the first USB interface, so as to achieve mounting the management image to the server host end.

[0076] Optionally, after step 101, the method further includes:

[0077] Step 104, obtaining the running status of the BMC terminal service;

[0078] Step 105: When there is no error in the running state, determine that the management image is mounted successfully.

[0079] In the embodiment of the present invention, for step 104 and step 105, after the operation of mounting the management image to the server host is performed, it can be further determined whether the management image is mounted successfully. For example, the running status of the BMC terminal service can be obtained. If there is no error in the running status, it is determined that the management image is mounted successfully. After the mounting is successful, the subsequent acquisition of the status information of the storage card based on the management image and the communication with the management image through the network interface and the SNMP protocol can be continued to implement the relevant technical means of BMC management of the storage card.

[0080] Optionally, the management image is pre-set in the BMC and is used to obtain status information of a storage card on the server; the storage card includes an array card and a pass-through card.

[0081] In an embodiment of the present invention, a management image may be pre-set in the BMC, and the management image may design corresponding codes based on actual management requirements. For example, the management image may be a program for implementing a series of functions supported by a storage card, such as obtaining various information of the storage card, operating storage devices, adding or removing raid cards, etc. The embodiment of the present application is not limited here.

[0082] The storage card in this application can be an array card (RAID controller, RAID card), a pass-through card (Host Bus Adapter, host bus adapter), etc. In addition, the management image can also be the management of other PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) card images. The mounting method and the communication method with the BMC are similar to the above-mentioned management of the storage card in this application, and will not be repeated here.

[0083] refer to Figure 3 , Figure 3 Another method for managing a memory card based on a BMC provided by the present application is shown, comprising:

[0084] Step S1: Enter the memory card management mode.

[0085] In the embodiment of the present application, the memory card management mode is entered by clicking a designated function button on the BMC web remote management page.

[0086] Step S2: Memory card management mode.

[0087] In the embodiment of the present application, user authentication is performed on the BMC web remote management page to enter the memory card management mode. If the memory card management mode has been entered, step S7 can be entered to obtain the current memory card status through the SNMP protocol.

[0088] Step S3: Perform storage card proxy mounting (through the first USB interface).

[0089] In the embodiment of the present application, the memory card agent and the management image mentioned above in the present application communicate with the BMC as an agent, so that the BMC can manage the memory card. The agent mounting method is realized through the Virtual Media function of the BMC remote management. In terms of hardware, data transmission and communication are realized through the USB connection between the first USB interface of the BMC chip and the bridge chip.

[0090] Specifically, the BMC Virtual Media service is a function of the BMC that allows users to remotely access and operate the server's virtual CD-ROM drive and virtual floppy drive through the BMC. This allows server administrators to remotely install operating systems, load files, or perform other operations that require CD-ROM drives or floppy drives without physical access to the server. Therefore, the management image is mounted to the server through the BMC Virtual Media Service. After the server host is restarted through the management image, the management image is used to obtain the status information of the storage card to implement the management of the storage card.

[0091] Step S4: Mounting is successful.

[0092] In an embodiment of the present application, after executing the operation of mounting the management image to the server host, it is possible to further determine whether the management image is mounted successfully. For example, the running status of the BMC terminal service can be obtained. If there is no error in the running status, it is determined that the management image is mounted successfully. After the mounting is successful, the subsequent acquisition of the status information of the storage card based on the management image, and the communication with the management image through the network interface and the SNMP protocol to implement the relevant technical means of BMC management of the storage card can be continued. If the management image is not mounted successfully, return to the previous step, that is, step S4, and continue to perform the operation of mounting the management image.

[0093] Step S5, restart the system and enter the memory card management agent.

[0094] In the embodiment of the present application, after the management image is successfully mounted to the server, the server can identify the image file as a bootable device, thereby allowing the user to start or install the operating system from the image file when remotely managing the server through the BMC. The server host restarts through the management image, enters the storage card management agent, obtains the status information of the storage card through the management image, and realizes the management of the storage card.

[0095] Step S6, managing the memory card via the SNMP protocol (via the second USB interface).

[0096] In the embodiment of the present application, the second USB interface can be converted into a network interface through a USB to network driver to realize communication between the BMC and the management image. For example, the management image can manage a series of functions supported by the memory card, such as obtaining various information of the memory card, operating the storage device, adding and removing the raid card, etc.

[0097] Step S7, obtaining the current memory card status (through the second USB interface) through the SNMP protocol.

[0098] In the embodiment of the present application, the management image mounted on the server host can save the obtained result after obtaining the status information of the storage card, and the BMC can send a request instruction to the server host based on the network interface, and the request instruction is an instruction based on the SNMP protocol, and the request instruction is an instruction for obtaining the status information of the storage card. After receiving the request instruction, the server host transmits the status information of the storage card corresponding to the request instruction to the BMC based on the SNMP protocol and the second USB interface, so as to realize the management of the storage card based on the BMC.

[0099] Step S8: Management successful.

[0100] In the embodiment of the present application, the management image successfully obtains the status information of the storage card, and the BMC communicates with the management image through the second USB interface to obtain the status information of the storage card, which means that the management of the storage card is successful.

[0101] That is, the above method of the present application sets a small system image, namely, a management image, in the BMC. When there is no system on the host side, this system image can be used as an agent and the BMC to manage the memory card and related devices on the memory card through the USB (hardware link) SNMP protocol, thereby solving the problem in the related art that the management of the memory card depends on the source code release of the memory card manufacturer, resulting in the inability to conveniently implement the memory card management.

[0102] In summary, in the embodiment of the present application, in response to the mounting instruction of the BMC, the management image in the BMC is mounted to the server host side, so that the server host side can start through the management image and obtain the status information of the storage card; the status information of the storage card is obtained from the server host side through a preset network protocol to achieve the management of the storage card. The method of the present application sets a management image in the BMC, mounts the management image on the server host side, so that the management image can manage the storage card on the server and obtain the status information of the storage card. The BMC obtains the status information of the storage card by communicating with the management image mounted on the server host side to achieve the management of the storage card. The method of the present application does not require the storage card manufacturer to provide technical support. The management of the storage card on the server can be conveniently achieved through the management image mounting method based on the BMC, which improves the convenience of storage card management and reduces the complexity of storage card management.

[0103] Figure 4 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0104] Reference Figure 4 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0105] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0106] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0107] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0108] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0109] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0110] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0111] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0112] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0113] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the methods provided in the embodiments of the present application.

[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0115] Figure 5is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Figure 5 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the method provided in the embodiment of the present application.

[0116] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0117] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method when executed by a processor.

[0118] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0119] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for managing a memory card based on BMC, characterized in that: The method comprises: In response to a mount instruction of the BMC, the management image in the BMC is mounted to the server host, so that the server host can start up through the management image and obtain the status information of the memory card; The status information of the memory card is obtained from the server host through a preset network protocol to achieve management of the memory card.

2. The method according to claim 1, characterized in that The BMC is connected to the server host via a first USB interface, and the step of responding to a mount instruction of the BMC to mount the management image in the BMC to the server host includes: In response to the mounting instruction of the BMC, the management image is mounted to the server host end based on the first USB interface through the virtual media service of the BMC.

3. The method according to claim 2, characterized in that The method further comprises: In response to a mount operation performed on the remote management page of the BMC, a mount instruction for the management image is generated.

4. The method according to claim 1, characterized in that: The BMC is connected to the server host via a second USB interface, and the obtaining of the status information of the memory card from the server host via a preset network protocol includes: Convert the second USB interface into a network interface; The status information of the storage card is obtained from the management image of the server host based on the network interface and a preset network protocol.

5. The method according to claim 4, characterized in that The preset network protocol is the SNMP protocol, and the acquiring the status information of the storage card from the management mirror of the server host based on the network interface and the preset network protocol includes: Sending a request instruction to the server host based on the network interface; the request instruction is an instruction based on the SNMP protocol, The management image of the server host receives the status information of the memory card returned by the request instruction.

6. The method according to claim 4, characterized in that The converting the second USB interface into a network interface comprises: The second USB interface is converted into a network interface through a USB to network driver.

7. The method according to claim 1, characterized in that After the management image in the BMC is mounted to the server host, the method further includes: Get the running status of BMC terminal service; When there is no error in the running state, it is determined that the management image is mounted successfully.

8. The method according to claim 1, characterized in that: The management image is pre-set in the BMC and is used to obtain status information of the storage card on the server; The storage card includes an array card and a pass-through card.

9. An electronic device, characterized in that: include: processor; as well as The memory stores one or more programs, and when the programs are executed by the processor, the processor performs the following operations: In response to a mount instruction of the BMC, the management image in the BMC is mounted to the server host, so that the server host can start up through the management image and obtain the status information of the memory card; The status information of the memory card is obtained from the server host through a preset network protocol to achieve management of the memory card.

10. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of method claims 1-7.

11. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.