CN111880852B - Operating system initialization method, system, computer device and storage medium - Google Patents

Operating system initialization method, system, computer device and storage medium Download PDF

Info

Publication number
CN111880852B
CN111880852B CN202010740134.2A CN202010740134A CN111880852B CN 111880852 B CN111880852 B CN 111880852B CN 202010740134 A CN202010740134 A CN 202010740134A CN 111880852 B CN111880852 B CN 111880852B
Authority
CN
China
Prior art keywords
physical server
initialization
information
server
user terminal
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.)
Active
Application number
CN202010740134.2A
Other languages
Chinese (zh)
Other versions
CN111880852A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010740134.2A priority Critical patent/CN111880852B/en
Priority to PCT/CN2020/122666 priority patent/WO2021139314A1/en
Publication of CN111880852A publication Critical patent/CN111880852A/en
Application granted granted Critical
Publication of CN111880852B publication Critical patent/CN111880852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention discloses an operating system initialization method, an operating system initialization system, computer equipment and a storage medium. The method comprises the following steps: sending an information acquisition request to a physical server corresponding to the server list information to acquire corresponding basic configuration information, verifying the basic configuration information of each physical server according to the physical server list information, sending a system image file to the physical server passing verification, verifying whether the initialization parameters fed back by the physical server are accurate or not according to the parameter information, and if so, remotely logging in the physical server to execute the initialization script contained in the system image file and acquire an execution result of executing the initialization script. The invention belongs to the technical field of block chains, and is used for verifying basic configuration information and initialization parameters of a physical server, remotely logging in the physical server to execute an initialization script after the verification is passed so as to realize the initialization of an operating system, thereby improving the efficiency of the initialization of the operating system and greatly improving the stability of the operating system after the initialization.

Description

