File transfer methods, devices, electronic devices, and readable storage media

By using the Baseboard Management Controller (BMC) to transfer files between servers and personal computers, the problem of secure transmission of target files is solved, transmission efficiency and security are improved, network resource consumption is reduced, and it is compatible with different operating systems.

CN116546004BActive Publication Date: 2025-10-31INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310551455.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2025-10-31
Estimated Expiration
2043-05-16

AI Technical Summary

Technical Problem

In existing technologies, it is difficult for administrators to securely transfer target files from servers to personal computers, which presents security and efficiency issues.

Method used

The Baseboard Management Controller (BMC) receives file transfer instructions from the personal computer, sends file write instructions to the server's controller, stores the target file in a specified path on the server, and sends the file to the BMC via a hardware transmission channel. The BMC then sends the file to the personal computer, ensuring that only authorized computers can receive the file.

Benefits of technology

It enables secure transmission of target files from the server to personal computers, reduces the consumption of server network resources, improves transmission efficiency and versatility, and avoids transmission problems caused by differences in operating system versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116546004B_ABST
    Figure CN116546004B_ABST
Patent Text Reader

Abstract

This application provides a file transfer method, apparatus, electronic device, and readable storage medium. The method is applied to a baseboard management controller in a server. The method includes: receiving a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from files stored on the server when logged into the baseboard management controller; responding to the file transfer instruction, sending a file write instruction to the controller of the server; the file write instruction instructs the controller to store the target file in a first specified path on the server and send the target file to the baseboard management controller from the first specified path; receiving the target file sent by the controller, and, if the personal computer has file access permissions, sending the target file to the personal computer. This method allows for secure transfer of the target file from the server to the personal computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and in particular relates to a file transfer method, apparatus, electronic device and readable storage medium. Background Technology

[0002] Servers typically operate in remote data centers. Server administrators can log into the server's Baseboard Management Controller (BMC) using a personal computer (PC). They can then remotely access the server's keyboard, monitor, and mouse via the BMC's Keyboard Video Mouse (KVM) module, allowing administrators to operate the server's keyboard and mouse from their PCs, thereby viewing and managing the server.

[0003] In the prior art, after an administrator logs into the baseboard management controller on the server via a personal computer, they can open and view files on the server through the remote control management module running on the baseboard management controller. However, for some target files, the administrator needs to transfer the target files from the server to the personal computer. Therefore, how to securely transfer target files from the server to the personal computer has become an urgent technical problem to be solved. Summary of the Invention

[0004] This application provides a file transfer method, apparatus, electronic device, and readable storage medium, which can solve the technical problem of securely transferring target files from a server to a personal computer.

[0005] To solve the above-mentioned technical problems, this application is implemented as follows:

[0006] In a first aspect, embodiments of this application propose a file transfer method applied to a baseboard management controller in a server, the method comprising:

[0007] The system receives a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller.

[0008] In response to the file transfer instruction, a file write instruction is sent to the controller of the server; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and to send the target file to the baseboard management controller from the first specified path;

[0009] The system receives the target file sent by the controller and, if the personal computer has file access permissions, sends the target file to the personal computer.

[0010] Optionally, the server further includes a write buffer, the baseboard management controller includes a read buffer and a second specified path, the write buffer and the read buffer are connected via a bus, and receiving the target file sent by the controller includes:

[0011] The controller receives the target file sent to the read buffer from the first specified path; the file write instruction is specifically used to instruct the controller to obtain the target file from the first specified path, write the target file to the write buffer, and send the target file in the write buffer to the read buffer via the bus;

[0012] Store the target file in the second specified path;

[0013] Sending the target file to the personal computer includes:

[0014] The target file is obtained from the second specified path and sent to the personal computer.

[0015] Optionally, before sending the target file to the personal computer, the method further includes:

[0016] Send a path setting instruction to the personal computer; the path setting instruction is used to instruct the personal computer to display a prompt message, the prompt message is used to prompt the user to set a target storage path, the target storage path is the storage path of the target file in the personal computer;

[0017] Receive the target storage path returned by the personal computer in response to the path setting instruction;

[0018] Sending the target file to the personal computer includes:

[0019] The target file is sent to the target storage path for storage.

[0020] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. Sending the path setting command to the personal computer includes:

[0021] The server sends the path setting instruction to the personal computer; the personal computer, when logged into the baseboard management controller, responds to the path setting instruction by displaying the prompt message through the client.

[0022] Optionally, receiving the target storage path returned by the personal computer in response to the path setting instruction includes:

[0023] Receive a storage instruction sent by the personal computer; the storage instruction is generated by the personal computer through the client, and the storage instruction includes the target storage path;

[0024] Sending the target file to the target storage path for storage includes:

[0025] In response to the storage instruction, the target storage path is obtained from the storage instruction;

[0026] The target file is sent to the target storage path for storage.

[0027] Secondly, embodiments of this application propose a file transfer method applied to a personal computer, the method comprising:

[0028] In the case of a baseboard management controller that logs into the server, a file transfer instruction is generated based on the operation of specifying a target file from the files stored on the server;

[0029] The system sends the file transfer instruction to the baseboard management controller; the baseboard management controller is configured to receive the file transfer instruction, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and, if the personal computer has file access permissions, send the target file to the personal computer; the file write instruction is configured to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path;

[0030] Receive the target file sent by the baseboard management controller.

[0031] Optionally, the server further includes a write buffer, the baseboard management controller includes a read buffer and a second specified path, the write buffer and the read buffer are connected via a bus, and receiving the target file sent by the baseboard management controller includes:

[0032] The substrate management controller receives the target file obtained and sent from the second designated path by the substrate management controller; the substrate management controller is also configured to receive the target file sent from the first designated path to the read buffer by the controller, and store the target file in the second designated path; the file write instruction is specifically configured to instruct the controller to obtain the target file from the first designated path, write the target file into the write buffer, and send the target file in the write buffer to the read buffer via the bus.

[0033] Optionally, before receiving the target file sent by the substrate management controller, the method further includes:

[0034] Receive the path setting instruction sent by the baseboard management controller;

[0035] In response to the path setting instruction, a prompt message is displayed; the prompt message is used to prompt the user to set a target storage path, which is the storage path of the target file on the personal computer.

