Nothing Special   »   [go: up one dir, main page]

CN109474443B - Configuration method, device and system of newly added server and communication equipment - Google Patents

Configuration method, device and system of newly added server and communication equipment Download PDF

Info

Publication number
CN109474443B
CN109474443B CN201710801102.7A CN201710801102A CN109474443B CN 109474443 B CN109474443 B CN 109474443B CN 201710801102 A CN201710801102 A CN 201710801102A CN 109474443 B CN109474443 B CN 109474443B
Authority
CN
China
Prior art keywords
newly added
added server
server
switch
script file
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
CN201710801102.7A
Other languages
Chinese (zh)
Other versions
CN109474443A (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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710801102.7A priority Critical patent/CN109474443B/en
Publication of CN109474443A publication Critical patent/CN109474443A/en
Application granted granted Critical
Publication of CN109474443B publication Critical patent/CN109474443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a configuration method, a device, a system and communication equipment of a newly added server, wherein the method comprises the following steps: after a data packet sent by a switch connected with a newly added server is received, analyzing a Media Access Control (MAC) address of the newly added server from the data packet, wherein the MAC address of the newly added server is obtained by the switch from a received configuration request sent by the newly added server and is added to the data packet; determining a script file for configuring the newly added server according to the MAC address; and configuring the newly added server according to the script file. By adopting the method provided by the invention, the automatic configuration of the newly added server is effectively realized, the manual participation is reduced, and the installation and deployment efficiency of the newly added server is improved.

Description

Configuration method, device and system of newly added server and communication equipment
Technical Field
The present invention relates to the technical field of service support, and in particular, to a method, an apparatus, a system, and a communication device for configuring a newly added server.
Background
The traditional server deployment scheme is to implement server deployment in a PXE (Preboot eXecution Environment) manner. When a new server is deployed in a machine room or a cloud platform in a manual installation mode, a deployment worker firstly needs to determine which service department the server serves, and determines the type and the version number of an operating system needing to be installed by the server with workers of the service department, the server is delivered to the service department after the operating system is installed according to the requirements of the service department, and finally the workers of the service department deploy service software.
With the continuous expansion of data centers, the traditional manual installation for deploying servers cannot meet the requirement of users on rapid deployment. When the server is deployed in a manual mode, the process is complicated, and deployment personnel are required to be matched with the working personnel of each business department served by the server, so that each department is required to know the installation environment and the process, and the learning burden is brought to the working personnel of each department; on the basis, when a large number of servers are deployed, manual access confirmation is needed, the method is wide in related scope, time-consuming and labor-consuming, and meanwhile problems of installation errors and the like are likely to occur due to high manual participation degree.
In summary, how to implement intelligent installation and deployment of a server, reduce the manual participation, and improve the installation and deployment efficiency of the server is one of the technical problems to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a configuration method, a configuration device, a configuration system and communication equipment of a newly added server, which are used for solving the problems of high manual participation, low deployment efficiency and the like of an installation and deployment method of the newly added server adopted in the prior art.
In a first aspect, an embodiment of the present invention provides a method for configuring a newly added server, where the method includes:
after a data packet sent by a switch connected with a newly added server is received, resolving a Media Access Control (MAC) address of the newly added server from the data packet, wherein the MAC address of the newly added server is obtained from a received configuration request sent by the newly added server by the switch and is added to the data packet;
determining a script file for configuring the newly added server according to the MAC address; and are
And configuring the newly added server according to the script file.
In a second aspect, an embodiment of the present invention provides a configuration apparatus for a newly added server, including:
the system comprises a first analyzing unit, a second analyzing unit and a third analyzing unit, wherein the first analyzing unit is used for analyzing a Media Access Control (MAC) address of a newly added server from a data packet sent by a switch connected with the newly added server after receiving the data packet, and the MAC address of the newly added server is obtained from a received configuration request sent by the newly added server and added to the data packet by the switch;
a first determining unit, configured to determine, according to the MAC address, a script file for configuring the newly added server;
and the configuration unit is used for configuring the newly added server according to the script file.
In a third aspect, an embodiment of the present invention provides a configuration system of a newly added server, including at least one newly added server, at least one switch, a PXE server, and an intelligent sensing server, where the intelligent sensing server is provided with a configuration device of the newly added server.
In a fourth aspect, an embodiment of the present invention provides a communication device, including a memory, a processor, and a computer program stored on the memory and executable on the processor; when the processor executes the program, the configuration method of the newly added server is realized.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the configuration method for a new server according to the present invention.
The invention has the beneficial effects that:
according to the configuration method, the device, the system and the communication equipment of the newly added server provided by the embodiment of the invention, after a data packet sent by a switch connected with the newly added server is received, a Media Access Control (MAC) address of the newly added server is analyzed from the data packet, wherein the MAC address of the newly added server is obtained from a received configuration request sent by the switch and is added into the data packet; determining a script file for configuring the newly added server according to the MAC address; and configuring the newly added server according to the script file. By adopting the method provided by the invention, the automatic configuration of the newly added server is effectively realized, the manual participation is reduced, and the installation and deployment efficiency of the newly added server is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic structural diagram of a configuration system of a newly added server according to an embodiment of the present invention;
fig. 2a is a schematic view of an interaction flow among the newly added server 1, the switch 2, and the smart sensor server 3 according to an embodiment of the present invention;
fig. 2b is a schematic flowchart of determining a script file for configuring the newly added server 1 according to an embodiment of the present invention;
fig. 2c is a schematic flowchart of a process of determining parameter information that needs to be configured for the newly added server according to an embodiment of the present invention;
fig. 2d is a schematic flowchart of configuring the newly added server 1 according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an intelligent sensing server according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a process of determining a script file for configuring the switch according to the port number information according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a configuration method of a newly added server according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a configuration apparatus of a newly added server according to a third embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a configuration method, a configuration device, a configuration system and communication equipment of a newly added server, which are used for solving the problems of high manual participation, low deployment efficiency and the like of an installation and deployment method of the newly added server adopted in the prior art.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
As shown in fig. 1, a schematic structural diagram of a configuration system of a newly added server according to an embodiment of the present invention may include: the system comprises at least one new server 1, at least one switch 2, a PXE server 4 and an intelligent sensing server 3, wherein each switch 2 can be connected with at least one new server 1, each switch 2 is connected with the intelligent sensing server 3, and the PXE server 4 is used for being connected with the new server 1 and the intelligent sensing server 3 respectively.
In specific implementation, by taking an example of configuring any newly added server, an interaction flowchart between the newly added server 1, the switch 2 connected to the newly added server, and the smart sensor server 3 is shown in fig. 2a, and may include the following steps:
s21, the new server 1 sends a configuration request to the switch 2 connected with the new server.
The configuration request carries the MAC address of the new server 1.
In specific implementation, the newly added server 1 in the embodiment of the present invention refers to a server that needs to be initialized but is not installed with a deployed operating system and a required application. The switch 2 in the embodiment of the present invention is a network device for connecting the new server 1.
In specific implementation, after the newly added server 1 is powered on, a configuration request is automatically sent to the switch 2, where the configuration request carries a Media Access Control (MAC) address of the newly added server. Specifically, the configuration request sent by the newly added server 1 to the switch may be an Address Resolution Protocol (ARP) data packet sending request, where the ARP data packet carries the MAC Address of the newly added server 1.
S22, after receiving the configuration request, the switch 2 acquires the MAC address of the newly added server 1 from the configuration request.
In specific implementation, after the switch 2 receives the ARP data packet sending request, the MAC address of the new server 1 can be resolved from the ARP packet.
Specifically, the switch 2 may determine that the ARP packet is received when it detects that a certain port level is raised.
And S23, the switch 2 adds the MAC address to a data packet and sends the data packet to the intelligent sensing server 3.
In specific implementation, the data packet may be but not limited to an SNMP packet (Simple Network Management Protocol), the switch 2 adds the acquired MAC address of the new server 1 to the SNMP packet, and then sends the SNMP packet added with the MAC address of the new server 1 to the smart sensing server 3.
S24, after receiving a data packet sent by the switch 2 connected with the newly added server 1, the intelligent sensing server 3 analyzes the MAC address of the newly added server 1 from the data packet.
In specific implementation, after receiving the SNMP packet added with the MAC address of the newly added server 1, the smart sensing server 3 parses the MAC address of the newly added server 1 from the SNMP packet.
Preferably, the smart sensor server 3 may be divided into four layers according to functions, which are a sensing layer, an information query layer, a configuration generation layer and an execution layer, respectively, as shown in fig. 3, the sensing layer is used to analyze and filter the MAC address and the switch port number of the newly added server 1, and the functions of the information query layer, the configuration generation layer and the execution layer are introduced later.
In specific implementation, the MAC address of the newly added server 1 is analyzed from the SNMP packet by a server MAC address analysis module in the sensing layer.
Preferably, after step S24 is executed and before step S25 is executed, the method further includes:
and analyzing the port number information of the newly added server connected with the switch from the data packet.
In specific implementation, the switch 2 is provided with a plurality of ports, and each port has a unique port number. The connection between the new server 1 and the switch 2 is substantially the connection between the new server 1 and a certain port of the switch 2. The invention needs to realize the automatic configuration of the newly added server, so the newly added server and the PXE server connected with the newly added server need to be arranged in the same VLAN layer by using the switch, the newly added server is started in a network mode, the interaction between the newly added server and the PXE server is further realized, then the PXE server configures the newly added server according to the pre-boot execution environment, the switch needs to be configured based on the reasons, and under the condition that a plurality of switches possibly exist in the current newly added server configuration system, the switches need to be distinguished by using the port numbers of the switches. Therefore, when the switch 2 sends the SNMP data packet to the smart sensor server 3, the SNMP packet also needs to carry port number information of the newly added server 1 connected to the switch 2.
Specifically, the port number information of the connection between the newly added server 1 and the switch 2 is analyzed from the SNMP packet by a switch port number analysis module in the sensing layer.
In specific implementation, after a server MAC address analysis module in a sensing layer analyzes the MAC address of the newly added server 1, and a switch port number analysis module in the sensing layer analyzes the port number information of a switch 2 connected with the newly added server 1, the MAC address and the port number information are sent to an information query layer in an intelligent sensing server 3.
And S25, the intelligent sensing server 3 determines a script file for configuring the newly added server 1 according to the MAC address.
In specific implementation, the newly added server is used for providing services for the service platform. In practical application, when a batch of new servers are purchased, the purchased servers are pre-allocated to which service platform to provide services, and it is assumed that 5 servers are purchased, wherein the number of the servers for providing services to the service platform 1 is 2; the number of servers for providing services for the service platform 2 is 2; the number of servers for serving the service platform 3 is 1. The respective servers are directly distinguished by MAC addresses. Therefore, before configuring the newly added server, the corresponding relationship between the MAC address of the newly added server and the service platform needs to be stored in the smart aware server, which is shown in table 1:
TABLE 1
MAC address Service platform
MAC1 Service platform 1
MAC2 Service platform 1
MAC3 Service platform 2
MAC4 Service platform 2
MAC5 Service platform 3
…… ……
Specifically, the service platform in table 1 may be, but is not limited to, a container, a virtual machine, a cloud environment, and the like. In table 1, the service platforms 1, 2, and 3 may be directly distinguished by using the service platform name, for example, the service platform 1 is a container, the service platform 2 is a virtual machine, and the service platform 3 is a cloud environment.
After the MAC address of the newly added server 1 is resolved by the server MAC address resolution module in the intelligent sensing server 3, the service platform corresponding to the resolved MAC address can be determined from the correspondence between the locally stored MAC address and the service platform, then a script file generated for the service platform in advance is locally obtained according to the service platform, and then the newly added server 1 is configured by using the script file.
Preferably, the determining a script file for configuring the new server 1 according to the method shown in fig. 2b further includes the following steps:
and S251, determining parameter information which needs to be configured for the newly added server according to the MAC address.
In specific implementation, step S251 may be executed according to the method shown in fig. 2c, including the following steps:
s2511, determining the service platform corresponding to the MAC address of the newly-added server according to the corresponding relation between the MAC address and the service platform.
In specific implementation, after the MAC address of the newly added server 1 is determined, the service platform corresponding to the MAC address of the newly added server 1, that is, the service platform to which the newly added server belongs, may be determined according to the correspondence between the locally stored MAC address and the service platform.
S2512, according to the determined service platform, determining the general parameter information of the service platform to which the newly added server belongs as the parameter information required to be configured for the newly added server.
In specific implementation, each service platform usually has its own general parameter information, for example, 5 servers are used to provide services for the cloud environment, and these 5 servers should have some identical parameter information, which is called general parameter information.
Preferably, the parameter information includes operation instruction information and function information, where the operation instruction information includes at least one of the following: a start sequence instruction and a restart instruction, the functional information including at least one of: the software package information of each software and the dependency package information of each software are installed in the newly added server.
In a specific implementation, the operation instruction information may be, but is not limited to, a start sequence instruction and a restart instruction. The start sequence instruction is used for enabling the newly added server 1 to start in a network mode. The restart instruction is used for realizing automatic restart when the new server 1 is required to be restarted when business application is installed.
Specifically, after the function information is used to configure the new server 1, the new server 1 is enabled to implement a corresponding function, and the operation information included in the function information may be, but is not limited to, the type and version of the operating system installed for the new server 1; the software package information of each software included in the function information may be, but is not limited to, an installation package version, and the like of each application that needs to be installed for the new server 1, and the dependency package information of each software may be understood as dependency package information having a dependency relationship with the installation package. Software under the Linux operating system generally has a dependency package.
In addition, the information query layer included in the smart sensing server 3 is configured to determine a service parameter by matching the database thereof with the information sent by the sensing layer, where the service parameter is a necessary parameter for generating a script file by the configuration generation layer. And after determining the service parameters, the information inquiry layer sends the service parameters to the configuration generation layer.
Therefore, the information query layer in the smart sensor server 3 may determine the parameter information required by the new server 1, that is, the service configuration information query module in the information query layer performs step 251 and steps 2511 and 2512.
And S252, determining a configuration template for configuring the newly added server from a stored template library according to the MAC address.
In specific implementation, after the parameter information required to be configured for the newly added server 1 is determined, a configuration module also needs to be determined. Specifically, the manufacturer of the new server 1 may be determined according to the MAC address. Since each manufacturer has its own configuration template, it is necessary to determine the manufacturer of the new server 1. After the manufacturer is determined, the configuration template of the manufacturer is found from the template library.
And S253, determining a script file for configuring the newly added server according to the parameter information and the configuration template.
Preferably, the configuration template comprises an instruction configuration template; and when step S253 is executed, specifically including:
and generating an instruction script file for configuring the operation instruction of the newly added server according to the operation instruction information and the instruction configuration template, wherein the instruction script file comprises a starting sequence instruction script file and a restarting instruction script file.
In specific implementation, the instruction configuration template may include, but is not limited to, a start order instruction template and a restart instruction template, and a start order instruction script file for configuring a start order of the newly added server 1 may be generated according to the start order instruction and the start order instruction template; and generating a restart instruction script file for configuring a restart mode of the newly added server 1 according to the restart instruction and the restart instruction template.
Of course, the operation instruction information may also include other information, and the corresponding instruction configuration template may also include other configuration templates, which are specifically determined according to actual needs.
Further, the configuration template also comprises a service configuration template; and when step S253 is executed, determining a script file for configuring the newly added server according to the parameter information and the configuration template, specifically including:
and generating a service configuration script file for deploying the service which needs to be configured by the newly added server according to the function information and the service configuration template.
In specific implementation, the service configuration template may include, but is not limited to, an application installation template, a modification template, and an upgrade template of each service. For example, an os script file for installing operation information for the new server 1 may be generated according to the type and version of the os and an os installation template, that is, the installation of the os of the new server 1 may be completed by executing the os script file one by one. In addition, a script file for installing the software for the new server 1 can be generated according to the software package information, the dependency package information and the installation template of the software of any software, and the installation of the software in the new server 1 can be completed by executing the script file one by one. Similarly, the generation mode of the script file of other software, the generation mode of the modified script and the generation mode of the upgraded script file are similar, and are not described herein again.
Specifically, the configuration generation layer in the intelligent management server 3 may be configured to generate a corresponding script file, and then send the generated script file to the execution layer, and the execution layer configures the new server 1 according to the script file. In a specific implementation, S252 and S253 are performed by the configuration generation layer. The starting sequence instruction script file and the restarting instruction script file can be generated by an instruction script generating module in the configuration generating layer and are sent to an instruction configuration module in the execution layer; and generating a service configuration script file by a service configuration script generating module in the configuration generating layer and sending the service configuration script file to a service configuration module in the execution layer.
Preferably, after analyzing the port number information of the new server connected to the switch from the data packet, and before performing step S26, the method further includes:
and determining a script file for configuring the switch according to the port number information.
In specific implementation, the necessity of configuring the switch 2 has been described above, so after the port number information of the port where the new server 1 is connected to the switch 2 is obtained, the script file that can be used for configuring the switch 2 is obtained by using the port number information.
In specific implementation, the implementation of the step and the implementation of the step S25 are not in sequence, and may be performed simultaneously.
Preferably, determining a script file for configuring the switch according to the port number information according to the process shown in fig. 4 includes the following steps:
s31, determining parameter information of the switch according to the port number information, wherein the parameter information comprises a management address of the switch.
When the method is specifically implemented, each switch has a management address, and a manager can find the switch corresponding to the management address by using the management address, and then can modify the switch.
Specifically, a list about the switch may be maintained in the smart sensor server 3, where a correspondence between port number information of the switch and parameter information of the switch is stored in the list, and if the parameter information only includes a management address, the correspondence between the port number information and the management address is stored in the list. It should be noted that, since there is a case where a plurality of pieces of port number information correspond to one switch, there is a case where a plurality of pieces of port number information correspond to the same piece of parameter information in the list.
And S32, determining a configuration template for configuring the switch from a stored template library according to the management address.
Specifically, after the management address of the switch 2 is determined in step S31, the manufacturer of the switch 2 may be determined according to the management address, and since each switch manufacturer has its own configuration template, it is necessary to determine the manufacturer of the switch 2. After the manufacturer is determined, the switch configuration template for the manufacturer is found from the template library.
And S33, determining a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch.
Preferably, the parameter information of the switch further includes at least one of the following information: and logging in a user name and a password required by the switch, a port mode to which a port corresponding to the port number belongs, and a VLAN (virtual local area network) number to which the port belongs.
In specific implementation, a manager can find the switch corresponding to the management address according to the management address, and when configuring the interactive machine, the manager needs to log in to the switch 2, so that the manager needs to obtain login information, i.e., a user name and a password, of the switch 2.
Specifically, a script file for logging in the switch 2 is obtained by using the management address, the user name and the password required for logging in the switch 2, and the template for logging in the switch. The script file can be used to successfully log on to the switch 2.
In addition, a script file for configuring the port mode of the port of the switch can be generated according to the port mode to which the port corresponding to the port number included in the parameter information belongs and the configuration template for configuring the port mode. The script file is executed one by one, and the configuration of the port mode of the port corresponding to the port number information can be completed.
Furthermore, a script file for configuring the VLAN number to which the port corresponding to the port number information belongs may be generated according to a VLAN (Virtual Local Area Network) number to which the port belongs and a configuration template for configuring the VLAN number of the port, which are included in the parameter information. After the script file is executed one by one, the VLAN number to which the port corresponding to the port number information of the switch 2 belongs may be configured to be a required VLAN number.
Of course, the parameter information of the switch 2 may also include other parameter information, and of course, the configuration template may also include other configuration templates, which are specifically configured according to actual needs.
Specifically, a script file required for configuring the switch may be generated by the switch execution script generation module in the configuration generation layer. That is, the switch execution script generation module executes S31 to S33. And then sending the obtained script file for configuring the switch to a switch configuration module in the execution layer.
And S26, the intelligent sensing server 3 configures the newly added server 1 according to the script file.
In specific implementation, the configuration of the new server 1 may be performed according to the flow shown in fig. 2d, and includes the following steps:
s261, the intelligent sensing server 3 sends each instruction in the instruction script file to the newly added server 1.
Preferably, before executing step S261, the method further includes:
and initializing the newly added server so that the newly added server has the condition for executing the instruction script file.
In specific implementation, after generating the instruction script file, the smart sensing server 3 matches a preset initialization instruction, and then sends the initialization instruction to the newly added server 1 to initialize the newly added server 1. Because the newly added server 1 cannot execute any instruction, when the initialization instruction is multiple, the intelligent sensing server 3 needs to send each instruction to the newly added server 1 in sequence to complete initialization of the newly added server 1.
In specific implementation, the execution layer in the smart sensing server 3 is configured to complete configuration of the newly added server according to the script file, specifically, an instruction configuration module in the execution layer may send an initialization instruction to the newly added server 1, and when the newly added server 1 has a condition for executing the instruction script file, the instruction configuration module sends each instruction in the instruction script file to the newly added server 1 in sequence, so that the newly added server 1 executes each received instruction, and completes configuration of the operation instruction, for example, the instruction configuration module sends each instruction in the start sequence instruction script file to the newly added server 1 in sequence, so as to complete configuration of the start sequence of the newly added server 1, and/or the instruction configuration module sends a restart instruction script file to the newly added server 1 in sequence, so as to complete configuration of a restart instruction of the newly added server 1, and the like.
And S262, the newly added server 1 completes the configuration of the operation instruction according to the received instruction.
S263, the smart sensor server 3 sends each configuration command in the script file for configuring the switch 2 to the switch 2.
In specific implementation, after the intelligent sensing server 3 sends each instruction in the instruction script file to the newly added server 1, and after the newly added server 1 completes configuration of the operation instruction, the intelligent sensing server 3 sends a switch configuration instruction to the switch.
Specifically, the script file may be a plurality of script files, such as a script file for logging in the switch 2, a script file for configuring a port mode of a port of the switch, a script file for configuring a VLAN number to which a port of the switch belongs, and the like.
In specific implementation, the intelligent sensing server 3 firstly logs in the switch 2 according to the script file of the switch 2 and has the authority of configuring the switch; and then, according to a script file for configuring the port mode of the port of the switch, configuring the port mode of the port connected with the newly added server 1 in the switch 2, and according to each instruction in the script file for configuring the VLAN number to which the port of the switch belongs, configuring the VLAN number of the port connected with the newly added server 1 in the switch 2, so that the switch 2 can set the newly added server 1 and the PXE server 4 in the same VLAN layer.
Specifically, the switch configuration module in the execution layer in the intelligent sensing server 3 sends each instruction in the script file for configuring the switch 2 to the switch one by one, so that the switch 2 sets the newly added server 1 and the PXE server 4 in the same VLAN layer according to the script file.
Preferably, before executing step S263, the method further includes:
initializing the switch to condition the switch to execute the script file for configuring the switch.
In specific implementation, before configuring the switch 2, a preset initialization instruction should be matched according to the script file for configuring the switch 2, and then the initialization instruction is sent to the switch 2, so that the switch 2 has a condition for executing the script file for configuring the switch.
And S264, the exchanger 2 sets the newly added server 1 and the pre-starting execution environment PXE server 4 in the same VLAN layer according to the received configuration instruction.
S265, the smart awareness server 3 sends each service configuration command in the service configuration script file to the PXE server 4.
Preferably, before executing step S265, the method further includes:
initializing the PXE server so that the PXE server has the condition for executing the service configuration script file.
In specific implementation, before sending each instruction in the service configuration script file to the PXE server 4, the intelligent sensing server 3 matches a preset initialization instruction according to the script file, and then sends the initial instruction to the PXE server 4, so that the PXE server has a condition for executing the service configuration script file. And then each instruction in the service configuration script file is sent to the PXE server 4, so that the PXE configures the service application of the newly added server 1 according to each received instruction.
Specifically, if there are multiple service configuration script files, each instruction in each service configuration script file is sequentially sent to the PXE server 4, for example, each instruction in the operating system script file is sent to the PXE server 4 first, so that the PXE server 4 guides the new server 1 to complete the installation of the operating system according to each received instruction. Then, the intelligent sensing server 3 sends each instruction in the script file for installing each piece of software to the PXE server 4, so that the PXE server 4 guides the newly added server 1 to complete the installation of the software and the like according to each received installation instruction.
Specifically, the initialization instruction and each instruction in the service configuration script file may be sent to the PXE server 4 by the service configuration module in the smart awareness server 3.
And S266, the PXE server 4 completes the service configuration of the new server 1 according to the received service configuration instruction.
Preferably, in order to implement the automatic installation and deployment of the new server 1, the new server 1 needs to be set in a network boot manner, so before configuring the operating system or software for the new server, the boot sequence instruction of the new server 1 needs to be set, that is, step S261 is executed first. Furthermore, since the configuration of the new server 1 may cause a restart, for example, when an operating system or software is installed, in order to avoid manual restart, an automatic restart instruction needs to be installed in the new server 1 in advance, and therefore step S261 must be executed before step S265 is executed. In addition, in order to implement that the PXE server 4 automatically guides the new server 1 to complete the installation and deployment of the service application, the switch 2 needs to be configured before the step S265 is pointed, so that the switch 2 can set the new server 1 and the PXE server 4 in the same VLAN layer, thereby achieving the automatic installation and deployment of the new server 1. Therefore, in the present invention, steps S261, S263 and step S265 have a sequential execution order, and the application executes step S261, then step S263, and finally step S265. However, step S263 and step S262 do not have a sequential execution order, and step S265 and step S264 do not have a sequential execution order.
The newly added server 1 is directly connected with the PXE server 4 through the switch 2 by adopting a star network topology. The intelligent sensing server 3 provided by the invention ensures that the switch 2 must generate a service configuration script file through the intelligent sensing server 3, firstly triggers the initialization of the PXE server, then transmits the service configuration script file, and completes the installation and deployment of the operation system and the service application of the PXE server 4 for guiding the newly added server 1.
In the configuration method for the newly added server provided in the embodiment of the present invention, after receiving a data packet sent by a switch connected to the newly added server, a media access control MAC address of the newly added server is parsed from the data packet, where the MAC address of the newly added server is obtained by the switch from a received configuration request sent by the newly added server and is added to the data packet; determining a script file for configuring the newly added server according to the MAC address; and configuring the newly added server according to the script file. By adopting the method provided by the invention, the automatic configuration of the newly added server is effectively realized, the manual participation is reduced, and the installation and deployment efficiency of the newly added server is improved.
Example two
In order to better understand the present invention, a second embodiment of the present invention more fully describes the configuration method of the newly added server provided by the present invention on the basis of the first embodiment, and as shown in fig. 5, the method may include the following steps:
s41, the new server 1 sends a configuration request to the switch 2 connected thereto.
In specific implementation, reference may be made to the implementation of step S21 in the first embodiment of the present invention for the implementation of step S41 in the second embodiment of the present invention, and repeated descriptions are omitted.
S42, after receiving the configuration request, the switch 2 acquires the MAC address of the newly added server 1 from the configuration request.
S43, the switch 2 adds the MAC address to a data packet and sends the data packet to the intelligent sensing server 3.
In specific implementation, reference may be made to the implementation of steps S22 and S23 in the first embodiment of the present invention for the implementation of steps S42 and S43 in the second embodiment of the present invention, and repeated descriptions are omitted.
S44, after receiving the data packet sent by the switch 2 connected with the new server 1, the intelligent sensing server 3 analyzes the MAC address of the new server 1 from the data packet.
In specific implementation, reference may be made to the implementation of step S24 in the first embodiment of the present invention for the implementation of step S44 in the second embodiment of the present invention, and repeated descriptions are omitted here.
S45, the intelligent sensing server 3 analyzes the port number information of the newly added server connected with the switch from the data packet.
Specifically, the implementation of step S45 in the second embodiment of the present invention may refer to the implementation of the corresponding part in the first embodiment of the present invention, and repeated details are not repeated.
S46, the intelligent sensing server 3 determines the service platform corresponding to the MAC address of the newly-added server according to the corresponding relation between the MAC address and the service platform.
S47, the intelligent sensing server 3 determines the general parameter information of the service platform to which the newly added server belongs as the parameter information which needs to be configured for the newly added server according to the determined service platform.
In specific implementation, the implementation of steps S46 and S47 may refer to the implementation of steps S2511 and S2512 in the first embodiment, and repeated details are not repeated.
And S48, the intelligent sensing server 3 determines a configuration template for configuring the newly added server from a stored template library according to the MAC address.
In specific implementation, reference may be made to the implementation of step S252 in the first embodiment for the implementation of step S48, and repeated descriptions are omitted.
And S49, the intelligent sensing server 3 generates an instruction script file for configuring the operation instruction of the newly added server according to the operation instruction information and the instruction configuration template.
S410, the intelligent sensing server 3 generates a service configuration script file for deploying the service which needs to be configured by the newly added server according to the function information and the service configuration template.
In specific implementation, reference may be made to the implementation of step S253 in the first embodiment for the implementation of steps S49 and S410, and repeated details are not repeated.
S411, the intelligent sensing server 3 determines parameter information of the switch according to the port number information, wherein the parameter information comprises a management address of the switch.
And S412, the intelligent sensing server 3 determines a configuration template for configuring the switch from a stored template library according to the management address.
S413, the smart sensor server 3 determines a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch.
In specific implementation, reference may be made to the implementation of steps S31 to S33 in the first embodiment for the implementation of steps S411 to S413, and repeated descriptions are omitted.
S414, the intelligent sensing server 3 sends each instruction in the instruction script file to the newly added server 1.
And S415, the new server 1 completes the configuration of the operation instruction according to the received instruction.
S416, the smart sensor server 3 sends each configuration command in the script file for configuring the switch 2 to the switch 2.
And S417, the exchanger 2 sets the newly added server 1 and the pre-boot execution environment PXE server 4 in the same VLAN layer according to the received configuration instruction.
S418, the smart awareness server 3 sends each service configuration command in the service configuration script file to the PXE server 4.
And S419, the PXE server 4 completes the service configuration of the newly added server 1 according to the received service configuration instruction.
In specific implementation, reference may be made to the implementation of steps S261 to S266 in the first embodiment for the implementation of steps S414 to S419, and repeated descriptions are omitted here.
In addition, in the second embodiment of the present invention, steps S414 and S416 and step S418 have a sequential execution order, and the application executes step S414 first, then step S416, and finally step S418. However, step S416 and step S265 do not have a sequential execution order, and step S268 and step S267 do not have a sequential execution order.
In the configuration method of the new server provided in the second embodiment of the present invention, after receiving a data packet sent by a switch connected to the new server, an MAC address of the new server and port number information of the new server connected to the switch are analyzed from the data packet, where the MAC address of the new server is obtained by the switch from a received configuration request sent by the new server and is added to the data packet; then determining a service platform corresponding to the MAC address of the newly-added server according to the corresponding relation between the MAC address and the service platform; according to the determined service platform, determining the general parameter information of the service platform to which the newly added server belongs as the parameter information needing to be configured for the newly added server; and the intelligent sensing server determines a configuration template for configuring the newly added server from a stored template library according to the MAC address, generates an instruction script file for configuring the operation instruction of the newly added server according to the operation instruction information and the instruction configuration template, and generates a service configuration script file for deploying the service required to be configured by the newly added server according to the function information and the service configuration template. Meanwhile, the intelligent sensing server also needs to determine parameter information of the switch according to the port number information, wherein the parameter information comprises a management address of the switch; determining a configuration template for configuring the switch from a stored template library according to the management address; and then determining a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch. After determining an instruction script file, a service configuration script file and a script file for configuring the switch, the intelligent sensing server firstly sends each instruction in the instruction script file to the newly added server, so that the newly added server completes configuration of an operation instruction according to the received instruction; secondly, sending each configuration command in the script file for configuring the switch to the switch, so that the newly added server and a pre-boot execution environment PXE server are arranged in the same VLAN layer according to the received configuration command; and finally, sending each service configuration command in the service configuration script file to the PXE server so that the PXE server completes service configuration of the newly added server according to the received service configuration command. Therefore, automatic installation and deployment of the newly added server are realized, the manual participation is reduced, and meanwhile, the installation and deployment efficiency of the newly added server is improved.
EXAMPLE III
Based on the same inventive concept, the embodiment of the present invention further provides a configuration apparatus for a newly added server, and because the principle of the apparatus for solving the problem is similar to the configuration method of the newly added server, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, a schematic structural diagram of a configuration apparatus for a newly added server according to a third embodiment of the present invention includes: a first parsing unit 51, a first determining unit 52 and a configuration unit 53, wherein:
a first analyzing unit 51, configured to, after receiving a data packet sent by a switch connected to a newly added server, analyze a MAC address of the newly added server from the data packet, where the MAC address of the newly added server is obtained from a received configuration request sent by the newly added server and is added to the data packet by the switch;
a first determining unit 52, configured to determine, according to the MAC address, a script file for configuring the newly added server;
and the configuration unit 53 is configured to configure the newly added server according to the script file.
Preferably, the first determining unit 52 is specifically configured to determine, according to the MAC address, parameter information that needs to be configured for the newly added server; determining a configuration template for configuring the newly added server from a stored template library according to the MAC address; and determining a script file for configuring the newly added server according to the parameter information and the configuration template.
Further, the first determining unit 52 is specifically configured to determine, according to a correspondence between an MAC address and a service platform, the service platform corresponding to the MAC address of the newly added server; and according to the determined service platform, determining the general parameter information of the service platform to which the newly added server belongs as the parameter information needing to be configured for the newly added server.
Preferably, the parameter information includes operation instruction information and function information, where the operation instruction information includes at least one of the following: a start sequence instruction and a restart instruction, the functional information including at least one of: the software package information of each software and the dependency package information of each software are installed in the newly added server.
Preferably, the configuration template comprises an instruction configuration template; and
the first determining unit 52 is specifically configured to generate, according to the operation instruction information and the instruction configuration template, an instruction script file for configuring the operation instruction of the newly added server, where the instruction script file includes a start sequence instruction script file and a restart instruction script file.
Further, the configuration template also comprises a service configuration template; and
the first determining unit 52 is further configured to generate a service configuration script file for deploying the service that needs to be configured by the newly added server according to the function information and the service configuration template.
Preferably, the apparatus further comprises:
the second analysis unit is used for analyzing the port number information of the newly added server connected with the switch from the data packet after the first analysis unit receives the data packet sent by the switch connected with the newly added server and before the determination unit determines the script file used for configuring the newly added server according to the MAC address;
and a second determining unit, configured to determine, according to the port number information, a script file for configuring the switch before the configuring unit configures the newly added server according to the script file.
Preferably, the second determining unit is specifically configured to determine parameter information of the switch according to the port number information, where the parameter information includes a management address of the switch; determining a configuration template for configuring the switch from a stored template library according to the management address; and determining a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch.
Preferably, the parameter information of the switch further includes at least one of the following information: and logging in a user name and a password required by the switch, a port mode to which a port corresponding to the port number belongs, and a VLAN (virtual local area network) number to which the port belongs.
Preferably, the configuration unit 53 is specifically configured to send each instruction in the instruction script file to the newly added server, and trigger the newly added server to complete configuration of an operation instruction according to the received instruction; sending each configuration command in the script file for configuring the switch to the switch, and triggering the switch to set the newly added server and the pre-boot execution environment PXE server in the same VLAN layer; and sending each service configuration command in the service configuration script file to the PXE server, and triggering the PXE server to complete service configuration on the newly added server according to the received service configuration command.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention. For example, the configuration device of the newly added server provided by the third embodiment of the present invention may be disposed in the smart sensor server, and the smart sensor server completes installation and deployment of the newly added server.
Example four
The fourth embodiment of the present invention provides a communication device, which includes a memory, a processor, and a computer program stored in the memory and operable on the processor; when the processor executes the program, the configuration method of the newly added server provided by any one of the first embodiment and the second embodiment of the present invention is implemented.
EXAMPLE five
Fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the configuration method of the newly added server according to any one of the first embodiment and the second embodiment of the present invention.
The configuration device of the new server provided by the embodiment of the application can be realized by a computer program. It should be understood by those skilled in the art that the above-mentioned module division manner is only one of many module division manners, and if the module division manner is divided into other modules or not divided into modules, it should be within the scope of the present application as long as the configuration device of the newly added server has the above-mentioned functions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (21)

1. A configuration method for a newly added server is characterized by comprising the following steps:
after a data packet sent by a switch connected with a newly added server is received, analyzing a Media Access Control (MAC) address of the newly added server from the data packet, wherein the MAC address of the newly added server is obtained by the switch from a received configuration request sent by the newly added server and is added to the data packet;
determining a script file for configuring the newly added server according to the MAC address; and are combined
Configuring the newly added server according to the script file;
the determining, according to the MAC address, a script file for configuring the newly added server specifically includes:
determining parameter information required to be configured for the newly added server according to the MAC address; determining a configuration template for configuring the newly added server from a stored template library according to the MAC address;
and determining a script file for configuring the newly added server according to the parameter information and the configuration template.
2. The method of claim 1, wherein determining the parameter information required to be configured for the newly added server according to the MAC address specifically includes:
determining a service platform corresponding to the MAC address of the newly-added server according to the corresponding relation between the MAC address and the service platform;
and according to the determined service platform, determining the general parameter information of the service platform to which the newly added server belongs as the parameter information needing to be configured for the newly added server.
3. The method of claim 1 or 2, wherein the parameter information comprises operation instruction information and function information, wherein the operation instruction information comprises at least one of: a start sequence instruction and a restart instruction, the functional information including at least one of: the operating system information required by the newly added server, the software package information of each piece of software required to be installed by the newly added server and the dependency package information of each piece of software.
4. The method of claim 3, wherein the configuration template comprises an instruction configuration template; and
determining a script file for configuring the newly added server according to the parameter information and the configuration template, specifically comprising:
and generating an instruction script file for configuring the operation instruction of the newly added server according to the operation instruction information and the instruction configuration template, wherein the instruction script file comprises a starting sequence instruction script file and a restarting instruction script file.
5. The method of claim 4, wherein the configuration template further comprises a traffic configuration template; and
determining a script file for configuring the newly added server according to the parameter information and the configuration template, specifically comprising:
and generating a service configuration script file for deploying the service which needs to be configured by the newly added server according to the function information and the service configuration template.
6. The method of claim 5, wherein after receiving the data packet sent by the switch connected to the newly added server and before determining the script file for configuring the newly added server according to the MAC address, the method further comprises:
analyzing port number information of the newly added server connected with the switch from the data packet; and
before configuring the newly added server according to the script file, the method further includes:
and determining a script file for configuring the switch according to the port number information.
7. The method according to claim 6, wherein determining a script file for configuring the switch according to the port number information specifically includes:
determining parameter information of the switch according to the port number information, wherein the parameter information comprises a management address of the switch;
determining a configuration template for configuring the switch from a stored template library according to the management address; and are
And determining a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch.
8. The method of claim 7, wherein the parameter information of the switch further comprises at least one of: and logging in a user name and a password required by the switch, a port mode to which a port corresponding to the port number belongs, and a VLAN (virtual local area network) number to which the port belongs.
9. The method of claim 8, wherein configuring the newly added server according to the script file comprises:
sending each instruction in the instruction script file to the newly added server, and triggering the newly added server to complete configuration of an operation instruction according to the received instruction; and are
Sending each configuration command in the script file for configuring the switch to the switch, and triggering the switch to set the newly added server and a pre-boot execution environment PXE server in the same VLAN layer;
and sending each service configuration command in the service configuration script file to the PXE server, and triggering the PXE server to complete service configuration on the newly added server according to the received service configuration command.
10. A device for configuring a newly added server, comprising:
the system comprises a first analyzing unit, a second analyzing unit and a third analyzing unit, wherein the first analyzing unit is used for analyzing a Media Access Control (MAC) address of a newly added server from a data packet sent by a switch connected with the newly added server after receiving the data packet, and the MAC address of the newly added server is obtained from a received configuration request sent by the newly added server and added to the data packet by the switch;
a first determining unit, configured to determine, according to the MAC address, a script file for configuring the newly added server;
the configuration unit is used for configuring the newly added server according to the script file;
the first determining unit is specifically configured to determine, according to the MAC address, parameter information that needs to be configured for the newly added server; determining a configuration template for configuring the newly added server from a stored template library according to the MAC address; and determining a script file for configuring the newly added server according to the parameter information and the configuration template.
11. The apparatus of claim 10,
the first determining unit is specifically configured to determine, according to a correspondence between an MAC address and a service platform, the service platform corresponding to the MAC address of the newly added server; and according to the determined service platform, determining the general parameter information of the service platform to which the newly added server belongs as the parameter information needing to be configured for the newly added server.
12. The apparatus according to claim 10 or 11, wherein the parameter information includes operation instruction information and function information, wherein the operation instruction information includes at least one of: a start sequence instruction and a restart instruction, the functional information including at least one of: the software package information of each software and the dependency package information of each software are installed in the newly added server.
13. The apparatus of claim 12, wherein the configuration template comprises an instruction configuration template; and
the first determining unit is specifically configured to generate an instruction script file for configuring the operation instruction of the newly added server according to the operation instruction information and the instruction configuration template, where the instruction script file includes a start sequence instruction script file and a restart instruction script file.
14. The apparatus of claim 13, wherein the configuration template further comprises a traffic configuration template; and
the first determining unit is further configured to generate a service configuration script file for deploying the service that needs to be configured by the newly added server according to the function information and the service configuration template.
15. The apparatus of claim 14, further comprising:
the second analysis unit is used for analyzing the port number information of the newly added server connected with the switch from the data packet after the first analysis unit receives the data packet sent by the switch connected with the newly added server and before the determination unit determines the script file used for configuring the newly added server according to the MAC address;
and a second determining unit, configured to determine, according to the port number information, a script file for configuring the switch before the configuring unit configures the newly added server according to the script file.
16. The apparatus of claim 15,
the second determining unit is specifically configured to determine, according to the port number information, parameter information of the switch, where the parameter information includes a management address of the switch; determining a configuration template for configuring the switch from a stored template library according to the management address; and determining a script file for configuring the switch according to the parameter information of the switch and the configuration template for configuring the switch.
17. The apparatus of claim 16, wherein the parameter information of the switch further comprises at least one of: and logging in a user name and a password required by the switch, a port mode to which a port corresponding to the port number belongs, and a VLAN (virtual local area network) number to which the port belongs.
18. The apparatus of claim 17,
the configuration unit is specifically configured to send each instruction in the instruction script file to the newly added server, and trigger the newly added server to complete configuration of an operation instruction according to the received instruction; sending each configuration command in the script file for configuring the switch to the switch, and triggering the switch to set the newly added server and the pre-boot execution environment PXE server in the same VLAN layer; and sending each service configuration command in the service configuration script file to the PXE server, and triggering the PXE server to complete service configuration of the newly added server according to the received service configuration command.
19. A configuration system of a newly added server is characterized by comprising at least one newly added server, at least one switch, a PXE server and an intelligent sensing server, wherein the intelligent sensing server is provided with the device of any one of claims 10 to 18.
20. A communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor; the method for configuring the new server according to any one of claims 1 to 9 is implemented when the processor executes the program.
21. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for configuring a new server as claimed in any one of claims 1 to 9.
CN201710801102.7A 2017-09-07 2017-09-07 Configuration method, device and system of newly added server and communication equipment Active CN109474443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710801102.7A CN109474443B (en) 2017-09-07 2017-09-07 Configuration method, device and system of newly added server and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710801102.7A CN109474443B (en) 2017-09-07 2017-09-07 Configuration method, device and system of newly added server and communication equipment

Publications (2)

Publication Number Publication Date
CN109474443A CN109474443A (en) 2019-03-15
CN109474443B true CN109474443B (en) 2022-10-18

Family

ID=65657707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710801102.7A Active CN109474443B (en) 2017-09-07 2017-09-07 Configuration method, device and system of newly added server and communication equipment

Country Status (1)

Country Link
CN (1) CN109474443B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311570A (en) * 2019-07-29 2021-02-02 中兴通讯股份有限公司 Method and device for opening network equipment
CN111130962B (en) * 2019-12-30 2022-06-28 联想(北京)有限公司 Automatic configuration method, equipment, system and storage medium for switch
CN111245898B (en) * 2019-12-31 2022-06-07 中国建设银行股份有限公司 Network equipment online method, device, server and storage medium
CN111835559A (en) * 2020-06-28 2020-10-27 新华三信息技术有限公司 Automatic configuration method, device, equipment and machine readable storage medium
CN114625382B (en) * 2022-02-14 2022-11-08 武汉达梦数据技术有限公司 Method and device for automatically discovering geological disaster monitoring equipment
CN114785684B (en) * 2022-04-24 2024-04-05 长城汽车股份有限公司 Port configuration method and device of vehicle switch, vehicle and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071948A (en) * 2015-07-06 2015-11-18 李雅妮 Automatic deployment method and device for access switcher
CN105703938A (en) * 2014-11-28 2016-06-22 华为技术有限公司 Equipment configuration method, configuration device and management equipment
CN105871632A (en) * 2016-05-31 2016-08-17 深圳市双赢伟业科技股份有限公司 Virtual local area network configuration method and device
CN106330487A (en) * 2015-06-19 2017-01-11 华为技术有限公司 Automatic configuration method, controller and device
CN106452860A (en) * 2016-09-29 2017-02-22 杭州华三通信技术有限公司 Device deployment method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011153679A1 (en) * 2010-06-07 2011-12-15 华为技术有限公司 Method, device and system for service configuration
CN101951341B (en) * 2010-09-14 2012-08-15 福建星网锐捷网络有限公司 Server physical position marking method, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703938A (en) * 2014-11-28 2016-06-22 华为技术有限公司 Equipment configuration method, configuration device and management equipment
CN106330487A (en) * 2015-06-19 2017-01-11 华为技术有限公司 Automatic configuration method, controller and device
CN105071948A (en) * 2015-07-06 2015-11-18 李雅妮 Automatic deployment method and device for access switcher
CN105871632A (en) * 2016-05-31 2016-08-17 深圳市双赢伟业科技股份有限公司 Virtual local area network configuration method and device
CN106452860A (en) * 2016-09-29 2017-02-22 杭州华三通信技术有限公司 Device deployment method and device

Also Published As

Publication number Publication date
CN109474443A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109474443B (en) Configuration method, device and system of newly added server and communication equipment
US9137111B2 (en) Discovering, validating, and configuring hardware-inventory components
US10700947B2 (en) Life cycle management method and device for network service
CN104734931B (en) Link establishing method and device between a kind of virtual network function
CN104410672B (en) Method, the method and device of forwarding service of network function virtualization applications upgrading
US7743242B2 (en) Method and system for automatic generation of operating system boot images
CN108206847B (en) CDN management system, method and device
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
WO2016184045A1 (en) Method and apparatus for network service capacity expansion
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN106708597A (en) Method, device and system for creating cluster environment on the basis of Openstack
CN102523110A (en) Method and device for realizing automatic configuration of equipment with zero configuration
CN106716926B (en) Automated stand-alone boot circuit for hardware inventory
CN107547274B (en) Multi-network-port aggregation method and device
CN115051846B (en) K8S cluster deployment method based on super fusion platform and electronic equipment
CN112463610A (en) Test process control method and device
WO2016198004A1 (en) Network gambit configuration method and apparatus under virtualization technology
CN113535262A (en) Method, device, equipment and storage medium for controlling starting of proxy node
CN115499413B (en) Method and system for batch configuration of fixed IP addresses of virtual machines based on KVM
CN111600751B (en) Data center management method and system
CN102810067A (en) Virtual machine template updating system and method
CN110795201B (en) Management method and device for servers in cloud platform
CN109756585B (en) Method and control device for identifying position of new network access equipment
CN109831330B (en) Stack configuration method and device

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