CN114866517A - Installation file execution method and device and storage medium - Google Patents

Installation file execution method and device and storage medium Download PDF

Info

Publication number
CN114866517A
CN114866517A CN202210526835.5A CN202210526835A CN114866517A CN 114866517 A CN114866517 A CN 114866517A CN 202210526835 A CN202210526835 A CN 202210526835A CN 114866517 A CN114866517 A CN 114866517A
Authority
CN
China
Prior art keywords
mac address
server
file
installation file
request information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210526835.5A
Other languages
Chinese (zh)
Inventor
付洪全
高金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Gaozhuan Information Technology Co ltd
Original Assignee
Guangzhou Gaozhuan Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Gaozhuan Information Technology Co ltd filed Critical Guangzhou Gaozhuan Information Technology Co ltd
Priority to CN202210526835.5A priority Critical patent/CN114866517A/en
Publication of CN114866517A publication Critical patent/CN114866517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses an execution method, a device and a storage medium for an installation file, wherein the method comprises the steps of sending request information, receiving a mirror image file provided by a management server in response to the request information, executing the mirror image file to acquire an MAC address of a server to be installed and sending the MAC address, so that the steps of manual operation are saved, and the efficiency is improved; and receiving the installation file configured by the management server according to the MAC address and executing the installation file, thereby realizing automatic installation of the installation file, further improving the execution efficiency, realizing personalized customization of the installation file according to the MAC address, and being widely applied to the technical field of computers.

Description