[0036] The target storage path is returned to the baseboard management controller; the baseboard management controller is also configured to receive the target storage path and send the target file to the target storage path for storage.

[0037] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. Receiving the path setting instruction sent by the baseboard management controller includes:

[0038] When logged into the baseboard management controller, in response to the path setting instruction, the client displays the prompt message; the baseboard management controller is also used to send the path setting instruction to the personal computer through the server.

[0039] Optionally, returning the target storage path to the substrate management controller includes:

[0040] The client generates a storage instruction; the storage instruction includes the target storage path.

[0041] The storage instruction is sent to the substrate management controller; the substrate management controller is further configured to, in response to the storage instruction, obtain the target storage path from the storage instruction.

[0042] Thirdly, embodiments of this application provide a file transfer device applied to a baseboard management controller in a server, the device comprising:

[0043] The first receiving module is used to receive a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller.

[0044] The first sending module is configured to send a file write instruction to the controller of the server in response to the file transfer instruction; the file write instruction is configured to instruct the controller to store the target file in a first specified path in the server and send the target file to the baseboard management controller from the first specified path;

[0045] The execution module is used to receive the target file sent by the controller, and, if the personal computer has file access permissions, send the target file to the personal computer.

[0046] Fourthly, embodiments of this application provide a file transfer device applied to a personal computer, the device comprising:

[0047] The generation module is used to generate a file transfer instruction based on an operation that specifies a target file from a file stored on the server, in the case of a baseboard management controller that is logged into the server.

[0048] The second sending module is used to send the file transfer instruction to the baseboard management controller; the baseboard management controller is used to receive the file transfer instruction, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and send the target file to the personal computer if the personal computer has file access permissions; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path;

[0049] The second receiving module is used to receive the target file sent by the baseboard management controller.

[0050] Fifthly, embodiments of this application provide an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the file transfer method as described in the first or second aspect.

[0051] In a sixth aspect, embodiments of this application provide a readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the file transfer method as described in the first or second aspect.

[0052] In this embodiment, since the target file is specified by the personal computer from the files stored on the server when it logs into the baseboard management controller, the target file is a file that needs to be transferred from the server to the personal computer. The baseboard management controller receives a file transfer instruction for the target file sent by the personal computer, and in response to the file transfer instruction, sends a file write instruction to the controller of the server. The file write instruction can conveniently instruct the controller to store the target file in the first specified path on the server and send the target file to the baseboard management controller from the first specified path. The baseboard management controller receives the target file sent by the controller, so that the target file can be transferred to the baseboard management controller first. Furthermore, the baseboard management controller sends the target file to the personal computer, thereby meeting the administrator's need to transfer the target file from the server to the personal computer. Meanwhile, the target file is sent based on the baseboard management controller. Since the baseboard management controller monitors the operation on the server side, specifically, when a file sending operation is required, the baseboard management controller will check whether the personal computer that is the file recipient has the file access permission for the target file. Only when the personal computer has the file access permission, that is, when the operation of sending the target file to the personal computer is allowed, will the target file be sent to the personal computer. This can ensure the security of transferring the target file from the server to the personal computer to a certain extent. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a flowchart illustrating the steps of a file transfer method provided in an embodiment of this application;

[0055] Figure 2 This is a schematic diagram illustrating the principle of the file transfer method provided in the embodiments of this application;

[0056] Figure 3 This is a schematic diagram illustrating the process of transferring the target file to the BMC according to an embodiment of this application;

[0057] Figure 4 This is a schematic diagram illustrating the process of transferring the target file from the BMC to the administrator's PC, as provided in this application embodiment.

[0058] Figure 5 This is a flowchart of another file transfer method provided in an embodiment of this application;

[0059] Figure 6 This is a structural diagram of a file transfer device provided in an embodiment of this application;

[0060] Figure 7 This is a structural diagram of another file transfer device provided in the embodiments of this application;

[0061] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0062] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0063] Figure 1 This is a flowchart illustrating the steps of a file transfer method provided in an embodiment of this application, as follows: Figure 1 As shown, this method is applied to a baseboard management controller in a server, and the method includes:

[0064] Step 101: Receive a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller.

[0065] In this embodiment, the Baseboard Management Controller (BMC) can be a chip integrated on the server's motherboard. The BMC has a small operating system independent of the server system and an independent Internet Protocol (IP) address. A personal computer (PC) can use a browser to access the BMC's IP address and log in to the BMC to remotely manage, monitor, install, and restart the server.

[0066] In this embodiment, the baseboard management controller may include a Keyboard Video Mouse (KVM) module, i.e., a remote control management module. The KVM includes a client and a server. A personal computer logs into the baseboard management controller via a browser and can view the display images transmitted from the server through the KVM client. The KVM client also allows remote access to the server's keyboard and mouse. The KVM server running on the BMC responds to the keyboard and mouse operations of the personal computer in the KVM client, controlling the server's keyboard and mouse. This allows the personal computer to view and manage the server through the baseboard management controller.

[0067] In this embodiment, when a personal computer is logged into the baseboard management controller, it can view the display image transmitted from the server through the KVM client of the baseboard management controller. The personal computer can then use its keyboard and mouse to perform operations on the display image in the KVM client to specify a target file. Furthermore, the personal computer can generate file transfer instructions based on the keyboard and mouse operations for specifying the target file and send these instructions to the baseboard management controller. For example, if the personal computer is logged into the baseboard management controller through a browser, it can send file transfer instructions to the baseboard management controller via HyperText Transfer Protocol (HTTP). This is merely an example and is not intended to limit the scope of this embodiment. Specifically, the keyboard and mouse operations for specifying a target file can involve moving the target file to a pre-established specified path on the server within the KVM client, i.e., specifying the target file from files stored on the server.

[0068] Step 102: In response to the file transfer instruction, a file write instruction is sent to the controller of the server; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server and send the target file to the baseboard management controller from the first specified path.

[0069] In this embodiment, the baseboard management controller receives a file transfer instruction. The KVM server running on the baseboard management controller can respond to the file transfer instruction by generating a file write instruction based on keyboard and mouse operations specifying the target file included in the file transfer instruction. Then, the baseboard management controller sends the file write instruction to the server's controller. For example, the baseboard management controller can receive the file transfer instruction via Hypertext Transfer Protocol (HTTP), and the KVM server running on the baseboard management controller can generate a file write instruction in response to the file transfer instruction. The baseboard management controller may include a high-speed serial computer extended bus standard (Peripheral Component Interconnect (PCIE) interface, and the baseboard management controller can send the file write instruction to the server's controller through the PCIE interface.

