CN-121996305-A - Remote starting method, device, equipment and storage medium for server
Abstract
The invention discloses a method, a device, equipment and a storage medium for remote starting of a server, which relate to the technical field of servers and comprise the steps of establishing connection with a target server to obtain a target configuration file of the target server, analyzing the target configuration file by utilizing a preset large model to obtain target PXE parameters, converting the target PXE parameters into target iPXE parameters by utilizing a local parameter mapping table, analyzing configuration dependency relations in the target iPXE parameters to generate a corresponding configuration dependency graph, and controlling the target server to remotely start based on the configuration dependency graph. Therefore, the working efficiency of technicians during remote starting of the server can be improved through automatic conversion of the PXE parameters and iPXE parameters.
Inventors
- GAO RAN
- LV DONGBO
- SUN YANAN
Assignees
- 浪潮计算机科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260129
Claims (10)
- 1. A server remote start-up method, comprising: establishing connection with a target server to obtain a target configuration file of the target server; Analyzing the target configuration file by using a preset large model to obtain target PXE parameters, and converting the target PXE parameters into target iPXE parameters by using a local parameter mapping table; And analyzing the configuration dependency relationship in the target iPXE parameters to generate a corresponding configuration dependency graph, and controlling the target server to perform remote starting based on the configuration dependency graph.
- 2. The method for remote start-up of a server according to claim 1, wherein the establishing a connection with a target server to obtain a target configuration file of the target server includes: Based on IP address, host name and service discovery protocol, monitoring broadcast announcement of PXE service instance in local link network to identify target server; And establishing communication connection with the target server by using a preset standardized protocol interface so as to acquire a target configuration file of the target server.
- 3. The method for remote start-up of a server as set forth in claim 1, wherein the analyzing the target configuration file with a pre-set large model to obtain target PXE parameters and converting the target PXE parameters into target iPXE parameters with a local parameter mapping table includes: transmitting the target configuration file to a preset document classification model, and classifying and identifying the target configuration file by using the preset document classification model to obtain a processed configuration file; inputting the processed configuration file into a target large language model, and analyzing the processed configuration file by utilizing the target large language model to obtain target PXE parameters; analyzing the context relation in the target PXE parameters by utilizing the target large language model to obtain a target key value pair; Sequentially checking the target key value pairs based on a preset parameter checking rule, wherein the preset parameter checking rule comprises a parameter type and a parameter format set by a user side based on a remote starting process of the target server; the method comprises the steps of obtaining a local parameter mapping table, wherein the local parameter mapping table comprises the corresponding relation between PXE parameters and iPXE parameters; the target PXE parameters are converted to target iPXE parameters based on the local parameter map.
- 4. The method for remote start-up of a server according to claim 3, further comprising, before the obtaining the local parameter mapping table: acquiring additional parameters sent by the user terminal based on a preset user interaction interface, and analyzing the additional parameters by utilizing the target large language model to obtain additional key value pairs; And sequentially checking the additional key value pairs based on a preset parameter checking rule, and merging the additional key value pairs with the target key value pairs to obtain new target key value pairs.
- 5. The method for remote start-up of a server according to claim 3, wherein after inputting the processed configuration file into a target large language model to analyze the processed configuration file by using the target large language model to obtain target PXE parameters, further comprising: Displaying the target PXE parameters based on a preset user interaction interface to obtain parameter optimization instructions of the user side aiming at the target PXE parameters; updating the target PXE parameters based on the parameter optimization instruction to obtain new target PXE parameters; training the target large language model based on the parameter optimization instruction to obtain a new target large language model.
- 6. The method of claim 1, wherein analyzing the configuration dependency in the target iPXE parameters to generate the corresponding configuration dependency graph comprises: Analyzing the configuration dependency relationship in the target iPXE parameters by using a graph neural network technology to obtain the parameter dependency relationship; And determining each parameter in the target iPXE parameters as a node, and constructing a configuration dependency graph based on the node and the parameter dependency relationship.
- 7. The server remote start-up method according to any one of claims 1 to 6, wherein the controlling the target server for remote start-up based on the configuration dependency graph includes: and generating a remote starting configuration flow of the target server based on the dependency relationship among the nodes in the configuration dependency graph, and controlling the target server to perform remote starting by utilizing the remote starting configuration flow.
- 8. A server remote start device, comprising: the configuration file acquisition module is used for establishing connection with a target server so as to acquire a target configuration file of the target server; The parameter conversion module is used for analyzing the target configuration file by using a preset large model to obtain target PXE parameters, and converting the target PXE parameters into target iPXE parameters by using a local parameter mapping table; And the server starting module is used for analyzing the configuration dependency relationship in the target iPXE parameters to generate a corresponding configuration dependency graph and controlling the target server to perform remote starting based on the configuration dependency graph.
- 9. An electronic device, comprising: A memory for storing a computer program; a processor for executing the computer program to perform the steps of the server remote start method according to any one of claims 1 to 7.
- 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the server remote start method according to any of claims 1 to 7.
Description
Remote starting method, device, equipment and storage medium for server Technical Field The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a storage medium for remote starting of a server. Background PXE (Preboot Execution Environment, i.e., a pre-boot execution environment) is a network boot technology based on the UDP/IP protocol (User Datagram Protocol/Internet Protocol, i.e., user datagram protocol/internet protocol). The core principle is that network configuration information is obtained through a PXE client terminal with a network card and a DHCP (Dynamic Host Configuration Protocol, namely a dynamic host configuration Protocol server) Protocol, and then a boot image file is downloaded from a server through a TFTP Protocol (TRIVIAL FILE TRANSFER Protocol, namely a simple file transfer Protocol), so that the loading of an operating system is finally completed. The PXE has the advantages of diskless starting, fixed flow, strong compatibility and the like, is difficult to adapt to complex network environments due to supporting of DHCP and TFTP protocols, lacks flexible configuration in the starting process, is weak in customization capacity, does not provide a data encryption or digital signature verification mechanism, is not safe, and is easy to attack by middle people. Therefore, there are a number of problems with using PXE for remote start-up of computers. On The basis of retaining basic functions, iPXE is newly added with support for various protocols such as HTTP, HTTPS, iSCSI (INTERNET SMALL Computer SYSTEM INTERFACE, i.e. small Computer system interface) and FCoE (Fibre Channel over Ethernet, i.e. fiber channel over Ethernet), so that The system can better adapt to heterogeneous network environments, chain guide and dynamic parameter configuration are realized through an embedded script language, the flexibility of a starting process is improved, various network card drivers are built in, architectures such as X86 (The X86 architecture) and ARM (Acorn RISC MACHINE) are supported, the hardware compatibility is improved, and a digital signature verification and encryption transmission mechanism is introduced, so that The security is enhanced. However, due to the difference between PXE and iPXE functions, there is also a significant difference between the parameter set of conventional PXE and the parameter system of iPXE. Therefore, when the system installation mode is changed from PXE to iPXE, there are a plurality of problems, such as high time cost and high risk of error. It can be seen how to automatically convert the PXE parameters into iPXE parameters to improve the efficiency of remote start of the server, which is a problem that needs to be solved by those skilled in the art. Disclosure of Invention The embodiment of the invention aims to provide a method, a device, equipment and a storage medium for remote starting of a server, which can automatically convert PXE parameters into iPXE parameters so as to improve the efficiency of remote starting of the server. The specific scheme is as follows: in a first aspect, the present application discloses a server remote start method, including: establishing connection with a target server to acquire a target configuration file of the target server; Analyzing the target configuration file by using a preset large model to obtain target PXE parameters, and converting the target PXE parameters into target iPXE parameters by using a local parameter mapping table; And analyzing the configuration dependency relationship in the target iPXE parameters to generate a corresponding configuration dependency graph, and controlling the target server to perform remote starting based on the configuration dependency graph. Optionally, establishing a connection with the target server to obtain a target configuration file of the target server, including: Based on IP address, host name and service discovery protocol, monitoring broadcast announcement of PXE service instance in local link network to identify target server; and establishing communication connection with the target server by using a preset standardized protocol interface so as to acquire a target configuration file of the target server. Optionally, analyzing the target configuration file by using a preset large model to obtain a target PXE parameter, and converting the target PXE parameter into a target iPXE parameter by using a local parameter mapping table, including: Transmitting the target configuration file to a preset document classification model, and classifying and identifying the target configuration file by using the preset document classification model to obtain a processed configuration file; inputting the processed configuration file into a target large language model, and analyzing the processed configuration file by utilizing the target large language model to obtain target PXE parameters; Analyzing the context re