Installation file execution method and device and storage medium
Technical Field
The invention relates to the field of computers, in particular to an installation file execution method, an installation file execution device and a storage medium.
Background
With the development of computer and internet technologies, some related electronic devices such as servers and the like have been developed rapidly, and with the continuous development of servers, the updating speed of server systems is also faster and faster. Due to different requirements of different server systems, when personalized customized installation is required, the personalized installation setting needs to be carried out through the unique server identification information MAC address. However, since the MAC address is burned into the network card chip and cannot be obtained in advance, the user needs to process and obtain the MAC addresses one by one, which is cumbersome to operate and causes low efficiency of installation and execution, and thus a solution needs to be sought.
Disclosure of Invention
In view of the above, in order to solve the above technical problems, an object of the present invention is to provide an installation file executing method, device and storage medium, which are beneficial to improving the execution efficiency.
The embodiment of the invention adopts the technical scheme that:
an installation file execution method comprising:
sending request information;
receiving a mirror image file; the image file is provided by the management server in response to the request information;
executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address;
receiving an installation file and executing the installation file; and the installation file is configured by the management server according to the MAC address.
Further, the sending request information includes:
and starting a pre-starting execution environment and sending request information in a DHCP broadcast mode.
Further, the executing the image file to obtain the MAC address of the server to be installed and send the MAC address includes:
executing the mirror image file to start a preset script to obtain the MAC address of the server to be installed;
and packaging the MAC address into a preset format and sending the MAC address.
Further, the receiving an installation file and executing the installation file includes:
detecting whether the MAC address with the preset format exists or not;
if yes, receiving the installation file, restarting and executing the installation file;
alternatively, the first and second electrodes may be,
and if the MAC address does not exist, returning to the step of executing the image file until the MAC address in the preset format exists.
The embodiment of the invention also provides an execution method for installing the file, which comprises the following steps:
receiving request information, and sending an image file in response to the request information; the request information is sent by a server to be installed;
receiving the MAC address of the server to be installed; the MAC address is obtained by executing the mirror image file by the server to be installed;
configuring an installation file corresponding to the MAC address according to the MAC address;
sending the installation file; the installation file is used for the server to be installed to execute.
Further, the sending the image file in response to the request information includes:
generating an IP address and the mirror image file according to the request information;
and sending the mirror image file through the IP address.
The embodiment of the invention also provides an execution method for installing the file, which comprises the following steps:
a server to be installed sends out request information;
the management server receives and responds to the request information and sends a mirror image file;
the server to be installed receives and executes the mirror image file to acquire the MAC address of the server to be installed and sends the MAC address;
the management server receives the MAC address, configures an installation file corresponding to the MAC address according to the MAC address and sends the installation file;
and the server to be installed receives and executes the installation file.
Further, the management server has a database, and the method further includes:
acquiring configuration information of the server to be installed;
comparing the configuration information with the content of the database;
and if the comparison results are inconsistent, generating an audit record, and sending the audit record to the database for modification and display.
The embodiment of the invention also provides an installation file executing device, which comprises a server to be installed or a management server;
the server to be installed is used for:
sending request information;
receiving a mirror image file; the image file is provided by the management server in response to the request information;
executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address;
receiving an installation file and executing the installation file; the installation file is configured by the management server according to the MAC address;
the management server is configured to:
receiving request information, and sending an image file in response to the request information; the request information is sent by a server to be installed;
receiving the MAC address of the server to be installed; the MAC address is obtained by executing the mirror image file by the server to be installed;
configuring an installation file corresponding to the MAC address according to the MAC address;
sending the installation file; the installation file is used for the server to be installed to execute.
An embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method.
Embodiments of the present invention also provide a computer-readable storage medium, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the method.
The invention has the beneficial effects that: by sending the request information, receiving the image file provided by the management server responding to the request information, executing the image file to acquire the MAC address of the server to be installed and sending the MAC address, saving the steps of manual operation and improving the efficiency; and receiving the installation file configured by the management server according to the MAC address and executing the installation file, thereby realizing automatic installation of the installation file, further improving the execution efficiency and realizing personalized customization of the installation file according to the MAC address.
Drawings
FIG. 1 is a flowchart illustrating a first method for executing an installation file according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second method for executing an installation file according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a third method for executing an installation file according to an embodiment of the present invention;
fig. 4 is a schematic diagram of communication between a server to be installed and a management server according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1, an embodiment of the present invention provides a first installation file execution method, executed by a server to be installed, including steps S110 to S140:
and S110, sending the request information.
Optionally, the server to be installed and the management server have PXE (Preboot execution Environment), and the management server may provide services including, but not limited to, DHCP, TFTP, HTTP, restful api, and the like. The pre-boot execution environment works in a network mode of a Client/Server, and therefore supports booting an operating system through a network. It should be noted that, in the embodiment of the present invention, the to-be-installed server is equivalent to a client, and the management server is equivalent to a server, so that when the to-be-installed server needs to send request information, the to-be-installed server is powered on to start the pre-boot execution environment, so that the to-be-installed server sends request information in a DHCP broadcast form to the management server, and the management server is required to allocate an IP address.
And S120, receiving the mirror image file.
In the embodiment of the invention, the mirror image file is provided by the management server in response to the request information. Specifically, when the management server receives the request information, an IP address allocated to the server to be installed and a general image file are generated (returned) in response to the request information, and then the server to be installed may download the image file (a boot software package, pxelinux for short) according to the IP address to receive the image file. When the image file is executed, the content related to the MAC address is searched first, and if the content does not exist, default content (default) is executed, so that some solutions of the prior art cannot acquire the content related to the MAC address, and the content in the default cannot be dynamically loaded, even if a plurality of machines use one start setting such as an IP address, and therefore personalized installation of the server to be installed cannot be achieved.
S130, executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address.
In the embodiment of the present invention, step S130 includes steps S1301 to S1302:
s1301, executing the mirror image file to start a preset script to obtain the MAC address of the server to be installed.
Optionally, after the server to be installed receives the image file, the server to be installed may execute the image file in its memory, so as to start the configuration file search and load the response file ks.
In the embodiment of the present invention, the image file includes, but is not limited to, the following functions: 1) loading a driver required by a server to be installed, and identifying configuration information of the server to be installed, such as hardware information and the like; 2) local (such as a server to be installed) to start a customized preset script, so as to obtain the MAC address in the network card of the server to be installed, i.e. the MAC address of the server to be installed.
S1302, packaging the MAC address into a preset format and sending the MAC address.
In the embodiment of the invention, the MAC address is packaged into the MAC address with a preset format. Optionally, the preset format includes, but is not limited to, XML text, JSON, CSON, and the like, and the JSON format is taken as an example in the embodiment of the present invention. Specifically, the preset script queries whether the current MAC address exists in the database of the management server from the interface of the management server, if the current MAC address does not exist, the MAC address is packaged into the JSON format, the validity of the JSON format MAC address is checked, and then the currpost is submitted and sent to the management server, where the sending command line sample is as follows:
curl-XPOSThttps://172.16.232.21/mac_registry
-H'Content-Type:application/json'
-d'{"ip":"x.x.x.x","mac":"Y.Y.Y.Y"}'
by the installation file execution method, after the server to be installed is started, the request information can be automatically sent, the image file can be received and executed, the MAC address of the server to be installed can be fully automatically acquired, and the efficiency and the automation degree are high.
And S140, receiving the installation file and executing the installation file.
In the embodiment of the invention, the installation file is obtained by the management server according to the MAC address configuration. Optionally, the management server has a database, and the management server may configure a corresponding installation file for the MAC address, insert the MAC address and a record of the installation file corresponding to the MAC address into the database, and generate the installation file corresponding to the server to be installed. It should be noted that the MAC addresses of the servers to be installed and the installation files corresponding to each MAC address may be stored in the database, so that the management server may implement personalized customization according to different requirements of the servers to be installed, and when the installation files need to be updated or replaced, the installation files corresponding to the MAC addresses are updated or replaced in the management server, which is convenient to operate and improves the updating and replacing efficiency. It should be noted that, in step S1302, if the current MAC address exists in the database of the management server, at this time, the server to be installed may be directly restarted, and the installation file corresponding to the MAC address existing in the database of the management server is received and executed.
Optionally, step S140 includes steps S1401-S1402:
s1401, whether the MAC address with the preset format exists or not is detected.
In the embodiment of the present invention, the preset script may continuously query whether the MAC address in the preset format exists, specifically, whether the MAC address in the preset format exists in the database of the management server, and the command line sample is as follows:
curlhttps://172.16.232.21/mac_registry
-H'Content-Type:application/json'
-d'{"ip":"x.x.x.x","mac":"Y.Y.Y.Y"}'
for example, a RabbitMQ client and an agent (agent) are set in a server to be installed, a RabbitMQ server is configured in a management server, the management server has an interface (for example, an HTTP/HTTPs interface), and a preset script can query the RabbitMQ server or the interface of the management server through the RabbitMQ client to detect whether a MAC address in a preset format exists in the management server.
In addition, after the server to be installed is installed, the management server may issue a task to the RabbitMQ client of the server to be installed through an interface of the management server and A Message Queue Protocol (AMQP), so that the server to be installed runs an agent (agent) periodically (for a preset time) to detect the configuration information of the server to be installed and sends the configuration information to the management server through an interface (for example, an HTTP/HTTPs interface) of the management server, thereby enabling the management server to timely, comprehensively, and accurately obtain the latest configuration information of the server to be installed.
For example: the server to be installed is HPDL 380G 9, Linux system installation and automatic installation of the RabbitMQ client are completed according to the setting, the server to be installed receives tasks (collecting configuration information of the server to be installed, such as information of a CPU (Central processing Unit), an internal memory and the like) issued by the management server through AMQP, and then the configuration information of the server to be installed is sent to the management server through HTTP/HTTPS. The management server is provided with an HTTP WEB (similar to an asset management system) interface, can display the configuration information of the server to be installed so as to conveniently review the configuration information change of the server to be installed, such as a newly added record or a recorded information change (such as memory upgrading, from the original 256G to 512G), then generates an audit record on the HTTP WEB of the management server to allow an administrator to audit, if the administrator feels that the audit record has no problem, inputs a pass instruction, so that the configuration information change is completed, and if the administrator feels that the record has the problem, the pass instruction can be confirmed again, and inputs a modification instruction to modify the configuration information change and submit the configuration information change. Therefore, after the system is installed, each server to be installed can accurately register own configuration information into the asset management system in time, and personnel such as finance and IT can accurately acquire asset information in time, so that the trouble of periodical manual checking and registering is avoided, and the system is high in automation degree, convenient and efficient.
S1402, if the installation file exists, receiving the installation file, restarting and executing the installation file; or if the MAC address does not exist, returning to the step of executing the image file until the MAC address in the preset format exists.
Specifically, if the query returns, that is, the MAC address in the preset format exists, at this time, the server to be installed receives the installation file through the MAC address, the server to be installed is restarted, the server to be installed is still started from the pre-start execution environment, and the server to be installed executes the installation file in the memory thereof. Exemplarily, if the installation file is used for installing the system, the server to be installed executes the installation file for system installation; in other embodiments, the installation file may implement other functions besides the installation system, and is not limited in particular.
Optionally, when there is no MAC address in the preset format, the step of executing the image file is returned, that is, the step returns to step S130 until the MAC address in the preset format exists, and then the installation file is received through the MAC address, and the installation file is restarted and executed.
As shown in fig. 2, an embodiment of the present invention provides a second installation file execution method, executed by a management server, including steps S210 to S240:
s210, receiving the request information, and sending the mirror image file in response to the request information.
Specifically, the request information is issued by the server to be installed, and the management server receives the request information and then transmits the image file in response to the request information.
Optionally, the sending the image file in response to the request information in step S210 includes steps S2101 to S2102:
s2101, an IP address and an image file are generated according to the request information.
Similarly, the server to be installed and the management server have PXE (Preboot execution Environment), the server to be installed sends request information in the form of DHCP broadcast, and the management server allocates an IP address and a general image file to the server to be installed according to the request information.
S2102, the mirror image file is sent through the IP address.
Specifically, the management server sends the image file to the server to be installed through the IP address, and at this time, the server to be installed downloads the image file through the IP address.
S220, receiving the MAC address of the server to be installed.
And the MAC address is obtained by executing the mirror image file by the server to be installed. Specifically, the server to be installed executes the image file to start a preset script to acquire the MAC address inside the network card of the server to be installed, that is, the MAC address of the server to be installed, and then packages the MAC address into the MAC address in the preset format and sends the MAC address to the management server, and the management server receives the MAC address of the server to be installed.
And S230, configuring an installation file corresponding to the MAC address according to the MAC address.
Specifically, the management server has a database, and the management server may configure a corresponding installation file for the MAC address, insert the MAC address and a record of the installation file corresponding to the MAC address into the database, and generate the installation file corresponding to the server to be installed. Similarly, the MAC addresses of the servers to be installed and the installation files corresponding to each MAC address can be stored in the database, so that the management server can implement personalized customization according to different requirements of the servers to be installed, and when the installation files need to be updated or replaced, the installation files corresponding to the MAC addresses are updated or replaced in the management server, which is convenient to operate and improves the updating and replacing efficiency.
And S240, transmitting the installation file.
Specifically, when the server to be installed queries and detects that the MAC address in the preset format exists in the management server, the management server sends an installation file corresponding to the MAC address to the server to be installed through the MAC address to the server to be installed, and the server to be installed executes the installation file in a memory of the server to be installed.
As shown in fig. 3 and 4, the third method for executing an installation file according to the embodiment of the present invention is executed by a management server and a server to be installed, and includes steps S310 to S350:
and S310, the server to be installed sends request information.
In the embodiment of the present invention, the server to be installed and the management server have a PXE (Preboot execution Environment), and when the server to be installed is powered on, the Preboot execution Environment starts and sends a DHCP broadcast, that is, sends request information in a DHCP broadcast form to the management server.
And S320, the management server receives and responds to the request information and sends the mirror image file.
In the embodiment of the invention, the management server receives and responds to the request information, specifically, the management server distributes the IP address and the universal image file to the server to be installed according to the request information, and then sends the image file to the server to be installed through the distributed IP address, even if the server to be installed can download the image file through the IP address.
S330, the server to be installed receives and executes the mirror image file to obtain the MAC address of the server to be installed and sends the MAC address.
Specifically, the server to be installed receives and executes the image file, starts a preset script to obtain the MAC address inside the network card of the server to be installed, thereby obtaining the MAC address of the server to be installed, packages the MAC address into a preset format (for example, JSON format), and sends the MAC address of the preset format to the management server.
S340, the management server receives the MAC address, configures an installation file corresponding to the MAC address according to the MAC address and sends the installation file.
Specifically, the management server has a database, and the management server may configure a corresponding installation file for the MAC address, insert the MAC address and a record of the installation file corresponding to the MAC address into the database, generate an MAC record and an installation file corresponding to the server to be installed, and subsequently query the MAC address and the installation file corresponding to the MAC address by querying the MAC record. In the embodiment of the invention, the MAC addresses of a plurality of servers to be installed and the installation files corresponding to each MAC address can be stored in the database, and each server to be installed has a unique corresponding MAC address, so that the management server can realize personalized customization according to different requirements of the servers to be installed, and when the installation files need to be updated or replaced, the installation files corresponding to the MAC addresses are updated or replaced in the management server, the operation is convenient, and the updating and replacing efficiency is improved. After configuring the installation file corresponding to the MAC address, the management server may send the installation file corresponding to the MAC address to the server to be installed through the MAC address.
And S350, the server to be installed receives and executes the installation file.
Optionally, the server to be installed may detect whether an MAC address in a preset format exists, and if so, restart and execute the installation file; or, if the MAC address does not exist, returning to the step of receiving and executing the image file by the server to be installed, that is, returning to step S330 until the MAC address in the preset format exists. Specifically, the preset script continuously queries whether the MAC address in the preset format exists or not, if the query returns, the MAC address in the preset format exists, at this time, the server to be installed downloads and receives the installation file through the MAC address, the server to be installed is restarted, at this time, the server to be installed is still started from the preset execution environment, and then the server to be installed executes the installation file in the memory of the server to be installed, so that automatic installation of the server to be installed is completed. Illustratively, when the installation files corresponding to one MAC address are multiple, the server to be installed downloads and receives the latest installation file and executes the latest installation file, and when the installation file is used for installing the system, the automatic installation and update of the operating system in the server to be installed can be completed.
Optionally, the third method for executing an installation file according to the embodiment of the present invention further includes steps S410 to S430:
s410, obtaining the configuration information of the server to be installed.
Optionally, the database of the management server may further store configuration information corresponding to the MAC address of the server to be installed. Specifically, as described in step S1401, the management server may issue a task to the RabbitMQ client of the server to be installed through the interface of the management server and the message queue protocol (AMQP), so that the server to be installed runs an agent (agent) periodically (for a preset time) to detect the configuration information of the server to be installed and sends the configuration information to the management server through the interface (for example, HTTP/HTTPs interface) of the management server, thereby enabling the management server to timely, comprehensively, and accurately obtain the latest configuration information of the server to be installed.
And S420, comparing the configuration information with the content of the database.
And S430, if the comparison result is inconsistent, generating an audit record, and sending the audit record to a database for displaying.
Optionally, the latest configuration information currently acquired is compared with the content of the database, for example, the latest configuration information currently acquired is compared with historical configuration information of the same server to be installed, which is acquired and stored in the database before. Specifically, if the comparison result is consistent, it indicates that the configuration information of the server to be installed is the latest configuration information without change, and no other operation needs to be performed. And if the comparison result is inconsistent, generating an audit record, sending the audit record to a database for change processing, updating the configuration information of the current server to be installed in the database to the latest configuration information, and sending the audit record to a WEB page (namely an HTTP WEB page) of a related person for display, so that the processes of manual inquiry, registration and configuration information change are saved, the configuration information of the server to be installed can be automatically detected and updated, and the method is efficient, quick and free from omission.
The embodiment of the invention also provides an installation file executing device, which comprises a server to be installed or a management server:
the server to be installed is used for:
sending request information;
receiving a mirror image file; the image file is provided by the management server in response to the request information;
executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address;
receiving an installation file and executing the installation file; the installation file is configured by the management server according to the MAC address;
the management server is used for:
receiving request information, and sending the mirror image file in response to the request information; the request information is sent by the server to be installed;
receiving an MAC address of a server to be installed; the MAC address is obtained by executing a mirror image file by a server to be installed;
configuring an installation file corresponding to the MAC address according to the MAC address;
sending an installation file; and the installation file is used for the server to be installed to execute.
The contents in the method embodiments are all applicable to the device embodiments, the functions specifically implemented by the device embodiments are the same as those in the method embodiments, and the beneficial effects achieved by the device embodiments are also the same as those achieved by the method embodiments.
The embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the installation file execution method in the foregoing embodiment. The electronic device of the embodiment of the invention includes, but is not limited to, a mobile phone, a tablet computer, a server and the like.
The contents in the above method embodiments are all applicable to the present apparatus embodiment, the functions specifically implemented by the present apparatus embodiment are the same as those in the above method embodiments, and the beneficial effects achieved by the present apparatus embodiment are also the same as those achieved by the above method embodiments.
An embodiment of the present invention further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the installation file execution method of the foregoing embodiment.
Embodiments of the present invention also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the installation file execution method of the foregoing embodiment.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An installation file execution method, comprising:
sending request information;
receiving a mirror image file; the image file is provided by the management server in response to the request information;
executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address;
receiving an installation file and executing the installation file; and the installation file is configured by the management server according to the MAC address.
2. The mount file execution method according to claim 1, characterized in that: the sending request information includes:
and starting a pre-starting execution environment and sending request information in a DHCP broadcast mode.
3. The mount file execution method according to any one of claims 1-2, wherein: the executing the image file to obtain the MAC address of the server to be installed and send the MAC address includes:
executing the mirror image file to start a preset script to obtain the MAC address of the server to be installed;
and packaging the MAC address into a preset format and sending the MAC address.
4. The mount file execution method according to claim 3, wherein: the receiving an installation file and executing the installation file includes:
detecting whether the MAC address with the preset format exists or not;
if yes, receiving the installation file, restarting and executing the installation file;
alternatively, the first and second electrodes may be,
and if the MAC address does not exist, returning to the step of executing the image file until the MAC address in the preset format exists.
5. An installation file execution method, comprising:
receiving request information, and sending an image file in response to the request information; the request information is sent by a server to be installed;
receiving the MAC address of the server to be installed; the MAC address is obtained by executing the mirror image file by the server to be installed;
configuring an installation file corresponding to the MAC address according to the MAC address;
sending the installation file; the installation file is used for the server to be installed to execute.
6. The mount file execution method according to claim 5, wherein: the sending the image file in response to the request information comprises:
generating an IP address and the mirror image file according to the request information;
and sending the mirror image file through the IP address.
7. An installation file execution method, comprising:
a server to be installed sends out request information;
the management server receives and responds to the request information and sends a mirror image file;
the server to be installed receives and executes the mirror image file to acquire the MAC address of the server to be installed and sends the MAC address;
the management server receives the MAC address, configures an installation file corresponding to the MAC address according to the MAC address and sends the installation file;
and the server to be installed receives and executes the installation file.
8. The installation file execution method according to claim 7, wherein: the management server has a database, the method further comprising:
acquiring configuration information of the server to be installed;
comparing the configuration information with the content of the database;
and if the comparison results are inconsistent, generating an audit record, and sending the audit record to the database for modification and display.
9. An installation file executing apparatus is characterized by comprising a server to be installed or a management server;
the server to be installed is used for:
sending request information;
receiving a mirror image file; the image file is provided by the management server in response to the request information;
executing the mirror image file to obtain the MAC address of the server to be installed and sending the MAC address;
receiving an installation file and executing the installation file; the installation file is configured by the management server according to the MAC address;
the management server is configured to:
receiving request information, and sending an image file in response to the request information; the request information is sent by a server to be installed;
receiving the MAC address of the server to be installed; the MAC address is obtained by executing the mirror image file by the server to be installed;
configuring an installation file corresponding to the MAC address according to the MAC address;
sending the installation file; the installation file is used for the server to be installed to execute.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 8.
CN202210526835.5A 2022-05-16 2022-05-16 Installation file execution method and device and storage medium Pending CN114866517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210526835.5A CN114866517A (en) 2022-05-16 2022-05-16 Installation file execution method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210526835.5A CN114866517A (en) 2022-05-16 2022-05-16 Installation file execution method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114866517A true CN114866517A (en) 2022-08-05