[0070] In this embodiment, the first specified path on the server can be a file storage path specifically established in advance on the server for storing the target files. For example, the server includes a storage path / var / log / for storing Linux system log files, and a hostfile folder can be added under / var / log / to store the target files of this embodiment; that is, the first specified path can be / var / log / hostfile. This is merely an example, and this embodiment does not impose any limitations on it.

[0071] In this embodiment, the server's controller receives a file write command from the baseboard management controller. Responding to the file write command, and based on the keyboard and mouse operations specifying the target file included in the file write command, the controller stores the target file in a first designated path on the server. Specifically, the controller can be the server's Central Processing Unit (CPU). The CPU can receive the file write command via a PCIe interface. In response to the file write command, the CPU writes the encoded values ​​of the keyboard and mouse operations in the file write command to the corresponding registers, then executes the keyboard and mouse operations to retrieve the target file from its original storage path, and finally stores the target file in the first designated path.

[0072] In this embodiment, when the server controller stores a new target file in the first designated path, it can execute a pre-set command script to send the target file from the first designated path to the baseboard management controller via a hardware transmission channel with the baseboard management controller. For example, the hardware transmission channel can be a PCIe channel between the server's CPU and the baseboard management controller (BMC). The CPU sends the target file to the baseboard management controller via the PCIe interface, and the target file is transmitted to the baseboard management controller via the PCIe bus. The baseboard management controller can receive the target file via the PCIe interface, thereby enabling the CPU to send the target file from the first designated path to the baseboard management controller via the PCIe channel.

[0073] Step 103: Receive the target file sent by the controller, and if the personal computer has file access permissions, send the target file to the personal computer.

[0074] In this embodiment, file access permission refers to the permission to access a target file. For example, a device identifier of a personal computer with corresponding file access permission can be pre-associated with a file on the server. For example, the server can receive the device identifier set by the user for a file when generating it or receiving a file uploaded by the user. Then, the received device identifier is associated with the file. Accordingly, in this embodiment, the BMC can obtain the device identifier associated with the target file. If the device identifier of the personal computer is the same as the device identifier associated with the target file, it determines that the personal computer has file access permission, and the operation of sending the target file to the personal computer is allowed. Conversely, if the device identifier is different, it can determine that the personal computer does not have file access permission, the operation of sending the target file to the personal computer is not allowed, and a rejection message can be returned to the personal computer. The file transfer instruction sent by the personal computer can carry both a file identifier and a device identifier. The BMC can extract the file identifier and device identifier from them. When sending a file write instruction to the server's controller, the file identifier can be carried in the file write instruction so that the controller can determine the target file based on the file identifier carried in the file write instruction. Furthermore, the BMC can determine whether the personal computer has file access permission based on the device identifier extracted from the file transfer instruction.

[0075] In this embodiment, the Baseboard Management Controller (BMC) can receive the target file sent by the controller through a hardware transmission channel with the server's controller. Then, if the personal computer has file access permissions, the BMC can send the target file to the personal computer through a network transmission channel. For example, the BMC can receive the target file sent by the controller through a PCIe interface. If the personal computer has file access permissions, the BMC can send the target file to the personal computer via Hypertext Transfer Protocol (HTTP). Furthermore, the personal computer can log in to the BMC through a browser and receive the target file sent by the BMC via HTTP, thereby realizing the transfer of the target file from the server to the personal computer.

[0076] In this embodiment, since the target file is specified by the personal computer from the files stored on the server when it logs into the baseboard management controller, the target file is a file that needs to be transferred from the server to the personal computer. The baseboard management controller receives a file transfer instruction for the target file sent by the personal computer, and in response to the file transfer instruction, sends a file write instruction to the controller of the server. The file write instruction can conveniently instruct the controller to store the target file in the first specified path on the server and send the target file to the baseboard management controller from the first specified path. The baseboard management controller receives the target file sent by the controller, so that the target file can be transferred to the baseboard management controller first. Furthermore, the baseboard management controller sends the target file to the personal computer, thereby meeting the administrator's need to transfer the target file from the server to the personal computer. Meanwhile, the target file is sent based on the baseboard management controller. Since the baseboard management controller monitors the operation on the server side, specifically, when a file sending operation is required, the baseboard management controller will check whether the personal computer that is the file recipient has the file access permission for the target file. Only when the personal computer has the file access permission, that is, when the operation of sending the target file to the personal computer is allowed, will the target file be sent to the personal computer. This can ensure the security of transferring the target file from the server to the personal computer to a certain extent.

[0077] Optionally, in this embodiment, the baseboard management controller can also generate a target log after sending the target file to the personal computer. This target log can be used to characterize the operation of sending the target file from the server to the personal computer, and can record the sending time, file information of the target file, server device information, and personal computer device information. In this way, generating a target log facilitates subsequent inspection of server-side operations.

[0078] In related technologies, target files can be directly downloaded from a server to a personal computer (PC). However, directly downloading target files without the intervention of the Baseboard Management Controller (BMC) is insecure without the BMC's control. The BMC monitors operations on the server, such as logging operations and determining permission status. Therefore, directly downloading target files without the BMC presents a security risk. In this embodiment, the BMC only sends the target file to the PC if the PC has file access permissions—that is, if sending the target file to the PC is permitted. Simultaneously, a target file log is generated to record the file transfer operation, thus ensuring the security of file transmission.

[0079] It should be noted that when a personal computer is logged into the Baseboard Management Controller (BMC), the BMC's Keyboard Video Mouse Management Module (KVM) transmits the server's display image from the KVM server to the KVM client via Hypertext Transfer Protocol (HTTP). This allows the personal computer to open and view files on the server, such as log image files, through the KVM client. However, due to the limited resolution of the image transmitted by KVM, the content of some complex files on the server may not be clearly visible through the KVM client. In this embodiment, the server administrator can log in to the server's baseboard management controller via a personal computer, specify a target file from the files stored on the server using a KVM client, and send a file transfer instruction to the baseboard management controller. The baseboard management controller receives and responds to the file transfer instruction, sending a file write instruction to the server's controller, instructing the controller to store the target file in a first specified path on the server, and then sending the target file from the first specified path to the baseboard management controller. Furthermore, the baseboard management controller receives the target file sent by the controller and sends the target file to the personal computer. This allows the server administrator to easily open and view the target file directly on the personal computer, or perform other operations on the target file, thereby improving the practicality of the file transfer method of this application to a certain extent.