Operating system initialization method, system, computer device and storage medium
Technical Field
The invention relates to the technical field of block chains, belongs to an application scene of operating system initialization in a smart city, and particularly relates to an operating system initialization method, an operating system initialization system, computer equipment and a storage medium.
Background
Large enterprises generally provide services for clients through a server cluster, the server cluster can be constructed by a plurality of physical servers, and the clients perform data interaction with the server cluster through the clients so as to process service requests from the clients through the server cluster. In order to facilitate management and maintenance of a physical server, an enterprise needs to initialize an operating system in the physical server, and in a conventional technical method, the initialization of the operating system of the physical server is implemented by relying on a Preboot eXecution Environment (PXE), but this initialization method cannot verify various functions of the operating system, and is likely to cause partial function loss of the operating system in the initialization process, so that the stability of the initialized operating system cannot be guaranteed, which causes a certain risk. Therefore, the prior art method has the problem of low stability after initializing the operating system in the physical server.
Disclosure of Invention
The embodiment of the invention provides an operating system initialization method, an operating system initialization system, computer equipment and a storage medium, and aims to solve the problem of low stability after the operating system in a physical server is initialized by the prior art.
In a first aspect, an embodiment of the present invention provides an operating system initialization method, which includes:
receiving server list information input by a user, and sending an information acquisition request to a physical server corresponding to the server list information to acquire basic configuration information corresponding to the server list information;
verifying whether the physical server contained in the basic configuration information passes the verification according to the server list information;
if the physical server passes the verification, sending a system image file to the physical server, wherein the system image file comprises an initialization script;
receiving initialization parameters fed back by the physical server, and verifying whether the initialization parameters are accurate according to prestored parameter information;
if the initialization parameters are accurate, remotely logging in the physical server to execute the initialization script;
and acquiring an execution result of the initialization script executed by the physical server.
In a second aspect, an embodiment of the present invention provides an operating system initialization system, which includes:
the user terminal comprises a basic configuration information acquisition unit, a physical server verification unit, a system image file sending unit, an initialization parameter verification unit, an execution unit and an execution result acquisition unit, the physical server comprises an instruction information execution unit, a basic configuration information sending unit, an execution priority configuration unit, an initialization parameter sending unit and a script execution unit, wherein,
the basic configuration information acquisition unit is used for receiving the server list information input by a user and sending an information acquisition request to a physical server corresponding to the server list information so as to acquire the basic configuration information corresponding to the server list information;
the physical server verifying unit is used for verifying whether the physical server contained in the basic configuration information passes the verification according to the server list information;
the system image file sending unit is used for sending a system image file to the physical server if the physical server passes the verification, wherein the system image file comprises an initialization script;
the initialization parameter verification unit is used for receiving the initialization parameters fed back by the physical server and verifying whether the initialization parameters are accurate or not according to prestored parameter information;
the execution unit is used for remotely logging in the physical server to execute the initialization script if the initialization parameters are accurate;
the execution result acquisition unit is used for acquiring the execution result of the initialization script executed by the physical server;
the instruction information execution unit is used for receiving an information acquisition request from the user terminal and executing the instruction information loaded in the memory of the physical server to acquire basic configuration information of the physical server;
the basic configuration information sending unit is configured to send the basic configuration information to the user terminal;
the execution priority configuration unit is used for receiving a system image file from the user terminal and configuring the execution priority of the system image file, wherein the system image file contains an initialization script;
the initialization parameter sending unit is used for executing the system image file after restarting the physical server and sending initialization parameters to the user terminal;
the script execution unit is used for receiving execution information sent by the user terminal through remote login, executing the stored initialization script and feeding back an execution result to the user terminal.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the operating system initialization method described in the first aspect is implemented.
In a fourth aspect, the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the operating system initialization method according to the first aspect.
The embodiment of the invention provides an operating system initialization method, an operating system initialization system, computer equipment and a storage medium. Sending an information acquisition request to a physical server corresponding to the server list information to acquire corresponding basic configuration information, verifying the basic configuration information of each physical server according to the physical server list information, sending a system image file to the physical server passing verification, verifying whether the initialization parameters fed back by the physical server are accurate or not according to the parameter information, and if so, remotely logging in the physical server to execute the initialization script contained in the system image file and acquiring the execution result of the physical server executing the initialization script. By the method, the basic configuration information and the initialization parameters of the physical server are verified, and the physical server is remotely logged in after the verification is passed to execute the initialization script contained in the system image file so as to realize the initialization of the operating system, so that the efficiency of the initialization of the operating system can be improved, and the stability of the initialized operating system in the physical server is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an operating system initialization method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of an operating system initialization method according to an embodiment of the present invention;
FIG. 3 is a sub-flow diagram of an operating system initialization method according to an embodiment of the present invention;
fig. 4 is another flowchart illustrating an operating system initialization method according to an embodiment of the present invention;
FIG. 5 is a schematic view of another sub-flow chart of an operating system initialization method according to an embodiment of the present invention;
fig. 6 is another flowchart illustrating an operating system initialization method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating an operating system initialization method according to an embodiment of the present invention;
FIG. 8 is a schematic sub-flowchart of an operating system initialization method according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of an operating system initialization system provided by an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Referring to fig. 1-2, fig. 1 is a schematic flow diagram of an operating system initialization method according to an embodiment of the present invention, and fig. 2 is a schematic application scenario diagram of the operating system initialization method according to the embodiment of the present invention, where the operating system initialization method is applied to an operating system initialization system, the system includes a user terminal 10 and at least one physical server 20, the method is executed by application software installed in the user terminal 10 and the physical server 20, the user terminal 10 establishes a network connection with the physical server 20 to implement transmission of data information, and the user terminal 10 is a user terminal, such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, for receiving information input by a user to manage and maintain the physical server 20; the physical server 20 is a server side for receiving data information sent by the user terminal 10 to complete initialization of the operating system. As shown in FIG. 1, the method is applied to the user terminal 10 and includes steps S110 to S160.
S110, receiving server list information input by a user, and sending an information acquisition request to a physical server corresponding to the server list information to acquire basic configuration information corresponding to the server list information.
Receiving server list information input by a user, and sending an information acquisition request to a physical server corresponding to the server list information to acquire basic configuration information corresponding to the server list information. The user can be an administrator of an enterprise, the physical server can provide service for a client outside the enterprise through a business network (in-band IP), the user terminal establishes network connection with the physical server through a management network inside the enterprise, and system initialization operation is achieved based on the management network inside the enterprise (out-of-band IP). The server list information is the related information including the physical server input by the user, and the server list information includes at least one physical server which needs to be initialized by the operating system and the specific information related to the physical server. Specifically, the server list information includes server address information of the physical servers, the server address information may be represented by a Uniform Resource Locator (URL), the server address information of each physical server in the server list information is acquired, an information acquisition request is sent to the corresponding physical server according to the server address information of each physical server, and the physical server feeds back basic configuration information of the physical server to the user terminal after receiving the acquisition request.
S120, verifying whether the physical server contained in the basic configuration information passes the verification according to the server list information.
And verifying whether the physical server contained in the basic configuration information passes the verification or not according to the server list information. Specifically, the basic configuration information includes disk array type information and network connection information of the physical server. Each physical server is configured with a disk array (RAID), the disk array may be composed of a plurality of hard Disks (Read-Only memories (ROMs)), and the disk array type information is specific type information of the disk array in the physical server; each physical server performs data information interaction with the user terminal and the client outside the enterprise, the data information interaction depends on network connection constructed through the switch, and the network connection information of the physical servers comprises switch names connected with the physical servers and network port names corresponding to the switches. The server list information also includes type information and connection information corresponding to each physical server that needs operating system initialization, and the basic configuration information of each physical server can be verified according to the server list information to obtain a verification result whether each physical server passes the verification.
In one embodiment, as shown in fig. 3, step S120 includes substeps S121, S122 and S123.
And S121, judging whether the disk array type information of each physical server is the same as the corresponding type information in the server list information.
And judging whether the disk array type information of each physical server is the same as the corresponding type information in the server list information. If the disk array type information of a certain physical server is judged to be the same as the corresponding type information in the server list information, judging whether the network connection information of the physical server is also the same as the corresponding connection information in the server list information; and if the disk array type information of a certain physical server is different from the corresponding type information in the server list information, the physical server fails to verify.
For example, the disk array of a certain physical server includes 4 hard disks, the disk array type information includes that 2 hard disks are of an individual raid1 type, and 2 hard disks are of a merged raid1 type, the type information corresponding to the physical server in the server list information includes that 2 hard disks are of an individual raid1 type, and 2 hard disks are of a merged raid1 type, and then the disk array type information of the physical server is the same as the type information corresponding to the server list information.
And S122, if the disk array type information is the same as the corresponding type information in the server list information, judging whether the network connection information of the physical server is the same as the corresponding connection information in the server list information.
Judging whether the network connection information of the physical server is the same as the corresponding connection information in the server list information or not, and if so, the physical server passes the verification; if not, the physical server does not pass the verification.
For example, the network connection information of a certain physical server includes a switch name N93180-01, a network port name Ethernet 1/1; the connection information corresponding to the physical server in the server list information includes a switch name N93180-01, network port names Ethernet1/1 and Ethernet1/2, and the network connection information of the physical server is different from the corresponding connection information in the server list information, and the physical server fails to verify.
And S123, if the network connection information is the same as the corresponding connection information in the server list information, judging that the physical server passes the verification.
If the physical server passes the verification, the subsequent steps are continuously executed, and if the physical server fails the verification, verification failure prompt information can be sent to prompt the user.
S130, if the physical server passes the verification, sending a system image file to the physical server, wherein the system image file comprises an initialization script.
If the physical server passes the verification, the user terminal can send a system image file to the physical server, the system image file comprises an initialization script, the system image file is a program file capable of initializing an operating system in the physical server, and the initialization script is a computer program script which needs to be executed for initializing the operating system.
In an embodiment, as shown in fig. 4, step S1301 is further included before step S130.
S1301, sending an interface connection request to the physical server so as to establish mirror image interface connection with the physical server through a mirror image interface associated with the interface connection request.
Specifically, before sending the system image file to the physical server, an image interface connection may also be established between the user terminal and the physical server, where the image interface connection is implemented based on an enterprise internal management network (out-of-band IP). Specifically, the user terminal is further configured with a plurality of mirror interfaces, where a mirror interface is a network interface capable of sending a system mirror file, the user terminal is capable of sending an interface connection request to the physical server, where the interface connection request includes interface address information of a mirror interface configured in the user terminal, and after the physical server receives the interface connection request, the physical server establishes mirror interface connection with a mirror interface associated with the interface address information in the interface connection request, that is, establishes mirror interface connection between the user terminal and the physical server. After the physical server establishes the mirror image interface connection with the user terminal, the system mirror image file stored in the user terminal can be sent to the physical server through the mirror image interface connection.
S140, receiving the initialization parameters fed back by the physical server, and verifying whether the initialization parameters are accurate according to pre-stored parameter information.
And receiving the initialization parameters fed back by the physical server, and verifying whether the initialization parameters are accurate according to the pre-stored parameter information. Specifically, the initialization parameter fed back by the physical Server may include a host Name (hostname), a Server address (IP address), gateway information, Network Time Protocol Server (NTP Server) information, Domain Name Service (DNS) information, and the like, where the parameter information is parameter configuration information pre-stored in the user terminal and associated with each physical Server, and whether the initialization parameter fed back by the physical Server is accurate may be determined according to the parameter information pre-stored in the user terminal, so as to ensure that the initialization parameter of the physical Server meets the corresponding requirement of the parameter configuration information before the initialization of the operating system is performed.
S150, if the initialization parameters are accurate, remotely logging in the physical server to execute the initialization script.
And if the initialization parameters are accurate, remotely logging in the physical server to execute the initialization script stored in the physical server. Specifically, the remote login can be implemented based on sol (serial Over lan) function of IPMI (Intelligent Platform Management Interface), which can operate under different attribute values, and even if the physical server itself is not operated normally or cannot provide service for any reason, the IPMI can still operate normally. Specifically, the user terminal can send execution information to the physical server through telnet to execute the initialization script stored in the physical server to initialize the operating system, wherein the execution information comprises a system type, the system type is a specific type of the operating system capable of being initialized in the management server, and the management server can obtain the system script corresponding to the system type in the initialization script according to the system type in the execution information to execute, so as to initialize the operating system corresponding to the system type in the management server. The system type in the execution information may be Linux, Vmware esxi, or Windows.
In one embodiment, as shown in fig. 5, step S150 includes sub-steps S1501, S1502, and S1503.
S1501, remotely logging in the physical server, and judging whether the initialization script is stored in a storage area corresponding to a preset storage path in the physical server.
The user terminal remotely logs in the physical server and obtains a storage area corresponding to a preset storage path in the physical server, and judges whether the initialization script is stored in the storage area, if the initialization script is stored in the storage area, the initialization script can be executed in a mode of sending execution information to the physical server, that is, the step S1503 is directly executed.
And S1502, if the initialization script is not stored in the storage area corresponding to the storage path, copying the initialization script to the storage area corresponding to the storage path for storage.
If the initialization script is not stored in the storage area corresponding to the storage path in the physical server, the initialization script in the user terminal can be copied to the physical server through the mirror image interface connection, the initialization script is copied to the physical server, and the initialization script is stored in the storage area corresponding to the storage path according to the result.
S1503, sending execution information to the physical server to trigger the physical server to execute the initialization script.
And S160, acquiring an execution result of the initialization script executed by the physical server.
The physical server executes the initialization script and feeds back an execution result to the user terminal, and then the user terminal can receive the execution result and display the execution result in a web interface of the user terminal. In addition, if the user terminal receives that the execution result fed back by a certain physical server is successful, a restart instruction is sent to the physical server to restart the operating system in the physical server; if the user terminal receives that the execution result fed back by a certain physical server is unsuccessful, a log acquisition instruction can be sent to the physical server to acquire an execution log obtained by the physical server executing the initialization script.
In an embodiment, as shown in fig. 6, step S160 is followed by steps S170 and S180.
S170, sending an initialization verification request to the physical server to obtain initialization verification information fed back by the physical server according to the initialization verification request.
And sending an initialization verification request to the physical server to acquire initialization verification information fed back by the physical server according to the initialization verification request, wherein the initialization verification information comprises a network card verification request and a service verification request. After the physical server completes initialization of the operating system, the user terminal can also send an initialization verification request to obtain a verification result of whether the physical server passes the verification, and if the physical server passes the verification, the user terminal indicates that the physical server completes initialization of the operating system and can provide service for a client outside an enterprise; and if the physical server fails to pass the verification, the physical server is indicated to be incapable of providing service for the client outside the enterprise. The network card initialization information of the physical server can be obtained through the network card verification request in the initialization verification information, and the service initialization information of the physical server can be obtained through the service verification request in the initialization verification information.
Specifically, a plurality of network cards can be configured in the physical server, each network card corresponds to one network connection, and the network cards can be switched according to the network card verification request to acquire network connection information corresponding to each network card, so that network card initialization information is obtained; the corresponding service test script may be executed in the physical server according to the service verification request to obtain the service initialization information.
For example, two network cards eth4 and eth6 are configured in the physical server, and the physical server is switched to a port corresponding to the eth4 network card first, and performs network test on the port to acquire network connection information; switching to a port corresponding to an eth6 network card, performing network test on the port to acquire network connection information, and acquiring two network connection information corresponding to two eth4 and eth6 network cards as network card initialization information of the physical server; if the service verification request comprises an NTP service verification request and a DNS service verification request, respectively executing service test scripts corresponding to the NTP service verification request and the DNS service verification request in the physical server to obtain service initialization information of the physical server, and if the service initialization information comprises NTP service initialization information and DNS service initialization information.
S180, judging whether the initialization information meets a preset initialization threshold value or not to obtain a verification result whether the physical server is available or not.
Judging whether initialization information fed back by a physical server meets an initialization threshold value according to the initialization threshold value preset in a user terminal to obtain a verification result of whether the physical server is available, and if the verification result of the physical server is available, indicating that the physical server completes initialization of an operating system and can provide service for clients outside an enterprise; otherwise, the physical server is indicated to be incapable of providing service for the client outside the enterprise. Specifically, the initialization threshold may include a network card initialization threshold and a service initialization threshold.
For example, if the network card initialization threshold is 50ms, and the server initialization threshold is 150/S, it may be determined whether the network delay corresponding to each network card in the initialization information of the physical server is not greater than 50ms, and it may be determined whether the processing speed of each service in the initialization information of the physical server is not less than 150/S, if the network card authentication request and the service authentication request of the physical server satisfy the initialization threshold, the authentication result of the physical server is obtained as available, otherwise, the authentication result of the physical server is obtained as unavailable.
In an embodiment, step S160 is followed by the steps of: and uploading the execution result to a block chain.
And uploading the execution result to a block chain. Specifically, the corresponding digest information is obtained based on the execution result, and specifically, the digest information is obtained by hashing the execution result, for example, using the sha256s algorithm. Uploading summary information to the blockchain can ensure the safety and the fair transparency of the user. Other user devices may download the summary information from the blockchain to verify that the execution results have been tampered with. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Referring to fig. 7, fig. 7 is another flowchart illustrating an operating system initialization method according to an embodiment of the present invention, and as shown in fig. 7, the method is applied to a physical server 20 and includes steps S210 to S250.
S210, receiving an information acquisition request from the user terminal, and executing the instruction information loaded in the memory of the physical server to acquire basic configuration information of the physical server.
The physical server is also provided with a memory, if the physical server receives an information acquisition request from a user terminal, corresponding basic configuration information can be acquired by executing instruction information loaded in the memory of the physical server, and the basic configuration information of the physical server comprises disk array type information and network connection information.
S220, sending the basic configuration information to the user terminal.
S230, receiving a system image file from the user terminal, and configuring the execution priority of the system image file, wherein the system image file comprises an initialization script.
And if the system image file from the user terminal is received, configuring the execution priority of the system image file so as to preferentially execute the system image file when the physical server is restarted.
S240, after restarting the physical server, executing the system image file, and sending initialization parameters to the user terminal.
And after the physical server is restarted, preferentially executing the system image file, acquiring corresponding initialization parameters and sending the initialization parameters to the user terminal.
And S250, receiving the execution information sent by the user terminal through remote login, executing the stored initialization script and feeding back the execution result to the user terminal.
And if receiving execution information sent by the user terminal through remote login, executing the initialization script stored in the physical server to obtain a corresponding execution result, and feeding back the execution result to the user terminal.
In one embodiment, as shown in fig. 8, step S250 includes substeps S251 and S252.
S251, acquiring a system script matched with the system type of the execution information in the initialization script for execution; and S252, obtaining a result obtained by executing the system script as the execution result and feeding the execution result back to the user terminal.
Specifically, the execution information further includes system types, the initialization script includes a system script corresponding to each system type, each system type may correspond to one or more system scripts in the initialization script, and the physical server may obtain one type of system scripts in the initialization script that is matched with the system type to execute the system scripts. The system type in the execution information may be Linux, Vmware esxi, or Windows. Obtaining a result obtained by executing the system script as an execution result and feeding back the result to the user terminal, wherein if the system script matched with the system type is successfully executed, the successfully executed execution result is fed back; otherwise, feeding back the execution result of unsuccessful execution.
The technical method can be applied to application scenes including initialization of an operating system in a physical server, such as intelligent government affairs, intelligent city management, intelligent community, intelligent security, intelligent logistics, intelligent medical treatment, intelligent education, intelligent environmental protection and intelligent traffic, so that construction of a smart city is promoted.
In the operating system initialization method provided by the embodiment of the invention, an information acquisition request is sent to a physical server corresponding to the server list information to acquire corresponding basic configuration information, the basic configuration information of each physical server is verified according to the physical server list information, a system image file is sent to a physical server passing verification, whether initialization parameters fed back by the physical servers are accurate or not is verified according to parameter information, if so, the physical servers are remotely logged in to execute initialization scripts contained in the system image file, and the execution results of the physical servers executing the initialization scripts are acquired. By the method, the basic configuration information and the initialization parameters of the physical server are verified, and the physical server is remotely logged in after the verification is passed to execute the initialization script contained in the system image file so as to realize the initialization of the operating system, so that the efficiency of the initialization of the operating system can be improved, and the stability of the initialized operating system in the physical server is greatly improved.
An embodiment of the present invention further provides an operating system initialization system 100, where the operating system initialization system 100 is configured to execute any embodiment of the foregoing operating system initialization method. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of an operating system initialization system 100 according to an embodiment of the present invention. The os initialization system 100 includes a user terminal 10 and at least one physical server 20.
As shown in fig. 9, the user terminal 10 includes a basic configuration information obtaining unit 101, a physical server verifying unit 102, a system image file transmitting unit 103, an initialization parameter verifying unit 104, an executing unit 105, and an execution result obtaining unit 106, and the physical server 20 includes an instruction information executing unit 201, a basic configuration information transmitting unit 202, an execution priority configuring unit 203, an initialization parameter transmitting unit 204, and a script executing unit 205.
A basic configuration information obtaining unit 101, configured to receive server list information input by a user, and send an information obtaining request to a physical server corresponding to the server list information to obtain basic configuration information corresponding to the server list information.
A physical server verifying unit 102, configured to verify, according to the server list information, whether the physical server included in the basic configuration information passes verification.
In one embodiment, the physical server authentication unit 102 includes sub-units: the device comprises a type information judging unit, a connection information judging unit and a verification result acquiring unit.
A type information judging unit, configured to judge whether the disk array type information of each physical server is the same as the corresponding type information in the server list information; a connection information determining unit, configured to determine whether the network connection information of the physical server is the same as the corresponding connection information in the server list information if the disk array type information is the same as the corresponding type information in the server list information; and the verification result acquisition unit is used for judging that the physical server passes the verification if the network connection information is the same as the corresponding connection information in the server list information.
A system image file sending unit 103, configured to send a system image file to the physical server if the physical server passes verification, where the system image file includes an initialization script.
In one embodiment, the user terminal 10 further includes sub-units: the mirror interface is connected with the establishing unit.
And the mirror image interface connection establishing unit is used for sending an interface connection request to the physical server so as to establish mirror image interface connection with the physical server through a mirror image interface associated with the interface connection request.
And an initialization parameter verification unit 104, configured to receive the initialization parameter fed back by the physical server, and verify whether the initialization parameter is accurate according to pre-stored parameter information.
An executing unit 105, configured to log in the physical server remotely to execute the initialization script if the initialization parameter is accurate.
In an embodiment, the execution unit 105 further comprises a sub-unit: a storage judging unit, an initialization script copying unit and an execution information transmitting unit.
The storage judging unit is used for remotely logging in the physical server and judging whether the initialization script is stored in a storage area corresponding to a preset storage path in the physical server or not; the initialization script copying unit is used for copying the initialization script into the storage area corresponding to the storage path for storage if the initialization script is not stored in the storage area corresponding to the storage path; and the execution information sending unit is used for sending execution information to the physical server so as to trigger the physical server to execute the initialization script.
An execution result obtaining unit 106, configured to obtain an execution result of the initialization script executed by the physical server.
In one embodiment, the user terminal 10 further includes sub-units: an authentication request transmission unit and an authentication unit are initialized.
An initialization validation request sending unit, configured to send an initialization validation request to the physical server, so as to obtain initialization validation information fed back by the physical server according to the initialization validation request; and the verification unit is used for judging whether the initialization information meets a preset initialization threshold value or not so as to obtain a verification result whether the physical server is available or not.
An instruction information executing unit 201, configured to receive an information obtaining request from the user terminal, and execute the instruction information loaded in the memory of the physical server to obtain the basic configuration information of the physical server.
A basic configuration information sending unit 202, configured to send the basic configuration information to the ue.
An execution priority configuration unit 203, configured to receive a system image file from the user terminal, and configure an execution priority of the system image file, where the system image file includes an initialization script.
An initialization parameter sending unit 204, configured to execute the system image file after restarting the physical server, and send an initialization parameter to the user terminal.
A script execution unit 205, configured to receive execution information sent by the user terminal through telnet, execute the stored initialization script, and feed back an execution result to the user terminal.
In one embodiment, the script execution unit 205 includes sub-units: the system comprises a system script execution unit and an execution result feedback unit.
The system script execution unit is used for acquiring the system script matched with the system type of the execution information in the initialization script for execution; and the execution result feedback unit is used for acquiring a result obtained by executing the system script as the execution result and feeding the result back to the user terminal.
The operating system initialization system provided by the embodiment of the invention applies the operating system initialization method, sends an information acquisition request to a physical server corresponding to the server list information to acquire corresponding basic configuration information, verifies the basic configuration information of each physical server according to the physical server list information, sends a system image file to a physical server passing the verification, verifies whether the initialization parameters fed back by the physical server are accurate or not according to the parameter information, remotely logs in the physical server to execute the initialization script contained in the system image file if the initialization parameters are accurate, and acquires the execution result of the physical server executing the initialization script. By the method, the basic configuration information and the initialization parameters of the physical server are verified, and the physical server is remotely logged in after the verification is passed to execute the initialization script contained in the system image file so as to realize the initialization of the operating system, so that the efficiency of the initialization of the operating system can be improved, and the stability of the initialized operating system in the physical server is greatly improved.
The operating system initialization system described above may be implemented in the form of a computer program that may be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a user terminal for executing the operating system initialization method to initialize the operating system in the physical server, or may be a physical server for receiving data information from the user terminal and completing initialization of the operating system.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032, when executed, cause the processor 502 to perform the operating system initialization method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be caused to perform an operating system initialization method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run the computer program 5032 stored in the memory to implement the corresponding functions in the operating system initialization method.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by the processor, implements the steps included in the operating system initialization method described above.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be 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 also be an electric, mechanical or other form of connection.
The 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 embodiments of the present invention.
In addition, functional units in the embodiments of the present invention 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 invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several 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 according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An operating system initialization method applied to a user terminal, wherein the user terminal communicates with at least one physical server, the method comprising:
receiving server list information input by a user, and sending an information acquisition request to a physical server corresponding to the server list information to acquire basic configuration information corresponding to the server list information;
verifying whether the physical server contained in the basic configuration information passes the verification according to the server list information;
if the physical server passes the verification, sending a system image file to the physical server, wherein the system image file comprises an initialization script;
receiving initialization parameters fed back by the physical server, and verifying whether the initialization parameters are accurate according to prestored parameter information;
if the initialization parameters are accurate, remotely logging in the physical server to execute the initialization script;
and acquiring an execution result of the initialization script executed by the physical server.
2. The os initialization method according to claim 1, wherein the basic configuration information includes disk array type information and network connection information of the physical server, and the verifying whether the physical server included in the basic configuration information is verified according to the server list information includes:
judging whether the disk array type information of each physical server is the same as the corresponding type information in the server list information or not;
if the disk array type information is the same as the corresponding type information in the server list information, judging whether the network connection information of the physical server is the same as the corresponding connection information in the server list information;
and if the network connection information is the same as the corresponding connection information in the server list information, judging that the physical server passes the verification.
3. The method for initializing an operating system according to claim 1, wherein before sending the system image file to the physical server, the method further comprises:
sending an interface connection request to the physical server to establish a mirror interface connection with the physical server through a mirror interface associated with the interface connection request.
4. The os initialization method of claim 1, wherein said remotely logging into the physical server to execute the initialization script stored in the physical server comprises:
remotely logging in the physical server, and judging whether the initialization script is stored in a storage area corresponding to a preset storage path in the physical server;
if the initialization script is not stored in the storage area corresponding to the storage path, copying the initialization script to the storage area corresponding to the storage path for storage;
and sending execution information to the physical server to trigger the physical server to execute the initialization script.
5. The os initialization method according to claim 1, wherein after obtaining the execution result of the initialization script executed by the physical server, the method further comprises:
sending an initialization verification request to the physical server to acquire initialization verification information fed back by the physical server according to the initialization verification request, wherein the initialization verification information comprises a network card verification request and a service verification request;
and judging whether the initialization verification information meets a preset initialization threshold value or not so as to obtain a verification result whether the physical server is available or not.
6. The os initialization method according to claim 1, wherein after obtaining the execution result of the initialization script executed by the physical server, the method further comprises:
and uploading the execution result to a block chain.
7. An operating system initialization method applied to a physical server, the physical server communicating with a user terminal, the method comprising:
receiving an information acquisition request from the user terminal, and executing the instruction information loaded in the memory of the physical server to acquire basic configuration information of the physical server;
sending the basic configuration information to the user terminal;
receiving a system image file from the user terminal, and configuring the execution priority of the system image file, wherein the system image file comprises an initialization script;
after restarting the physical server, executing the system image file and sending initialization parameters to the user terminal;
and receiving execution information sent by the user terminal through remote login, executing the stored initialization script and feeding back an execution result to the user terminal.
8. An operating system initialization system is characterized by comprising a user terminal and at least one physical server, wherein the user terminal comprises a basic configuration information acquisition unit, a physical server verification unit, a system image file sending unit, an initialization parameter verification unit, an execution unit and an execution result acquisition unit, the physical server comprises an instruction information execution unit, a basic configuration information sending unit, an execution priority configuration unit, an initialization parameter sending unit and a script execution unit,
the basic configuration information acquisition unit is used for receiving the server list information input by a user and sending an information acquisition request to a physical server corresponding to the server list information so as to acquire the basic configuration information corresponding to the server list information;
the physical server verifying unit is used for verifying whether the physical server contained in the basic configuration information passes the verification according to the server list information;
the system image file sending unit is used for sending a system image file to the physical server if the physical server passes the verification, wherein the system image file comprises an initialization script;
the initialization parameter verification unit is used for receiving the initialization parameters fed back by the physical server and verifying whether the initialization parameters are accurate or not according to prestored parameter information;
the execution unit is used for remotely logging in the physical server to execute the initialization script if the initialization parameters are accurate;
the execution result acquisition unit is used for acquiring the execution result of the initialization script executed by the physical server;
the instruction information execution unit is used for receiving an information acquisition request from the user terminal and executing the instruction information loaded in the memory of the physical server to acquire basic configuration information of the physical server;
the basic configuration information sending unit sends the basic configuration information to the user terminal;
the execution priority configuration unit is used for receiving a system image file from the user terminal and configuring the execution priority of the system image file, wherein the system image file contains an initialization script;
the initialization parameter sending unit is used for executing the system image file after restarting the physical server and sending initialization parameters to the user terminal;
the script execution unit is used for receiving execution information sent by the user terminal through remote login, executing the stored initialization script and feeding back an execution result to the user terminal.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the operating system initialization method as claimed in any one of claims 1 to 6 or implements the operating system initialization method as claimed in claim 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the operating system initialization method of any one of claims 1 to 6 or to implement the operating system initialization method of claim 7.
CN202010740134.2A 2020-07-28 2020-07-28 Operating system initialization method, system, computer device and storage medium Active CN111880852B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010740134.2A CN111880852B (en) 2020-07-28 2020-07-28 Operating system initialization method, system, computer device and storage medium
PCT/CN2020/122666 WO2021139314A1 (en) 2020-07-28 2020-10-22 Operating system initialization method and system, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010740134.2A CN111880852B (en) 2020-07-28 2020-07-28 Operating system initialization method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN111880852A CN111880852A (en) 2020-11-03
CN111880852B true CN111880852B (en) 2022-06-07