Family

ID=82637530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210526835.5A Pending CN114866517A (en) 2022-05-16 2022-05-16 Installation file execution method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114866517A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332223A (en) * 2004-05-20 2005-12-02 Ntt Data Corp Virtual machine management system
US20140204804A1 (en) * 2011-08-30 2014-07-24 Bull Sas Method For The Exchange Of Data Between Nodes Of A Server Cluster, And Server Cluster Implementing Said Method
CN111752576A (en) * 2020-05-14 2020-10-09 深圳震有科技股份有限公司 Forwarding system deployment method based on 5G data, terminal and storage medium
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN112527328A (en) * 2020-12-03 2021-03-19 曙光信息产业(北京)有限公司 System cloning method, device, electronic equipment and computer readable storage medium
CN114115917A (en) * 2021-11-29 2022-03-01 新华三技术有限公司成都分公司 Operating system installation method and device
CN114363295A (en) * 2020-09-28 2022-04-15 华为云计算技术有限公司 Tenant server management method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005332223A (en) * 2004-05-20 2005-12-02 Ntt Data Corp Virtual machine management system
US20140204804A1 (en) * 2011-08-30 2014-07-24 Bull Sas Method For The Exchange Of Data Between Nodes Of A Server Cluster, And Server Cluster Implementing Said Method
CN111752576A (en) * 2020-05-14 2020-10-09 深圳震有科技股份有限公司 Forwarding system deployment method based on 5G data, terminal and storage medium
CN111756574A (en) * 2020-06-19 2020-10-09 浪潮电子信息产业股份有限公司 Method and device for remotely updating firmware in batch mode and computer readable storage medium
WO2021253854A1 (en) * 2020-06-19 2021-12-23 浪潮电子信息产业股份有限公司 Method and apparatus for remotely updating firmware in batches, and computer-readable storage medium
CN114363295A (en) * 2020-09-28 2022-04-15 华为云计算技术有限公司 Tenant server management method and device
CN112527328A (en) * 2020-12-03 2021-03-19 曙光信息产业(北京)有限公司 System cloning method, device, electronic equipment and computer readable storage medium
CN114115917A (en) * 2021-11-29 2022-03-01 新华三技术有限公司成都分公司 Operating system installation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115357257A (en) * 2022-10-21 2022-11-18 统信软件技术有限公司 Installation file generation method, system, computing device and storage medium