[0080] Optionally, the server further includes a write buffer, and the baseboard management controller includes a read buffer and a second specified path. The write buffer and the read buffer are connected via a bus. Step 103 may include the following steps:

[0081] Step 1031: Receive the target file sent by the controller from the first specified path to the read buffer; the file write instruction is specifically used to instruct the controller to obtain the target file from the first specified path, write the target file to the write buffer, and send the target file in the write buffer to the read buffer via the bus.

[0082] Step 1032: Store the target file in the second specified path.

[0083] Step 1033: Obtain the target file from the second specified path and send the target file to the personal computer.

[0084] In this embodiment, the second specified path can be a file storage path specifically designed for storing target files, pre-established in the baseboard management controller. For example, the file storage path / var / log / hostfile can be created in the baseboard management controller as the second specified path.

[0085] In this embodiment of the application, a write buffer can be set in advance on the server and a read buffer can be set in the baseboard management controller. The write buffer and the read buffer are connected by a bus, such as a PCIe bus.

[0086] Optionally, the server may be equipped with a Direct Memory Access (DMA) controller. Understandably, a DMA controller can copy data from one address space to another, providing high-speed data transfer between peripherals and memory or between memory devices.

[0087] In this embodiment, the server controller can initialize file transfer operations for the DMA controller, which then sends the target file from the write buffer to the read buffer. Specifically, in response to a file write command, the server controller retrieves the target file from a first specified path and writes it into the write buffer. The DMA controller can then send the target file from the write buffer to the read buffer via the bus. This reduces the resource consumption of the server controller and improves the practicality of the file transfer method described in this application.

[0088] In this embodiment, the baseboard management controller can read the target file from the read buffer and then store the target file in a second specified path. Further, when the baseboard management controller sends the target file to a personal computer, it can retrieve the target file from the second specified path and then send the target file to the personal computer via a network transmission channel with the personal computer. For example, if the personal computer logs into the baseboard management controller via a browser, the baseboard management controller can send the target file to the personal computer via Hypertext Transfer Protocol (HTTP).

[0089] In this embodiment, the baseboard management controller instructs the server controller to retrieve the target file from a first designated path via a file write command. The target file can be conveniently transferred to the baseboard management controller via the bus connecting the write buffer and the read buffer. This hardware-based transfer of the target file to the baseboard management controller avoids consuming server network resources, improving the practicality of the file transfer method. Furthermore, the baseboard management controller can store the target file in a second designated path. When sending the target file to a personal computer, it can conveniently retrieve the target file from the second designated path and send it to the personal computer, thus meeting the administrator's need to transfer target files from the server to the personal computer.

[0090] Optionally, before sending the target file to the personal computer, the method further includes:

[0091] Step 201: Send a path setting instruction to the personal computer; the path setting instruction is used to instruct the personal computer to display a prompt message, the prompt message is used to prompt the user to set a target storage path, the target storage path is the storage path of the target file on the personal computer.

[0092] Step 202: Receive the target storage path returned by the personal computer in response to the path setting instruction.

[0093] Step 103 may include the following steps:

[0094] Step 1034: Send the target file to the target storage path for storage.

[0095] In this embodiment of the application, after the baseboard management controller receives the target file sent by the controller, the upper-layer application of the baseboard management controller can notify the KVM server of the baseboard management controller through an application notification message (DBUS message) that the target file has arrived at the baseboard management controller. Furthermore, the baseboard management controller can send a path setting instruction to the personal computer through the KVM server.

[0096] In this embodiment, when a personal computer logs into the baseboard management controller via a browser, it can receive a path setting command sent by the baseboard management controller through the KVM server via a KVM client. In response to the path setting command, a prompt message is displayed on the personal computer's browser page. The content of the prompt message may be "The file has arrived at the baseboard management controller; please set the file's storage path." This is merely an example, and this embodiment does not impose any limitations.

[0097] In this embodiment, the personal computer receives the storage path set by the user as the target storage path and returns the target storage path to the baseboard management controller. The baseboard management controller receives the target storage path returned by the personal computer and can directly send the target file to the target storage path for storage when sending the target file. Specifically, the baseboard management controller can send the target file to the target storage path set by the administrator on the personal computer via Hypertext Transfer Protocol (HTTP), facilitating the administrator to retrieve the target file from the target storage path, view it, or perform other processing on it. This embodiment does not limit this aspect.

[0098] In this embodiment, the baseboard management controller sends a path setting instruction to the personal computer. Since the path setting instruction is used to instruct the personal computer to display a prompt message, and the prompt message is used to prompt the user to set the target storage path, the administrator can easily set the target storage path corresponding to the target file on the personal computer. Furthermore, the baseboard management controller receives the target storage path returned by the personal computer in response to the path setting instruction and sends the target file to the target storage path for storage. In this way, the administrator can easily obtain the target file from the target storage path, which improves the practicality of the file transfer method of this embodiment to a certain extent.

[0099] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. Step 201 may include the following steps:

[0100] Step 2011: The server sends the path setting instruction to the personal computer; the personal computer, when logged into the baseboard management controller, responds to the path setting instruction by displaying the prompt message through the client.

[0101] In this embodiment, the baseboard management controller has a server running a remote control management module, namely a keyboard, video and mouse management module (KVM). When a personal computer logs into the baseboard management controller through a browser, the personal computer has a client running a remote control management module, namely a keyboard, video and mouse management module (KVM).

[0102] In this embodiment, the baseboard management controller can send path setting instructions to a personal computer via a KVM server. Specifically, the baseboard management controller can send the path setting instructions from the KVM server to the KVM client via Hypertext Transfer Protocol (HTTP). When the personal computer logs into the baseboard management controller through a browser, it can receive the path setting instructions through the KVM client and, in response to the path setting instructions, display a prompt message on the browser page of the personal computer.