Family

ID=73201373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010740134.2A Active CN111880852B (en) 2020-07-28 2020-07-28 Operating system initialization method, system, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN111880852B (en)
WO (1) WO2021139314A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112669521B (en) * 2020-12-11 2022-12-20 深圳市智莱科技股份有限公司 Vending machine initialization method, vending machine and readable storage medium
CN113485882A (en) * 2021-07-21 2021-10-08 鹏城实验室 Chip verification method and device and computer readable storage medium
CN113783856B (en) * 2021-08-30 2022-11-15 杭州安恒信息技术股份有限公司 Detection method and device for pagoda panel and computer equipment
CN113840009B (en) * 2021-09-29 2024-01-12 天翼物联科技有限公司 Method, device, equipment and medium for transmitting Profile file in segments
CN114416188A (en) * 2022-01-17 2022-04-29 北京百度网讯科技有限公司 Data processing system and method for starting ARM core board
CN116775058A (en) * 2023-06-25 2023-09-19 深圳市青葡萄科技有限公司 Mirror image starting method compatible with heterogeneous hardware, terminal and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101473628A (en) * 2006-04-12 2009-07-01 思杰系统有限公司 Systems and methods for accelerating delivery of a computing environment to remote user
CN109167687A (en) * 2018-09-05 2019-01-08 山东浪潮云投信息科技有限公司 A kind of method and system of batch initialization physical server cluster network configuration

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6829704B2 (en) * 2001-04-13 2004-12-07 General Electric Company Method and system to automatically activate software options upon initialization of a device
US7370092B2 (en) * 2002-09-12 2008-05-06 Computer Sciences Corporation System and method for enhanced software updating and revision
US7398382B2 (en) * 2004-12-29 2008-07-08 Intel Corporation Method and apparatus to enhance platform boot efficiency
US8418139B2 (en) * 2008-04-18 2013-04-09 International Business Machines Corporation System and method for updating initialization parameters for application software from within a software development environment
US7853780B2 (en) * 2008-07-31 2010-12-14 Oracle America, Inc. Core initialization code validation
CN101478424A (en) * 2008-12-18 2009-07-08 深圳华为通信技术有限公司 Distribution method, apparatus and system for local area network side equipment software upgrade data
US9184991B2 (en) * 2012-01-13 2015-11-10 American Megatrends, Inc. Method and apparatus for developing service processor solutions
US9509676B1 (en) * 2013-04-30 2016-11-29 United Services Automobile Association (Usaa) Efficient startup and logon
CN107229492A (en) * 2017-05-17 2017-10-03 东软集团股份有限公司 Installation method, device, system, storage medium and the equipment of server system
US10769279B2 (en) * 2017-08-24 2020-09-08 Apple Inc. Secure element operating system update notification
CN109254783A (en) * 2018-09-18 2019-01-22 郑州云海信息技术有限公司 A kind of server system installation method, device, equipment and readable storage medium storing program for executing
CN110795120B (en) * 2019-09-24 2023-07-28 万翼科技有限公司 Software upgrading method and related device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101473628A (en) * 2006-04-12 2009-07-01 思杰系统有限公司 Systems and methods for accelerating delivery of a computing environment to remote user
CN109167687A (en) * 2018-09-05 2019-01-08 山东浪潮云投信息科技有限公司 A kind of method and system of batch initialization physical server cluster network configuration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Cobbler 中央调度控制技术的微机服务器自动化远程批量部署研究与应用;陈英达 等;《自动化与仪器仪表》;20180425(第4期);第192-195、199页 *