Similar Documents

Publication Publication Date Title
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
US10713034B2 (en) Updating web resources
US10268515B2 (en) Releasing resources from processes in a particular order to provide required resources to start an application
US9003388B2 (en) Information processing apparatus and update process support system
US10242023B2 (en) Programming model for synchronizing browser caches across devices and web services
JP5705869B2 (en) Apparatus and method for loading and updating code of a cluster-based JAVA application system
US8312115B2 (en) Network booting apparatus and method
CN108540509B (en) Processing method and device of terminal browser, server and intelligent terminal
US10372463B1 (en) Provisioning a computerized device with an operating system
CN110968331B (en) Method and device for running application program
JP2017107307A (en) Apparatus, information processing system, information processing method, and program
CN110825399B (en) Deployment method and device of application program
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN110647739A (en) Software installation detection method, device, terminal and storage medium
CN111475172B (en) Bare metal deployment method and device
CN110659104B (en) Service monitoring method and related equipment
CN113411225B (en) QGA service management method, device, equipment and medium based on cloud host
CN114866517A (en) Installation file execution method and device and storage medium
CN107844310B (en) Configuration information updating method and system
CN111679842B (en) Application program hot update processing method, device and system
CN108446144B (en) Application program starting method and device, terminal and storage medium
CN112527446A (en) Time zone synchronization method, equipment and terminal equipment
CN107783837B (en) Method and device for performing storage expansion and electronic equipment
CN115878195A (en) Operating system batch deployment method and device, computer equipment and storage medium
CN112379943A (en) Plug-in application method and device of Electron application program and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220805