[0103] In this embodiment, since the baseboard management controller runs a server with a remote control management module and the personal computer runs a client with a remote control management module, the baseboard management controller can send path setting instructions to the personal computer through the server. In this way, when the personal computer is logged into the baseboard management controller, it can respond to the path setting instructions and display prompt messages through the client. This makes it convenient for users, such as server administrators, to view the prompt messages through the client and set the target storage path of the target file according to the instructions in the prompt messages. This can improve the practicality of the file transfer method of this application to a certain extent.

[0104] Optionally, step 202 may include the following steps:

[0105] Step 2021: Receive a storage instruction sent by the personal computer; the storage instruction is generated by the personal computer through the client, and the storage instruction includes the target storage path.

[0106] Step 1034 may include the following steps:

[0107] Step 1034a: In response to the storage instruction, obtain the target storage path from the storage instruction.

[0108] Step 1034b: Send the target file to the target storage path for storage.

[0109] In this embodiment, the client may be equipped with a command-line URL viewer (CURL). The personal computer receives the target storage path set by the user and can add the target storage path to a CURL command through the client's command-line URL viewer, using the CURL command with the target storage path added as the storage instruction. The command-line URL viewer (CURL) supports the Hypertext Transfer Protocol (HTTP).

[0110] In this embodiment, the personal computer can use the Hypertext Transfer Protocol (HTTP) to send storage instructions to the baseboard management controller via a KVM client. The baseboard management controller can receive the storage instructions via the KVM server and respond to the storage instructions by obtaining the target storage path from the storage instructions. Specifically, the target storage path can be obtained by parsing CURL commands.

[0111] In this embodiment, the substrate management controller can directly send the target file to the target storage path for storage. Specifically, the substrate management controller can send the target file to the target storage path via Hypertext Transfer Protocol (HTTP).

[0112] In this embodiment, since the storage instruction is generated by the personal computer through the client and includes the target storage path, the board management controller can easily obtain the target storage path from the storage instruction by receiving the storage instruction sent by the personal computer and responding to the storage instruction. Furthermore, the board management controller sends the target file to the target storage path for storage. In this way, the board management controller can conveniently send the target file to the target storage path for storage under the control of the storage instruction sent by the personal computer, which can improve the transmission efficiency of the file transmission method in this embodiment to a certain extent.

[0113] In related technologies, servers can package and transfer target files needed by administrators to the administrator's personal computer (PC) over a network. For example, the server can execute a file transfer command (secure copy, SCP) to achieve remote to local file transfer operations. However, network file transfer consumes the server's network bandwidth, and differences in operating system versions between the server and the administrator's PC can lead to connection failures. Furthermore, toolkits need to be configured and installed according to the actual situation, resulting in issues such as excessive network resource consumption and poor versatility.

[0114] In this embodiment, the server controller can send the target file from a first designated path on the server to the baseboard management controller via a hardware transmission channel with the baseboard management controller. Specifically, the controller can obtain the target file from the first designated path, write the target file into the server's write buffer, and send the target file in the write buffer to the baseboard management controller's read buffer via the bus connecting the write buffer and the read buffer. Then, if the personal computer has file access permissions, the baseboard management controller can send the target file to the personal computer via Hypertext Transfer Protocol (HTTP). Compared to the server packaging and transmitting the target file needed by the administrator to the administrator's personal computer (PC) via the network, sending the target file to the personal computer directly by the baseboard management controller can reduce the network resource consumption of the server host to a certain extent.

[0115] In addition, in this embodiment, the baseboard management controller runs a server-side remote control management module, namely a Keyboard Video Mouse Management Module (KVM), and the personal computer runs a KVM client. This embodiment can transmit path setting instructions and storage instructions between the baseboard management controller and the personal computer based on the KVM server and client. The baseboard management controller can control the personal computer to return to the target storage path set by the administrator through the path setting instructions. The personal computer can control the baseboard management controller to transfer the target file to the target storage path on the personal computer via Hypertext Transfer Protocol (HTTP) through the storage instructions. This avoids the problem of transmission link failures caused by differences in operating system versions between the server and the administrator's personal computer (PC) in related technologies. The file transfer method of this embodiment can conveniently realize target file transfer based on the server and client of the remote control management module, namely the Keyboard Video Mouse Management Module (KVM), without the need for additional configuration and installation toolkits, and has higher versatility.

[0116] Figure 2 This is a schematic diagram illustrating the principle of the file transfer method provided in the embodiments of this application, such as... Figure 2As shown, the file transfer process in this embodiment includes: the target file is transferred from the storage path of the server managed by the Baseboard Management Controller (BMC) to the BMC via the HOST2BMC transmission channel, and then the BMC transfers the target file to the personal computer (PC) of the IT administrator of the server via Hypertext Transfer Protocol (HTTP). The transfer between the Baseboard Management Controller (BMC) and the target file on the server's storage path can be via PCIe. The BMC's PCIe interface includes a HOST2BMC controller, which is used to transfer the target file via the PCIe channel.

[0117] Figure 3 This is a schematic diagram illustrating the process of transferring the target file to the BMC as provided in the embodiments of this application, such as... Figure 3 As shown, the HOST2BMC controller has a write buffer in the server and a read buffer in the baseboard management controller (BMC). The write buffer and read buffer are connected by a PCIe bus on the HOST2BMC port. The target file is written from the first specified path ( / var / log / hostfile) in the server to the write buffer. The HOST2BMC controller then initiates the DMA controller to transfer the target file from the write buffer to the read buffer via the PCIe bus on the HOST2BMC port. The BMC reads the target file from the read buffer and then stores it in the second specified path ( / var / log / hostfile) within the BMC.

[0118] Figure 4 This is a schematic diagram illustrating the process of transferring the target file from the BMC to the administrator's PC, as provided in the embodiments of this application. Figure 4 As shown, a personal computer (PC) logs into the Baseboard Management Controller (BMC) via a web browser. The administrator sets the target storage path ( / home / myfile) on the PC. The PC adds the user-defined target storage path to the curl command via the KVM client (KVM page). The PC sends the curl command, i.e., the storage instruction, to the BMC via the Redfish interface of the HTTP protocol. The BMC receives the curl command through the KVM server and responds to the curl command by packaging the target file and sending it to the specified location, i.e., sending the target file to the target storage path for storage.

[0119] Figure 5 This is a flowchart of another file transfer method provided in an embodiment of this application, such as... Figure 5 As shown, this method is applied to a personal computer, and the method includes:

[0120] Step 301: In the case of logging into the baseboard management controller of the server, generate a file transfer instruction based on the operation of specifying the target file from the files stored on the server.

[0121] Step 302: Send the file transfer instruction to the baseboard management controller; the baseboard management controller is used to receive the file transfer instruction of the target file, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and send the target file to the personal computer if the personal computer has file access permissions; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path.

[0122] Step 303: Receive the target file sent by the baseboard management controller.

[0123] In this embodiment, when a personal computer is logged into the baseboard management controller, it can view the display screen image transmitted from the server through the KVM client of the baseboard management controller, and perform operations on the display screen image in the KVM client using the keyboard and mouse of the personal computer to specify a target file. In addition, the personal computer can generate a file transfer instruction based on the keyboard and mouse operations on the specified target file, and send the file transfer instruction to the baseboard management controller.

[0124] In this embodiment, the operations performed by the substrate management controller can be referred to the relevant descriptions in steps 101 to 103, which will not be repeated here.

[0125] In this embodiment of the application, when a personal computer logs into the baseboard management controller via a browser, it can receive a target file sent by the baseboard management controller via the Hypertext Transfer Protocol (HTTP), thereby enabling the transfer of the target file from the server to the personal computer.

[0126] In this embodiment, when the baseboard management controller of the login server is involved, a file transfer instruction is generated based on an operation specifying a target file from files stored on the server; the file transfer instruction is sent to the baseboard management controller; the baseboard management controller receives the file transfer instruction for the target file sent by the personal computer, and in response to the file transfer instruction, sends a file write instruction to the controller of the server, and receives the target file sent by the controller and sends the target file to the personal computer; the file write instruction instructs the controller to store the target file in a first specified path on the server and send the target file to the baseboard management controller from the first specified path; and the target file is received from the baseboard management controller. Thus, the target file can be first transferred to the baseboard management controller, and then the baseboard management controller sends the target file to the personal computer, thereby satisfying the administrator's need to transfer the target file from the server to the personal computer.

[0127] Optionally, the server further includes a write buffer, and the baseboard management controller includes a read buffer and a second specified path. The write buffer and the read buffer are connected via a bus. Step 303 may include the following steps:

[0128] Step 3031: Receive the target file obtained and sent by the substrate management controller from the second designated path; the substrate management controller is further configured to receive the target file sent by the controller from the first designated path to the read buffer, and store the target file in the second designated path; the file write instruction is specifically configured to instruct the controller to obtain the target file from the first designated path, write the target file into the write buffer, and send the target file in the write buffer to the read buffer via the bus.

[0129] In this embodiment, when a personal computer logs into the baseboard management controller via a browser, it can receive a target file sent by the baseboard management controller via Hypertext Transfer Protocol (HTTP). The operations performed by the baseboard management controller can be referred to the relevant descriptions in steps 1031 to 1033, and will not be repeated here.

[0130] In this embodiment, the target file is received by the baseboard management controller from the second designated path; the baseboard management controller is also configured to receive the target file sent by the controller from the first designated path to the read buffer, and store the target file in the second designated path; the file write instruction is specifically used to instruct the controller to obtain the target file from the first designated path, write the target file to the write buffer, and send the target file in the write buffer to the read buffer via the bus. Thus, by using hardware transmission to transfer the target file to the baseboard management controller, the network resources of the server can be avoided, improving the practicality of the file transfer method of this application and meeting the administrator's need to transfer target files from the server to a personal computer.

[0131] Optionally, prior to step 303, the method further includes:

[0132] Step 401: Receive the path setting instruction sent by the substrate management controller.

[0133] Step 402: In response to the path setting instruction, a prompt message is displayed; the prompt message is used to prompt the user to set the target storage path, which is the storage path of the target file on the personal computer.

[0134] Step 403: Return the target storage path to the baseboard management controller; the baseboard management controller is also configured to receive the target storage path and send the target file to the target storage path for storage.

[0135] In this embodiment, when a personal computer logs into the baseboard management controller via a browser, it can receive a path setting instruction sent by the baseboard management controller through the KVM server via a KVM client. In response to the path setting instruction, a prompt message is displayed on the personal computer's browser page. The content of the prompt message may be "The file has arrived at the baseboard management controller; please set the file's storage path." This is merely an example, and this embodiment does not impose limitations. The personal computer receives the storage path set by the user as the target storage path and returns the target storage path to the baseboard management controller. The operations performed by the baseboard management controller can be referred to in steps 201-202 and the relevant descriptions in step 1034, and will not be repeated here.

[0136] In this embodiment, the method involves receiving a path setting instruction from the baseboard management controller; displaying a prompt message in response to the path setting instruction; the prompt message prompting the user to set a target storage path, which is the storage path corresponding to the target file on the personal computer; returning the target storage path to the baseboard management controller; the baseboard management controller further being used to send the path setting instruction to the personal computer, receive the target storage path returned by the personal computer in response to the path setting instruction, and store the target file at the target storage path. This allows administrators to easily set the target storage path for a target file on their personal computers and easily retrieve the target file from the target storage path, thus improving the practicality of the file transfer method in this embodiment.

[0137] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. Step 401 may include the following steps:

[0138] Step 4011: When logged into the baseboard management controller, in response to the path setting instruction, the prompt message is displayed through the client; the baseboard management controller is also used to send the path setting instruction to the personal computer through the server.

[0139] In this embodiment, when a personal computer logs into the baseboard management controller via a browser, it can receive path setting instructions through a KVM client and, in response to the path setting instructions, display a prompt message on the personal computer's browser page. The operations performed by the baseboard management controller can be referred to the relevant description in step 2011, and will not be repeated here.

[0140] In this embodiment, when the baseboard management controller is logged in, the client displays the prompt message in response to the path setting instruction; the baseboard management controller is also used to send the path setting instruction to the personal computer via the server. This allows users, such as server administrators, to conveniently view the prompt message through the client and set the target storage path of the target file according to the prompt message's instructions, thus improving the practicality of the file transfer method of this application to some extent.

[0141] Optionally, step 403 may include the following steps:

[0142] Step 4031: Generate a storage instruction through the client; the storage instruction includes the target storage path.

[0143] Step 4032: Send the storage instruction to the substrate management controller; the substrate management controller is further configured to obtain the target storage path from the storage instruction in response to the storage instruction.