Also Published As

Publication number Publication date
WO2021139314A1 (en) 2021-07-15
CN111880852A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN111880852B (en) Operating system initialization method, system, computer device and storage medium
US7788475B2 (en) Booting utilizing electronic mail
US7996713B2 (en) Server-to-server integrity checking
WO2017162173A1 (en) Method and device for establishing connection of cloud server cluster
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
US20080016178A1 (en) Method and system for remote software installation, recovery, and restoration over a data network
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
US20130179669A1 (en) Trusted network booting system and method
CN112055017B (en) Single-account multi-application unified login method and device and computer equipment
CN111046110B (en) Method, node and computing device for node management of blockchain system
CN112688907B (en) Combined equipment remote proof mode negotiation method, related equipment and storage medium
CN110266761B (en) Load balancing application creation method and device, computer equipment and storage medium
CN111736909B (en) Method and device for starting operating system, computer equipment and storage medium
CN111464609A (en) Data communication method and device and electronic equipment
CN112162825A (en) Equipment configuration method, device, equipment and storage medium
WO2018001023A1 (en) Virtual desktop login method and device for cloud terminal
CN106571968B (en) Service switching method and system
US20220046028A1 (en) Method and system for determining a state of an account in a network device running a light client protocol of a distributed ledger technology network
CN110620695B (en) Data processing method and related equipment
US9059919B1 (en) Systems and methods for preserving network settings for use in a pre-boot environment
CN107172082B (en) File sharing method and system
WO2022127583A1 (en) Virtual machine control method, cloud management device and storage medium
CN116170274A (en) Web application access method, device, system and computing equipment
EP4193625A1 (en) Techniques for device to device authentication
CN113806731A (en) Weak password repairing method and device, storage medium and terminal equipment

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
GR01 Patent grant
GR01 Patent grant