[0144] In this embodiment, the client can be equipped with a command-line URL viewer (CURL). The personal computer receives the target storage path set by the user and can add the target storage path to a CURL command through the client's command-line URL viewer, using the CURL command with the target storage path added as the storage instruction. The command-line URL viewer (CURL) supports the Hypertext Transfer Protocol (HTTP). The personal computer can use HTTP to send the storage instruction to the baseboard management controller through the KVM client. The operations performed by the baseboard management controller can be referred to the relevant descriptions in steps 2021 and 1034a-1034b, and will not be repeated here.

[0145] In this embodiment, a storage instruction is generated by the client; the storage instruction includes the target storage path; the storage instruction is sent to the baseboard management controller; the baseboard management controller is further configured to receive the storage instruction sent by the personal computer, and in response to the storage instruction, obtain the target storage path from the storage instruction, and send the target file to the target storage path for storage. In this way, the baseboard management controller can conveniently send the target file to the target storage path for storage under the control of the storage instruction sent by the personal computer, which can improve the transmission efficiency of the file transmission method in this embodiment to a certain extent.

[0146] See Figure 6 This application provides a file transfer device applied to a baseboard management controller in a server. The device 50 includes:

[0147] The first receiving module 501 is used to receive a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller.

[0148] The first sending module 502 is configured to send a file writing instruction to the controller of the server in response to the file transfer instruction; the file writing instruction is configured to instruct the controller to store the target file in a first specified path in the server and send the target file to the baseboard management controller from the first specified path;

[0149] The execution module 503 is used to receive the target file sent by the controller, and, if the personal computer has file access permissions, send the target file to the personal computer.

[0150] Optionally, the server further includes a write buffer, the baseboard management controller includes a read buffer and a second specified path, the write buffer and the read buffer are connected via a bus, and the first receiving module 501 is specifically used for:

[0151] The controller receives the target file sent to the read buffer from the first specified path; the file write instruction is specifically used to instruct the controller to obtain the target file from the first specified path, write the target file to the write buffer, and send the target file in the write buffer to the read buffer via the bus;

[0152] Store the target file in the second specified path;

[0153] The execution module 503 is specifically used for:

[0154] The target file is obtained from the second specified path and sent to the personal computer.

[0155] Optionally, the device further includes:

[0156] The third sending module is used to send a path setting instruction to the personal computer before the execution module 503 sends the target file to the personal computer; the path setting instruction is used to instruct the personal computer to display a prompt message, the prompt message is used to prompt the user to set a target storage path, the target storage path is the storage path of the target file in the personal computer;

[0157] The third receiving module is used to receive the target storage path returned by the personal computer in response to the path setting instruction;

[0158] The execution module 503 is further specifically used for:

[0159] The target file is sent to the target storage path for storage.

[0160] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. The third sending module is specifically used for:

[0161] The server sends the path setting instruction to the personal computer; the personal computer, when logged into the baseboard management controller, responds to the path setting instruction by displaying the prompt message through the client.

[0162] Optionally, the third receiving module is specifically used for:

[0163] Receive a storage instruction sent by the personal computer; the storage instruction is generated by the personal computer through the client, and the storage instruction includes the target storage path;

[0164] The execution module 503 is further specifically used for:

[0165] In response to the storage instruction, the target storage path is obtained from the storage instruction;

[0166] The target file is sent to the target storage path for storage.

[0167] See Figure 7 This application provides another file transfer device for use with a personal computer, the device 60 comprising:

[0168] The generation module 601 is used to generate a file transfer instruction based on the operation of specifying a target file from a file stored on the server, in the case of a baseboard management controller that is logged into the server.

[0169] The second sending module 602 is used to send the file transfer instruction to the baseboard management controller; the baseboard management controller is used to receive the file transfer instruction, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and send the target file to the personal computer if the personal computer has file access permissions; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path;

[0170] The second receiving module 603 is used to receive the target file sent by the baseboard management controller.

[0171] Optionally, the server further includes a write buffer, the baseboard management controller includes a read buffer and a second specified path, the write buffer and the read buffer are connected via a bus, and the second receiving module 603 is specifically used for:

[0172] The substrate management controller receives the target file obtained and sent from the second designated path by the substrate management controller; the substrate management controller is also configured to receive the target file sent from the first designated path to the read buffer by the controller, and store the target file in the second designated path; the file write instruction is specifically configured to instruct the controller to obtain the target file from the first designated path, write the target file into the write buffer, and send the target file in the write buffer to the read buffer via the bus.

[0173] Optionally, the device further includes:

[0174] The fourth receiving module is used to receive a path setting instruction sent by the substrate management controller before the second receiving module 603 receives the target file sent by the substrate management controller;

[0175] The display module is used to display a prompt message in response to the path setting instruction; the prompt message is used to prompt the user to set a target storage path, which is the storage path of the target file on the personal computer;

[0176] The fourth sending module is used to return the target storage path to the baseboard management controller; the baseboard management controller is also used to receive the target storage path and send the target file to the target storage path for storage.

[0177] Optionally, the baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. The fourth receiving module is specifically used for:

[0178] When logged into the baseboard management controller, in response to the path setting instruction, the client displays the prompt message; the baseboard management controller is also used to send the path setting instruction to the personal computer through the server.

[0179] Optionally, the fourth sending module is specifically used for:

[0180] The client generates a storage instruction; the storage instruction includes the target storage path.

[0181] The storage instruction is sent to the substrate management controller; the substrate management controller is further configured to, in response to the storage instruction, obtain the target storage path from the storage instruction.

[0182] The file transfer device and the file transfer method described in the foregoing embodiments have the same advantages over the prior art, and will not be repeated here.

[0183] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0184] This application also provides an electronic device, see [link to document]. Figure 8 The system includes: a processor 701, a memory 702, and a computer program 7021 stored in the memory and executable on the processor. When the processor executes the program, it implements the file transfer method of the foregoing embodiments.

[0185] This application also provides a readable storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the file transfer method of the foregoing embodiments.

[0186] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. The structure required to construct such a system is obvious from the above description. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of this application.

[0187] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0188] Similarly, it should be understood that, in order to simplify this application and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0189] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0190] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the sequencing device according to this application. This application can also be implemented as a device or apparatus program for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can take the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0191] It should be noted that the above embodiments are illustrative of this application and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0192] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0193] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

[0194] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0195] It should be noted that the various data-related processes in the embodiments of this application are carried out in compliance with the relevant data protection laws and policies of the country where the location is located, and with the authorization granted by the owner of the corresponding device.

Claims

1. A file transfer method, characterized in that, The method, applied to a baseboard management controller in a server, includes: The system receives a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller. In response to the file transfer instruction, a file write instruction is sent to the controller of the server; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and to send the target file to the baseboard management controller from the first specified path; The system receives the target file sent by the controller and, if the personal computer has file access permissions, sends the target file to the personal computer. Before sending the target file to the personal computer, the method further includes: Send a path setting instruction to the personal computer; the path setting instruction is used to instruct the personal computer to display a prompt message, the prompt message is used to prompt the user to set a target storage path, the target storage path is the storage path of the target file in the personal computer; Receive the target storage path returned by the personal computer in response to the path setting instruction; Sending the target file to the personal computer includes: The target file is sent to the target storage path for storage; The baseboard management controller has a server running a remote control management module, and the personal computer has a client running the remote control management module. Sending the path setting command to the personal computer includes: The server sends the path setting command to the personal computer. The personal computer is used to display the prompt message through the client in response to the path setting instruction when logged into the baseboard management controller.

2. The method according to claim 1, characterized in that, The server further includes a write buffer, the baseboard management controller includes a read buffer and a second specified path, the write buffer and the read buffer are connected via a bus, and receiving the target file sent by the controller includes: The controller receives the target file sent to the read buffer from the first specified path; the file write instruction is specifically used to instruct the controller to obtain the target file from the first specified path, write the target file to the write buffer, and send the target file in the write buffer to the read buffer via the bus; Store the target file in the second specified path; Sending the target file to the personal computer includes: The target file is obtained from the second specified path and sent to the personal computer.

3. The method according to claim 1, characterized in that, Receiving the target storage path returned by the personal computer in response to the path setting instruction includes: Receive a storage instruction sent by the personal computer; the storage instruction is generated by the personal computer through the client, and the storage instruction includes the target storage path; Sending the target file to the target storage path for storage includes: In response to the storage instruction, the target storage path is obtained from the storage instruction; The target file is sent to the target storage path for storage.

4. A file transfer method, characterized in that, Applied to a personal computer, the method includes: In the case of a baseboard management controller that logs into the server, a file transfer instruction is generated based on the operation of specifying a target file from the files stored on the server; The system sends the file transfer instruction to the baseboard management controller; the baseboard management controller is configured to receive the file transfer instruction, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and, if the personal computer has file access permissions, send the target file to the personal computer; the file write instruction is configured to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path; Receive the target file sent by the baseboard management controller; Before receiving the target file sent by the substrate management controller, the method further includes: Receive the path setting instruction sent by the baseboard management controller; In response to the path setting instruction, a prompt message is displayed; the prompt message is used to prompt the user to set a target storage path, which is the storage path of the target file on the personal computer. The target storage path is returned to the substrate management controller; the substrate management controller is also configured to receive the target storage path and send the target file to the target storage path for storage. The baseboard management controller has a server running a remote control management module, and the personal computer has a client running the remote control management module. Receiving the path setting command sent by the baseboard management controller includes: When logged into the baseboard management controller, in response to the path setting instruction, the client displays the prompt message; the baseboard management controller is also used to send the path setting instruction to the personal computer through the server.

5. A file transfer device, characterized in that, A baseboard management controller used in a server, the device comprising: The first receiving module is used to receive a file transfer instruction for a target file sent by a personal computer; the target file is specified by the personal computer from a file stored on the server when the personal computer is logged into the baseboard management controller. The first sending module is configured to send a file write instruction to the controller of the server in response to the file transfer instruction; the file write instruction is configured to instruct the controller to store the target file in a first specified path in the server and send the target file to the baseboard management controller from the first specified path; An execution module is used to receive the target file sent by the controller, and, if the personal computer has file access permissions, send the target file to the personal computer. The device further includes: The third sending module is used to send a path setting instruction to the personal computer before the execution module sends the target file to the personal computer; the path setting instruction is used to instruct the personal computer to display a prompt message, the prompt message is used to prompt the user to set a target storage path, the target storage path is the storage path of the target file in the personal computer; The third receiving module is used to receive the target storage path returned by the personal computer in response to the path setting instruction; The execution module is further specifically used for: The target file is sent to the target storage path for storage; The baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. The third sending module is specifically used for: The server sends the path setting instruction to the personal computer; the personal computer, when logged into the baseboard management controller, responds to the path setting instruction by displaying the prompt message through the client.

6. A file transfer device, characterized in that, The device, used in a personal computer, includes: The generation module is used to generate a file transfer instruction based on an operation that specifies a target file from a file stored on the server, in the case of a baseboard management controller that is logged into the server. The second sending module is used to send the file transfer instruction to the baseboard management controller; the baseboard management controller is used to receive the file transfer instruction, and in response to the file transfer instruction, send a file write instruction to the controller of the server, and receive the target file sent by the controller, and send the target file to the personal computer if the personal computer has file access permissions; the file write instruction is used to instruct the controller to store the target file in a first specified path in the server, and send the target file to the baseboard management controller from the first specified path; The second receiving module is used to receive the target file sent by the baseboard management controller; The device further includes: The fourth receiving module is used to receive a path setting instruction sent by the substrate management controller before the second receiving module receives the target file sent by the substrate management controller; The display module is used to display a prompt message in response to the path setting instruction; the prompt message is used to prompt the user to set a target storage path, which is the storage path of the target file on the personal computer; The fourth sending module is used to return the target storage path to the baseboard management controller; the baseboard management controller is also used to receive the target storage path and send the target file to the target storage path for storage. The baseboard management controller runs a server with a remote control management module, and the personal computer runs a client with the remote control management module. The fourth receiving module is specifically used for: When logged into the baseboard management controller, in response to the path setting instruction, the client displays the prompt message; the baseboard management controller is also used to send the path setting instruction to the personal computer through the server.

7. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the file transfer method as described in any one of claims 1-4.

8. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the file transfer method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Data access method, device, system and storage medium

    CN111061692A

  • Server management system

    JP2010122717A