CN109474443A - A kind of configuration method, device, system and the communication equipment of newly-increased server - Google Patents

A kind of configuration method, device, system and the communication equipment of newly-increased server Download PDF

Info

Publication number
CN109474443A
CN109474443A CN201710801102.7A CN201710801102A CN109474443A CN 109474443 A CN109474443 A CN 109474443A CN 201710801102 A CN201710801102 A CN 201710801102A CN 109474443 A CN109474443 A CN 109474443A
Authority
CN
China
Prior art keywords
newly
server
interchanger
configuration
increased
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.)
Granted
Application number
CN201710801102.7A
Other languages
Chinese (zh)
Other versions
CN109474443B (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

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)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses configuration method, device, system and the communication equipments of a kind of newly-increased server, the method, it include: after receiving the data packet that the interchanger being connected with newly-increased server is sent, the MAC address of the newly-increased server is parsed from the data packet, wherein, the MAC Address of the newly-increased server is that the interchanger is obtained from the configuring request that the newly-increased server received is sent and is added in the data packet;According to the MAC Address, the script file for being configured to the newly-increased server is determined;And according to the script file, the newly-increased server is configured.Using method provided by the invention, automatically configuring for newly-increased server is effectively realized, reduces artificial participation, while also improving the installation and deployment efficiency of newly-increased server.

Description

A kind of configuration method, device, system and the communication equipment of newly-increased server
Technical field
The present invention relates to business support technical field more particularly to a kind of configuration method, device, the systems of newly-increased server And communication equipment.
Background technique
Traditional server disposition scheme is that (Preboot eXecution Environment, pre-boot are held by PXE Row environment) mode realizes the deployment of server.In computer room or cloud platform by manual installation mode to newly-increased server into When row deployment, personnel are disposed firstly the need of clear server service in which business department, and the work people with business department Member determines that server needs type and the version number of operating system to be mounted, installs operation system to the demand according to business department After system, server is consigned into business department, business software is finally disposed by the staff of business department.
With the continuous dilatation of data center, user is no longer satisfied come deployment services device by traditional manual installation Requirement for rapid deployment.When using manual mode deployment services device, process is cumbersome, and needs to dispose personnel and server Thus the cooperation of the staff of each business department serviced requires each department to understand installation environment and process, to each The staff of a department brings learning burden;It also needs manually to access confirmation when disposing a large amount of server on this basis, It involves a wide range of knowledge, and time-consuming effort, simultaneously because artificial participation is larger to be also possible to the problems such as generating installation error.
In conclusion how to realize the Intelligent Installation deployment of server, artificial participation is reduced, while improving server Installation and deployment efficiency one of be a technical problem to be solved urgently.
Summary of the invention
The embodiment of the present invention provides configuration method, device, system and the communication equipment of a kind of newly-increased server, to solve The problems such as artificial participation of installation and deployment method for the newly-increased server that the prior art uses is higher, disposes low efficiency.
In a first aspect, the embodiment of the present invention provides a kind of configuration method of newly-increased server, comprising:
After receiving the data packet that the interchanger being connected with newly-increased server is sent, parsed from the data packet The MAC address of the newly-increased server, wherein the MAC Address of the newly-increased server is the interchanger It obtains and is added in the data packet from the configuring request that the newly-increased server received is sent;
According to the MAC Address, the script file for being configured to the newly-increased server is determined;And
According to the script file, the newly-increased server is configured.
Second aspect, the embodiment of the present invention provide a kind of configuration device of newly-increased server, comprising:
First resolution unit, for after receiving the data packet that the interchanger that is connected with newly-increased server is sent, from The MAC address of the newly-increased server is parsed in the data packet, wherein the newly-increased server MAC Address is that the interchanger obtains from the configuring request that the newly-increased server received is sent and is added to the number According in packet;
First determination unit, for determining the foot for being configured to the newly-increased server according to the MAC Address This document;
Configuration unit, for being configured to the newly-increased server according to the script file.
The third aspect, the embodiment of the present invention provide a kind of configuration system of newly-increased server, including at least one newly-increased clothes Business device, at least one interchanger, PXE server and Intellisense server, wherein be provided in the Intellisense server The configuration device of above-mentioned newly-increased server.
Fourth aspect, the embodiment of the present invention provide a kind of communication equipment, including memory, processor and are stored in described deposit On reservoir and the computer program that can run on the processor;The processor realizes institute of the present invention when executing described program The configuration method for the newly-increased server stated.
5th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The program realizes the step in the configuration method of newly-increased server of the present invention when being executed by processor.
The invention has the advantages that:
Configuration method, device, system and the communication equipment of newly-increased server provided in an embodiment of the present invention, receive with After the data packet that the interchanger that newly-increased server is connected is sent, the matchmaker of the newly-increased server is parsed from the data packet Body access control MAC addresses, wherein the MAC Address of the newly-increased server is that the interchanger is described newly-increased from what is received It obtains and is added in the data packet in the configuring request that server is sent;According to the MAC Address, determine for institute State the script file that newly-increased server is configured;And according to the script file, the newly-increased server is configured.It adopts With method provided by the invention, automatically configuring for newly-increased server is effectively realized, reduces artificial participation, while also mentioning The high installation and deployment efficiency of newly-increased server.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the configuration system for the newly-increased server that the embodiment of the present invention one provides;
Fig. 2 a is between newly-increased server 1, interchanger 2 and Intellisense server 3 that the embodiment of the present invention one provides Interaction flow schematic diagram;
Fig. 2 b is script file of the determination that provides of the embodiment of the present invention one for being configured to the newly-increased server 1 Flow diagram;
Fig. 2 c be the determination that the embodiment of the present invention one provides need be the parameter information of the newly-increased server configuration stream Journey schematic diagram;
Fig. 2 d is the flow diagram configured to the newly-increased server 1 that the embodiment of the present invention one provides;
Fig. 3 is the structural schematic diagram for the Intellisense server that the embodiment of the present invention one provides;
Fig. 4 embodiment of the present invention one provide according to the port number information, determine for matching to the interchanger The flow diagram for the script file set;
Fig. 5 is the flow diagram of the configuration method of newly-increased server provided by Embodiment 2 of the present invention;
Fig. 6 is the structural schematic diagram of the configuration device for the newly-increased server that the embodiment of the present invention three provides.
Specific embodiment
The embodiment of the present invention provides configuration method, device, system and the communication equipment of a kind of newly-increased server, to solve The problems such as artificial participation of installation and deployment method for the newly-increased server that the prior art uses is higher, disposes low efficiency.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
Embodiment one
It, can be with as shown in Figure 1, the structural schematic diagram of the configuration system of the newly-increased server provided for the embodiment of the present invention one It include: at least one newly-increased server 1, at least one interchanger 2, PXE server 4 and Intellisense server 3, wherein every One interchanger 2 can increase server 1 newly at least one and be connected, and each interchanger 2 is connected with Intellisense server 3, The PXE server 4 with the newly-increased server 1 and the Intellisense server 3 for being connected respectively.
When it is implemented, be illustrated for being configured to any newly-increased server, increase newly server 1, with it is described Interaction diagrams between the interchanger 2 and Intellisense server 3 of newly-increased server connection are as shown in Figure 2 a, may include with Lower step:
S21, newly-increased server 1 send configuring request to interchanger 2 connected to it.
The MAC Address of the newly-increased server 1 is carried in the configuring request.
When it is implemented, the newly-increased server 1 in the embodiment of the present invention refers to that needs initialize but non-installation and deployment operate System and the server of required application.Interchanger 2 in the embodiment of the present invention is to set for connecting the network of newly-increased server 1 It is standby.
When it is implemented, after newly-increased server 1 powers on configuring request, the configuring request can be sent from trend interchanger 2 In carry MAC (Media Access Control, media access control) address of the newly-increased server.Specifically, institute Stating the configuring request that newly-increased server 1 is sent to interchanger can be ARP (Address Resolution Protocol, address Analysis protocol) data packet sends request, the MAC Address of the newly-increased server 1 is carried in the ARP data packet.
S22, interchanger 2 obtain the newly-increased server 1 after receiving the configuring request from the configuring request MAC Address.
When it is implemented, can be parsed from the ARP packet after interchanger 2 receives the ARP data packet transmission request The MAC Address of the newly-increased server 1 out.
Specifically, interchanger 2 can be determined to receive the ARP data when detecting that a certain port level is raised Packet.
The MAC Address is added in data packet by S23, interchanger 2, and the data packet is sent to Intellisense clothes Business device 3.
When it is implemented, the data packet can be, but not limited to as SNMP packet (Simple Network Management Protocol, Simple Network Management Protocol), the MAC Address for the newly-increased server 1 that interchanger 2 will acquire is added to described Then the SNMP packet for being added to the MAC Address of newly-increased server 1 is sent to Intellisense server 3 by SNMP packet.
S24, Intellisense server 3 are in the data packet for receiving the transmission of interchanger 2 being connected with newly-increased server 1 Afterwards, the MAC address of the newly-increased server 1 is parsed from the data packet.
When it is implemented, the Intellisense server 3 is receiving the MAC Address for being added to newly-increased server 1 SNMP packet after, the MAC Address of the newly-increased server 1 is parsed from SNMP packet.
Preferably, the Intellisense server 3 can be divided into four layers by function, respectively sensing layer, information is looked into Layer, configuration generation layer and execution level are ask, refering to what is shown in Fig. 3, sensing layer is used to analyze and filter the MAC Address of newly-increased server 1 And switch ports number, the function of information inquiry layer, configuration generation layer and execution level is subsequent to introduce it.
When it is implemented, being parsed from SNMP packet by the MAC address of server parsing module in sensing layer described newly-increased The MAC Address of server 1.
Preferably, after executing step S24, and before executing step S25, further includes:
The port number information that the newly-increased server is connected with the interchanger is parsed from the data packet.
When it is implemented, being provided with multiple ports on interchanger 2, each port has unique port numbers.Newly-increased service It is substantially that newly-increased server 1 is connected with certain Single port of interchanger 2 that device 1 is connected with interchanger 2.Since the present invention will realize pair Newly-increased server automatically configures, it is therefore desirable to newly-increased server connected to it and PXE server are arranged using interchanger In VLAN layers same, so that newly-increased server is started in a manner of network, and then realize that newly-increased server and PXE service Interaction between device configures PXE server to newly-increased server according to Pre-Boot eXecution Environment, based on above-mentioned Reason needs to configure interchanger, and currently increases the case where there may be multiple switch in server configuration system newly, It needs to distinguish interchanger using the port numbers of interchanger.Therefore, interchanger 2 is sending SNMP number to Intellisense server 3 When according to packet, also need to carry the port number information that newly-increased server 1 is connected with interchanger 2 in the SNMP packet.
Specifically, the newly-increased clothes are parsed from the SNMP packet by the switch ports number parsing module in sensing layer The port number information that business device 1 is connected with interchanger 2.
When it is implemented, the MAC address of server parsing module in sensing layer parses the MAC of the newly-increased server 1 Switch ports number parsing module behind address and in sensing layer parses the interchanger 2 being connected with newly-increased server 1 After port number information, the MAC Address and the port number information are sent to the inquiry of the information in Intellisense server 3 Layer.
S25, Intellisense server 3 are determined according to the MAC Address for configuring to the newly-increased server 1 Script file.
When it is implemented, since newly-increased server is used to provide service for business platform.In practical applications, when purchase one When criticizing new demand servicing device, the server of purchase provides service for which business platform and allocates in advance, it is assumed that has purchased 5 clothes Business device, wherein the number of servers for providing service for business platform 1 is 2;For providing service for business platform 2 Number of servers is 2;Number of servers for providing service for business platform 3 is 1.Each server directly utilizes MAC Address is distinguished.Therefore, it before configuring newly-increased server, needs to store in Intellisense server newly-increased Corresponding relationship between the MAC Address and business platform of server, shown in reference table 1:
Table 1
MAC Address Business platform
MAC1 Business platform 1
MAC2 Business platform 1
MAC3 Business platform 2
MAC4 Business platform 2
MAC5 Business platform 3
…… ……
Specifically, business platform can be, but not limited to as container, virtual machine and cloud environment etc. in table 1.Business platform in table 1 1, it 2 and 3 can directly be distinguished using business platform title, such as business platform 1 is container, business platform 2 as void Quasi- machine, business platform 3 are cloud environment.
MAC address of server parsing module is after the MAC Address for parsing newly-increased server 1 in Intellisense server 3, The corresponding industry of the MAC Address parsed can be determined from the corresponding relationship between the MAC Address and business platform being locally stored Then business platform obtains in advance as the script file of business platform generation from local further according to business platform, then will utilize institute Script file is stated to configure newly-increased server 1.
Preferably, the foot for being configured to the newly-increased server 1 can also be determined according to method shown in Fig. 2 b This document, comprising the following steps:
S251, according to the MAC Address, determine the parameter information needed for the newly-increased server configuration.
When it is implemented, step S251 can be executed according to method shown in Fig. 2 c, comprising the following steps:
S2511, according to the corresponding relationship between MAC Address and business platform, determine the MAC Address of the newly-increased server Corresponding business platform.
When it is implemented, after the MAC Address for determining the newly-increased server 1, according to the MAC Address being locally stored with Corresponding relationship between business platform can determine the corresponding business platform of MAC Address of the newly-increased server 1, also It is to determine business platform belonging to the newly-increased server.
The business platform that S2512, basis are determined, determines the general parameter of business platform belonging to the newly-increased server Information be need be the newly-increased server configuration parameter information.
When it is implemented, each business platform is usually constructed with the general parameter information of oneself, for example, there is 5 servers to use In providing service for cloud environment, then this 5 servers should have some identical parameter informations, these information are known as general Parameter information.
Preferably, the parameter information includes operation instruction information and functional information, wherein the operation instruction information packet Include following at least one: boot sequence instruction and instruction of restarting, the functional information comprise at least one of the following: the newly-increased clothes Operation system information needed for business device, the newly-increased server need the software package informatin and each software of each software to be mounted Dependence package informatin.
When it is implemented, the operation instruction information can be, but not limited to as boot sequence instruction and instruction of restarting.It is described Boot sequence instruction is used for so that newly-increased server 1 is started using network mode.The instruction of restarting is used for newly-increased service When device 1 installs service application, it can be realized and be restarted automatically when needing to restart.
Specifically, newly-increased server 1 is being carried out with postponing, so that the newly-increased server 1 using the functional information Realize that corresponding function, the operation information that the functional information includes can be, but not limited to as the newly-increased installation of server 1 The type and version of operating system;The software package informatin for each software that the functional information includes can be, but not limited to as needs For the installation kit of each application of the newly-increased installation of server 1 and installation kit version etc. and the dependence packet letter of each software Breath can be understood as the dependence package informatin for having dependence with installation kit.Software under a linux operating system generally has Rely on packet.
In addition, the information that the information inquiry layer that Intellisense server 3 includes is used to be sent according to sensing layer, matches itself Database determine service parameter, the service parameter is that configuration generation layer generates script file call parameter.Information inquiry The service parameter is sent to configuration generation layer after determining the service parameter by layer.
Therefore, parameter needed for can determining newly-increased server 1 by the inquiry layer of the information in Intellisense server 3 is believed Breath, namely step 251 and step 2511 and step are executed by the service configuration information enquiry module in information inquiry layer 2512。
S252, according to the MAC Address, determine from the template library of storage for being configured to the newly-increased server Configuration template.
When it is implemented, after the parameter information for determining to need to configure for the newly-increased server 1, it is also necessary to which determination is matched Set module.Specifically, the manufacturer of the newly-increased server 1 can be determined according to MAC Address.Since each producer has certainly Oneself configuration template, it is thus determined that the manufacturer of the newly-increased server 1 is necessary.Determine manufacturer it Afterwards, the configuration template of the manufacturer is found from template library.
S253, according to the parameter information and the configuration template, determine for being configured to the newly-increased server Script file.
Preferably, the configuration template includes instruction configuration template;And it when executing step S253, specifically includes:
According to the operation instruction information and described instruction configuration template, generate for the operation to the newly-increased server The command script file configured is instructed, described instruction script file includes boot sequence command script file and instruction of restarting Script file.
When it is implemented, described instruction configuration template can be, but not limited to include boot sequence instruction template and instruction of restarting Template then can instruct according to the boot sequence and start along instruction template, generate for opening to the newly-increased server 1 The starting that dynamic sequence is configured is along command script file;Further according to the instruction of restarting and the instruction of restarting template, generate For the instruction of restarting script file restarting mode and being configured to the newly-increased server 1.
Certainly, the operation instruction information can also include other information, and corresponding described instruction configuration template can be with Comprising other configurations template, determined with specific reference to actual needs.
Further, the configuration template further includes business configuration template;And when executing step S253, i.e., according to Parameter information and the configuration template determine the script file for being configured to the newly-increased server, specifically include:
According to the functional information and the business configuration template, generate for being needed to configure to the newly-increased server The business configuration script file that business is disposed.
When it is implemented, the business configuration template can be, but not limited to includes the application installation template of each business, repair Change template and upgrading template.For example, can be generated according to the type and version and operating system installation template of operating system For the operating system script file to increase the installation operation information of server 1 newly, that is to say, that execute operating system script one by one File can complete the installation to newly-increased 1 operating system of server.Furthermore it is also possible to according to the software package informatin of any software, Package informatin and the installation template of the software are relied on, generates the script file for installing the software for newly-increased server 1, one by one Installation to the software in newly-increased server 1 can be completed by executing the script file.Similarly, the script file of other softwares generates Mode, modification script are similar with the generating mode of upgrade script file, and details are not described herein.
It specifically, can be by the configuration generation layer in intelligent management server 3 for generating corresponding script file, then The script file of generation is sent to execution level, newly-increased server 1 is configured according to script file by execution level.It is specific real Shi Shi executes S252 and S253 by configuration generation layer.It can be generated and be started by the command script generation module in configuration generation layer Sequential instructions script file and instruction of restarting script file, and the instruction configuration module being sent in execution level;It is generated by configuration The business configuration module that business configuration script generation module in layer generates business configuration script file and is sent in execution level.
Preferably, in the port numbers for parsing the newly-increased server from the data packet and being connected with the interchanger After information, and before executing step S26, further includes:
According to the port number information, the script file for being configured to the interchanger is determined.
When it is implemented, aforementioned have been described the necessity configured to interchanger 2, therefore getting newly-increased clothes After the port number information that business device 1 is connected with the port of interchanger 2, using the port number information, obtain can be used for exchange The script file that machine 2 is configured.
When it is implemented, there is no sequencings for the implementation of this step and the implementation of step S25, may be performed simultaneously.
Preferably, can according to process shown in Fig. 4 according to the port number information, determine for the interchanger into The script file of row configuration, comprising the following steps:
S31, according to the port number information, determine that the parameter information of the interchanger, the parameter information include described The management address of interchanger.
When it is implemented, each interchanger has a management address, administrative staff can use the management address and look for To the corresponding interchanger of the management address, it is then just able to achieve the modification to interchanger.
Specifically, a list about interchanger can be safeguarded in Intellisense server 3, be stored in the list Corresponding relationship between the port number information of interchanger and the parameter information of interchanger, if the parameter information only includes management ground Location, then what is stored in the list is the corresponding relationship between port number information and management address.It should be noted that there are multiple Port number information corresponds to the case where interchanger, therefore there are multiple port number informations to correspond to the same parameter letter in the list The case where breath.
S32, according to the management address, determination is matched for what is configured to the interchanger from the template library of storage Set template.
Specifically, it after the management address that step S31 determines the interchanger 2, can be determined according to the management address The manufacturer of the interchanger 2 out, since there is the configuration template of oneself in each interchanger manufacturer, it is thus determined that the friendship Change planes 2 manufacturer is necessary.After determining manufacturer, the exchange of the manufacturer is found from template library Machine configuration template.
S33, parameter information and the configuration template for being configured to the interchanger according to the interchanger, Determine the script file for being configured to the interchanger.
Preferably, the parameter information of the interchanger further includes at least one of following information: logging in needed for the interchanger Username and password, virtual LAN belonging to port mode and the port belonging to the corresponding port of the port numbers Vlan number.
When it is implemented, administrative staff can find the corresponding interchanger of management address according to the management address, right When interaction machine is configured, it is also necessary to log on to the interchanger 2, therefore also need to obtain the log-on message of the interchanger 2, that is, use Name in an account book and password.
Specifically, using username and password needed for management address and login interchanger 2, and the mould of interchanger is logged in Plate obtains the script file for logging in the interchanger 2.It can be successfully logged on the interchanger 2 using the script file.
Furthermore it is also possible to the port mode according to belonging to the port numbers corresponding port that parameter information includes, and configuration end The configuration template of mouth mold formula generates the script file configured for the port mode of the port to interchanger.It executes one by one The script file, the port mode that can complete the corresponding port of port number information are configured.
Furthermore VLAN (Virtual Local Area belonging to the port that can also include according to parameter information Network, virtual LAN) number, and the configuration template of the vlan number for configuring port, it generates for believing the port numbers Cease the script file that vlan number belonging to corresponding port is configured.It, can be to interchanger 2 after executing the script file one by one The corresponding port of port number information belonging to vlan number be configured to need vlan number.
Certainly, the parameter information of the interchanger 2 can also include other parameters information, and certain configuration template may be used also Configured with specific reference to actual needs comprising other configurations template.
Specifically, it can be generated by the interchanger perform script generation module in configuration generation layer for configuring interchanger institute The script file needed.S31~S33 is executed by interchanger perform script generation module.Then it is used to configure exchange for what is obtained The script file of machine is sent to the interchanger configuration module in execution level.
S26, Intellisense server 3 configure the newly-increased server 1 according to the script file.
When it is implemented, can be configured according to process shown in Fig. 2 d to the newly-increased server 1, including following step It is rapid:
S261, Intellisense server 3 send each in described instruction script file to the newly-increased server 1 and refer to It enables.
Preferably, before executing step S261, further includes:
The newly-increased server is initialized, so that the newly-increased server has the item for executing described instruction script file Part.
When it is implemented, Intellisense server 3 matches preset initialization directive after generating command script file, Then the initialization directive is sent to newly-increased server 1, newly-increased server 1 is initialized.Because newly-increased server 1 can not Execute any instruction, therefore, when initialization directive be it is a plurality of, then need Intellisense server 3 successively to newly-increased server 1 send out It send each to instruct, completes the initialization to newly-increased server 1.
When it is implemented, the execution level in Intellisense server 3 is used to be completed according to script file to newly-increased server Configuration, specifically initialization directive can be sent from the instruction configuration module in execution level to newly-increased server 1, to described new When increasing server 1 has the condition for executing described instruction script file, instruct configuration module again successively to the newly-increased server 1 Each instruction in command script file is sent, so that the newly-increased server 1 executes each instruction received, is completed Configuration to operational order, as instructed configuration module successively to send in boot sequence command script file to newly-increased server 1 Each instruction, to complete the configuration of the boot sequence of newly-increased server 1, and/or instruction configuration module successively to newly-increased service Device 1 sends instruction of restarting script file, to complete the configuration etc. to the instruction of restarting of newly-increased server 1.
S262, newly-increased server 1 complete the configuration to operational order according to the instruction received.
S263, Intellisense server 3 send described for being configured to the interchanger 2 to the interchanger 2 Each configuration order in script file.
When it is implemented, Intellisense server 3 is each into the newly-increased transmission of the server 1 command script file After instruction, after newly-increased server 1 completes the configuration to operational order, Intellisense server 3 sends to interchanger hand over again It changes planes configuration-direct.
Specifically, the script file can have multiple, as logged in the script file of interchanger 2, for interchanger The script file that the port mode of port is configured and the foot configured for vlan number belonging to the port to interchanger This document etc..
When it is implemented, Intellisense server 3 logs on to interchanger 2 according to the script file for logging in interchanger 2 first On, there is the permission of configuration interchanger;Then the script configured further according to the port mode for the port to interchanger File configures the port mode for the port being connected in interchanger 2 with newly-increased server 1, further according to for interchanger Port belonging to each instruction in the script file that is configured of vlan number, in interchanger 2 with newly-increased 1 phase of server The vlan number of port even is configured, and newly-increased server 1 and PXE server 4 are arranged same interchanger 2 In VLAN layers.
Specifically, from the interchanger configuration module in execution level in Intellisense server 3 one by one to interchanger transmission pair Each instruction in the script file that the interchanger 2 is configured, so that interchanger 2 is according to the script file, by institute Newly-increased server 1 and the setting of PXE server 4 are stated in VLAN layers same.
Preferably, before executing step S263, further includes:
Initialize the interchanger so that the interchanger have execute it is described for being configured to the interchanger The condition of script file.
When it is implemented, before being configured to interchanger 2, it should according to the script text configured to interchanger 2 Part matches preset initialization directive, then sends initialization directive to interchanger 2, so that interchanger 2, which has, executes the use In the condition of the script file configured to the interchanger.
S264, interchanger 2 are according to the configuration-direct received, by the newly-increased server 1 and Pre-boot Execution Environment PXE The setting of server 4 is in VLAN layers same.
S265, Intellisense server 3 send each industry in the business configuration script file to PXE server 4 Business configuration order.
Preferably, before executing step S265, further includes:
The PXE server is initialized, so that the PXE server has the item for executing the business configuration script file Part.
When it is implemented, Intellisense server 3 is each into the transmission business configuration script file of PXE server 4 Before item instruction, preset initialization directive is first matched according to the script file, is then sent to PXE server 4 described initial Instruction, so that PXE server has the condition for executing the business configuration script file.Then industry is sent to PXE server 4 again The each instruction being engaged in configuration script file, so that PXE is according to each instruction received to the business of newly-increased server 1 Using being configured.
Specifically, the business configuration script file can be multiple, then successively send to the PXE server 4 each Each instruction in business configuration script file, as first sent each in operating system script file to PXE server 4 Instruction, so that PXE server 4 increases the installation that server 1 completes operating system newly according to the every commands direct received.Then Intellisense server 3 sends each instruction in the script file for installing each software to PXE server 4 again, so that PXE takes Device 4 be engaged according to each installation instruction received, newly-increased server 1 is instructed to complete the installation etc. of software.
Specifically, initialization can be sent to PXE server 4 from the business configuration module in Intellisense server 3 to refer to It enables and each instruction in business configuration script file.
S266, PXE server 4 are completed to match the business of the newly-increased server 1 according to the business configuration instruction received It sets.
Preferably, the automatic installation and deployment in order to realize newly-increased server 1, need newly-increased server 1 being arranged to network The mode of starting, therefore before configuring operating system or software to newly-increased server, need to set opening for newly-increased server 1 Dynamic sequential instructions, that is, first carry out step S261.Furthermore due to such as installing operating system when configuring to newly-increased server 1 Or will appear situations such as restarting when software, in order to avoid the operation such as restarting manually, it is therefore desirable to first preparatory in newly-increased server 1 It installs and is restarted automatically instruction, therefore step S261 must be first carried out before executing step S265.Further, since in order to realize PXE server 4 guides newly-increased server 1 to complete also to need the installation and deployment of service application before being directed toward step S265 automatically It to be configured to interchanger 2, newly-increased server 1 and PXE server 4 is arranged same interchanger 2 In VLAN layers, the automatic installation and deployment to newly-increased server 1 are reached with this.Therefore, step S261, S263 and step in the present invention S265 executes sequence with successive, using first carrying out step S261 and then executing step S263 again, finally executes step S265. But step S263 and step S262 is not executing sequence successively, and step S265 and step S264 execute sequence there is no successive.
Newly-increased server 1 is direct-connected using hub-and-spoke network topology and PXE server 4 by interchanger 2.It is provided in the present invention Intellisense server 3 touches first so that interchanger 2 must generate business configuration script file by Intellisense server 3 The initialization of PXE server is sent out, then business transferring configuration script file, completes PXE server 4 and guide newly-increased server 1 The installation and deployment of operating system and service application.
The configuration method for the newly-increased server that the embodiment of the present invention one provides is connected receiving with newly-increased server After the data packet that interchanger is sent, the MAC address of the newly-increased server is parsed from the data packet, Wherein, the MAC Address of the newly-increased server is that the interchanger is asked from the configuration that the newly-increased server received is sent It asks and obtains and be added in the data packet;According to the MAC Address, determine for matching to the newly-increased server The script file set;And according to the script file, the newly-increased server is configured.Using side provided by the invention Method effectively realizes automatically configuring for newly-increased server, reduces artificial participation, while also improving newly-increased server Installation and deployment efficiency.
Embodiment two
For a better understanding of the present invention, this hair is described more fully in the embodiment of the present invention two on the basis of example 1 The configuration method of the newly-increased server of bright offer, refering to what is shown in Fig. 5, may comprise steps of:
S41, newly-increased server 1 send configuring request to interchanger 2 connected to it.
When it is implemented, the implementation of step S41 can be with reference to step in the embodiment of the present invention one in the embodiment of the present invention two The implementation of S21, overlaps will not be repeated.
S42, interchanger 2 obtain the newly-increased server 1 after receiving the configuring request from the configuring request MAC Address.
The MAC Address is added in data packet by S43, interchanger 2, and the data packet is sent to Intellisense clothes Business device 3.
When it is implemented, the implementation of step S42 and S43 can be with reference in the embodiment of the present invention one in the embodiment of the present invention two The implementation of step S22 and S23, overlaps will not be repeated.
S44, Intellisense server 3 are in the data packet for receiving the transmission of interchanger 2 being connected with newly-increased server 1 Afterwards, the MAC address of the newly-increased server 1 is parsed from the data packet.
When it is implemented, the implementation of step S44 can be with reference to step in the embodiment of the present invention one in the embodiment of the present invention two The implementation of S24, overlaps will not be repeated.
S45, Intellisense server 3 parse the newly-increased server from the data packet and are connected with the interchanger The port number information connect.
Specifically, the implementation of step S45 can be with reference to corresponding portion in the embodiment of the present invention one in the embodiment of the present invention two Implementation, overlaps will not be repeated.
S46, Intellisense server 3 determine the newly-increased clothes according to the corresponding relationship between MAC Address and business platform The corresponding business platform of MAC Address of business device.
S47, Intellisense server 3 determine business belonging to the newly-increased server according to the business platform determined The general parameter information of platform be need be the newly-increased server configuration parameter information.
When it is implemented, the implementation of step S46 and S47 can be with the realities of step S2511 and S2512 in reference implementation example one It applies, overlaps will not be repeated.
S48, Intellisense server 3 are determined from the template library of storage according to the MAC Address for described newly-increased The configuration template that server is configured.
When it is implemented, implementing for step S48 can be with the implementation of step S252 in reference implementation example one, in place of repeating no longer It repeats.
S49, Intellisense server 3 according to the operation instruction information and described instruction configuration template, generate for pair The command script file that the operational order of the newly-increased server is configured.
S410, Intellisense server 3 are generated according to the functional information and the business configuration template for described The business configuration script file that the business that newly-increased server needs to configure is disposed.
When it is implemented, step S49 and S410 implement can with the implementation of step S253 in reference implementation example one, repetition Place repeats no more.
S411, Intellisense server 3 determine the parameter information of the interchanger according to the port number information, described Parameter information includes the management address of the interchanger.
S412, Intellisense server 3 are determined from the template library of storage for the friendship according to the management address It changes planes the configuration template configured.
S413, Intellisense server 3 according to the parameter information of the interchanger and it is described for the interchanger into The configuration template of row configuration, determines the script file for being configured to the interchanger.
When it is implemented, step S411~S413 implement can with the implementation of step S31~S33 in reference implementation example one, Overlaps will not be repeated.
S414, Intellisense server 3 send each in described instruction script file to the newly-increased server 1 and refer to It enables.
S415, newly-increased server 1 complete the configuration to operational order according to the instruction received.
S416, Intellisense server 3 send described for being configured to the interchanger 2 to the interchanger 2 Each configuration order in script file.
S417, interchanger 2 are according to the configuration-direct received, by the newly-increased server 1 and Pre-boot Execution Environment PXE The setting of server 4 is in VLAN layers same.
S418, Intellisense server 3 send each industry in the business configuration script file to PXE server 4 Business configuration order.
S419, PXE server 4 are completed to match the business of the newly-increased server 1 according to the business configuration instruction received It sets.
When it is implemented, the implementation of step S414~S419 can be with the reality of step S261~S266 in reference implementation example one It applies, overlaps will not be repeated.
In addition, in the embodiment of the present invention two step S414,416 and step S418 have it is successive execute sequence, using first holding Row step S414, step S416 is then executed again, finally execute step S418.But step S416 and step S265 are not held successively Row sequence, step S268 and step S267 execute sequence there is no successive.
The configuration method of newly-increased server provided by Embodiment 2 of the present invention is connected receiving with newly-increased server After the data packet that interchanger is sent, the MAC Address and the newly-increased clothes of the newly-increased server are parsed from the data packet The port number information that is connected with the interchanger of business device, wherein the MAC Address of the newly-increased server for the interchanger from It obtains and is added in the data packet in the configuring request that the newly-increased server received is sent;Then according to MAC Corresponding relationship between address and business platform determines the corresponding business platform of MAC Address of the newly-increased server;According to true The business platform made determines that the general parameter information of business platform belonging to the newly-increased server is to need to be described newly-increased The parameter information of server configuration;And Intellisense server is determined from the template library of storage and is used according to the MAC Address In the configuration template configured to the newly-increased server, according to the operation instruction information and described instruction configuration template, Generate the command script file that is configured for the operational order to the newly-increased server, and according to the functional information and The business configuration template generates the business configuration script that the business for needing to configure to the newly-increased server is disposed File.Intellisense server also needs to determine the parameter information of the interchanger according to the port number information simultaneously, described Parameter information includes the management address of the interchanger;And according to the management address, determination is used for from the template library of storage The configuration template that the interchanger is configured;Then according to the parameter information of the interchanger and described for the friendship It changes planes the configuration template configured, determines the script file for being configured to the interchanger.Determining instruction foot After this document, business configuration script file and the script file that is configured for the interchanger, Intellisense server is first Each instruction in described instruction script file first is sent to the newly-increased server, so that newly-increased server is according to receiving Instruction complete configuration to operational order;Secondly, being sent to the interchanger described for being configured to the interchanger Script file in each configuration order so that according to the configuration-direct received, by the newly-increased server with open in advance Dynamic performing environment PXE server setting is in VLAN layers same;Finally the business configuration script text is sent to PXE server Each business configuration order in part, so that PXE server is completed according to the business configuration instruction received to described newly-increased The business configuration of server.It is thus achieved that reducing artificial participation, simultaneously to the automatic installation and deployment of newly-increased server Also improve the installation and deployment efficiency of newly-increased server.
Embodiment three
Based on the same inventive concept, a kind of configuration device of newly-increased server is additionally provided in the embodiment of the present invention, due to The principle that above-mentioned apparatus solves the problems, such as is similar to the configuration method of newly-increased server, therefore the implementation side of may refer to of above-mentioned apparatus The implementation of method, overlaps will not be repeated.
As shown in fig. 6, being the structural schematic diagram of the configuration device for the newly-increased server that the embodiment of the present invention three provides, packet It includes: the first resolution unit 51, the first determination unit 52 and configuration unit 53, in which:
First resolution unit 51, for after receiving the data packet that the interchanger that is connected with newly-increased server is sent, The MAC address of the newly-increased server is parsed from the data packet, wherein the newly-increased server MAC Address is that the interchanger obtains from the configuring request that the newly-increased server received is sent and is added to the number According in packet;
First determination unit 52, for according to the MAC Address, determining for being configured to the newly-increased server Script file;
Configuration unit 53, for being configured to the newly-increased server according to the script file.
Preferably, first determination unit 52, is specifically used for determining that it is described newly-increased for needing according to the MAC Address The parameter information of server configuration;And according to the MAC Address, determine from the template library of storage for the newly-increased service The configuration template that device is configured;According to the parameter information and the configuration template, determine for the newly-increased server The script file configured.
Further, first determination unit 52, specifically for according to the corresponding pass between MAC Address and business platform System, determines the corresponding business platform of MAC Address of the newly-increased server;According to the business platform determined, determine described new The general parameter information for increasing business platform belonging to server be need be the newly-increased server configuration parameter information.
Preferably, the parameter information includes operation instruction information and functional information, wherein the operation instruction information packet Include following at least one: boot sequence instruction and instruction of restarting, the functional information comprise at least one of the following: the newly-increased clothes Operation system information needed for business device, the newly-increased server need the software package informatin and each software of each software to be mounted Dependence package informatin.
Preferably, the configuration template includes instruction configuration template;And
First determination unit 52 is specifically used for according to the operation instruction information and described instruction configuration template, raw At the command script file configured for the operational order to the newly-increased server, described instruction script file includes to open Dynamic sequential instructions script file and instruction of restarting script file.
Further, the configuration template further includes business configuration template;And
First determination unit 52 is also used to according to the functional information and the business configuration template, and generation is used for The business configuration script file that the business that the newly-increased server needs to configure is disposed.
Preferably, described device, further includes:
Second resolution unit, for receiving the interchanger being connected with newly-increased server hair in first resolution unit It is determining for matching to the newly-increased server after the data packet sent, and in the determination unit according to the MAC Address Before the script file set, the port numbers that the newly-increased server is connected with the interchanger are parsed from the data packet Information;
Second determination unit, for, according to the script file, being carried out to the newly-increased server in the configuration unit Before configuration, according to the port number information, the script file for being configured to the interchanger is determined.
Preferably, second determination unit, is specifically used for determining the ginseng of the interchanger according to the port number information Number information, the parameter information include the management address of the interchanger;According to the management address, from the template library of storage Determine the configuration template for being configured to the interchanger;And according to the parameter information of the interchanger and it is described for pair The configuration template that the interchanger is configured determines the script file for being configured to the interchanger.
Preferably, the parameter information of the interchanger further includes at least one of following information: being logged in needed for the interchanger Username and password, virtual LAN belonging to port mode and the port belonging to the corresponding port of the port numbers Vlan number.
Preferably, the configuration unit 53, is specifically used for sending in described instruction script file to the newly-increased server Each instruction, trigger the configuration of the newly-increased server according to the instruction completion received to operational order;And to described Interchanger sends each configuration order in the script file for being configured to the interchanger, triggers the friendship It changes planes the newly-increased server and the setting of Pre-boot Execution Environment PXE server in VLAN layers same;It is taken to the PXE Business device sends each business configuration order in the business configuration script file, triggers the PXE server according to reception The business configuration to the newly-increased server is completed in the business configuration order arrived.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.For example, this The configuration device for the newly-increased server that inventive embodiments three provide can be set in Intellisense server, be taken by Intellisense Business device completes the installation and deployment to newly-increased server.
Example IV
The embodiment of the present invention four provides a kind of communication equipment, including memory, processor and is stored on the memory And the computer program that can be run on the processor;The processor realizes such as the embodiment of the present invention when executing described program One or embodiment two provide described in any item newly-increased servers configuration method.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the program Matching for the described in any item newly-increased servers provided such as the embodiment of the present invention one or embodiment two is provided when being executed by processor Set the step in method.
The configuration device for increasing server provided by embodiments herein newly can be realized by a computer program.This field Technical staff is it should be appreciated that above-mentioned module division mode is only one of numerous module division modes, if divided It all should be the application's as long as the configuration device of newly-increased server has above-mentioned function for other modules or non-division module Within protection scope.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (23)

1. a kind of configuration method of newly-increased server characterized by comprising
After receiving the data packet that the interchanger being connected with newly-increased server is sent, parsed from the data packet described The MAC address of newly-increased server, wherein the MAC Address of the newly-increased server is the interchanger from connecing It obtains and is added in the data packet in the configuring request that the newly-increased server received is sent;
According to the MAC Address, the script file for being configured to the newly-increased server is determined;And
According to the script file, the newly-increased server is configured.
2. the method as described in claim 1, which is characterized in that according to the MAC Address, determine for the newly-increased service The script file that device is configured, specifically includes:
According to the MAC Address, the parameter information needed for the newly-increased server configuration is determined;And
According to the MAC Address, the configuration mould for being configured to the newly-increased server is determined from the template library of storage Plate;
According to the parameter information and the configuration template, the script text for being configured to the newly-increased server is determined Part.
3. method according to claim 2, which is characterized in that according to the MAC Address, determination needs for the newly-increased service The parameter information of device configuration, specifically includes:
According to the corresponding relationship between MAC Address and business platform, the corresponding business of MAC Address of the newly-increased server is determined Platform;
According to the business platform determined, determine that the general parameter information of business platform belonging to the newly-increased server is needs For the parameter information of the newly-increased server configuration.
4. method as claimed in claim 2 or claim 3, which is characterized in that the parameter information includes operation instruction information and function Information, wherein the operation instruction information comprises at least one of the following: boot sequence instruction and instruction of restarting, the function letter Breath comprises at least one of the following: operation system information needed for the newly-increased server, the newly-increased server need to be mounted The software package informatin of each software and the dependence package informatin of each software.
5. method as claimed in claim 4, which is characterized in that the configuration template includes instruction configuration template;And
According to the parameter information and the configuration template, the script text for being configured to the newly-increased server is determined Part specifically includes:
According to the operation instruction information and described instruction configuration template, generate for the operational order to the newly-increased server The command script file configured, described instruction script file include boot sequence command script file and instruction of restarting script File.
6. method as claimed in claim 5, which is characterized in that the configuration template further includes business configuration template;And
According to the parameter information and the configuration template, the script text for being configured to the newly-increased server is determined Part specifically includes:
According to the functional information and the business configuration template, the business for needing to configure to the newly-increased server is generated The business configuration script file disposed.
7. method as claimed in claim 6, which is characterized in that sent receiving the interchanger being connected with newly-increased server Data packet after, and according to the MAC Address, determine the script file for being configured to the newly-increased server it Before, further includes:
The port number information that the newly-increased server is connected with the interchanger is parsed from the data packet;And
According to the script file, before being configured to the newly-increased server, further includes:
According to the port number information, the script file for being configured to the interchanger is determined.
8. the method for claim 7, which is characterized in that according to the port number information, determine for the exchange The script file that machine is configured, specifically includes:
According to the port number information, determine that the parameter information of the interchanger, the parameter information include the interchanger Management address;
According to the management address, the configuration template for being configured to the interchanger is determined from the template library of storage; And
According to the parameter information of the interchanger and the configuration template for being configured to the interchanger, determination is used for The script file that the interchanger is configured.
9. method according to claim 8, which is characterized in that the parameter information of the interchanger further includes at least one of following Information: username and password needed for logging in the interchanger, port mode belonging to the corresponding port of the port numbers and Virtual LAN VLAN number belonging to the port.
10. method as claimed in claim 9, which is characterized in that by the following method according to the script file, to described new Increase server to be configured, specifically include:
Send each instruction in described instruction script file to the newly-increased server, trigger the newly-increased server according to The configuration to operational order is completed in the instruction received;And
Each configuration order in the script file for being configured to the interchanger is sent to the interchanger, The interchanger is triggered by the newly-increased server and the setting of Pre-boot Execution Environment PXE server in VLAN layers same;
Each business configuration order in the business configuration script file is sent to the PXE server, triggers the PXE Server completes the business configuration to the newly-increased server according to the business configuration order received.
11. a kind of configuration device of newly-increased server characterized by comprising
First resolution unit, for after receiving the data packet that the interchanger that is connected with newly-increased server is sent, from described The MAC address of the newly-increased server is parsed in data packet, wherein the MAC of the newly-increased server Location is that the interchanger obtains from the configuring request that the newly-increased server received is sent and is added to the data packet In;
First determination unit, for according to the MAC Address, determining the script text for being configured to the newly-increased server Part;
Configuration unit, for being configured to the newly-increased server according to the script file.
12. device as claimed in claim 11, which is characterized in that
First determination unit is specifically used for determining the ginseng needed for the newly-increased server configuration according to the MAC Address Number information;And according to the MAC Address, determination is matched for what is configured to the newly-increased server from the template library of storage Set template;According to the parameter information and the configuration template, the script for being configured to the newly-increased server is determined File.
13. device as claimed in claim 12, which is characterized in that
First determination unit, specifically for determining described newly-increased according to the corresponding relationship between MAC Address and business platform The corresponding business platform of the MAC Address of server;According to the business platform determined, industry belonging to the newly-increased server is determined The general parameter information of business platform be need be the newly-increased server configuration parameter information.
14. device as described in claim 12 or 13, which is characterized in that the parameter information includes operation instruction information and function Energy information, wherein the operation instruction information comprises at least one of the following: boot sequence instruction and instruction of restarting, the function Information comprises at least one of the following: operation system information needed for the newly-increased server, the newly-increased server need to install Each software software package informatin and each software dependence package informatin.
15. device as claimed in claim 14, which is characterized in that the configuration template includes instruction configuration template;And
First determination unit is specifically used for according to the operation instruction information and described instruction configuration template, and generation is used for To the command script file that the operational order of the newly-increased server is configured, described instruction script file includes boot sequence Command script file and instruction of restarting script file.
16. device as claimed in claim 15, which is characterized in that the configuration template further includes business configuration template;And
First determination unit is also used to be generated according to the functional information and the business configuration template for described The business configuration script file that the business that newly-increased server needs to configure is disposed.
17. device as claimed in claim 16, which is characterized in that further include:
Second resolution unit, for receiving what the interchanger being connected with newly-increased server was sent in first resolution unit After data packet, and in the determination unit according to the MAC Address, determine for being configured to the newly-increased server Before script file, the port numbers letter that the newly-increased server is connected with the interchanger is parsed from the data packet Breath;
Second determination unit, for, according to the script file, being configured to the newly-increased server in the configuration unit Before, according to the port number information, the script file for being configured to the interchanger is determined.
18. device as claimed in claim 17, which is characterized in that
Second determination unit is specifically used for determining the parameter information of the interchanger according to the port number information, described Parameter information includes the management address of the interchanger;According to the management address, determined from the template library of storage for pair The configuration template that the interchanger is configured;And according to the parameter information of the interchanger and described for the interchanger The configuration template configured determines the script file for being configured to the interchanger.
19. device as claimed in claim 18, which is characterized in that the parameter information of the interchanger further includes following at least one Information: username and password needed for logging in the interchanger, port mode belonging to the corresponding port of the port numbers with And virtual LAN VLAN number belonging to the port.
20. device as claimed in claim 19, which is characterized in that
The configuration unit is instructed specifically for sending each in described instruction script file to the newly-increased server, Trigger configuration of the newly-increased server according to the instruction completion received to operational order;And to described in interchanger transmission Each configuration order in script file for being configured to the interchanger, triggering the interchanger will be described newly-increased Server and Pre-boot Execution Environment PXE server are arranged in VLAN layers same;The industry is sent to the PXE server The each business configuration order being engaged in configuration script file triggers the PXE server and orders according to the business configuration received Enable the business configuration completed to the newly-increased server.
21. a kind of configuration system of newly-increased server, which is characterized in that increase server, at least one friendship newly including at least one It changes planes, PXE server and Intellisense server, wherein be provided with claim 11~20 in the Intellisense server Device described in any claim.
22. a kind of communication equipment, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program;It is characterized in that, the processor is realized when executing described program such as any one of claim 1~10 institute The configuration method for the newly-increased server stated.
23. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step in the configuration method such as the described in any item newly-increased servers of claim 1~10 is realized when execution.
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 true CN109474443A (en) 2019-03-15
CN109474443B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130962A (en) * 2019-12-30 2020-05-08 联想(北京)有限公司 Automatic configuration method, equipment, system and storage medium for switch
CN111245898A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 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
WO2021017617A1 (en) * 2019-07-29 2021-02-04 中兴通讯股份有限公司 Network device networking method and apparatus
CN114625382A (en) * 2022-02-14 2022-06-14 武汉达梦数据技术有限公司 Method and device for automatically discovering geological disaster monitoring equipment
CN114785684A (en) * 2022-04-24 2022-07-22 沙龙机甲科技有限公司 Port configuration method and device of vehicle switch, vehicle and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951341A (en) * 2010-09-14 2011-01-19 福建星网锐捷网络有限公司 Server physical position marking method, equipment and system
CN102257772A (en) * 2010-06-07 2011-11-23 华为技术有限公司 Method, device and system for service configuration
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102257772A (en) * 2010-06-07 2011-11-23 华为技术有限公司 Method, device and system for service configuration
CN101951341A (en) * 2010-09-14 2011-01-19 福建星网锐捷网络有限公司 Server physical position marking method, equipment and system
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017617A1 (en) * 2019-07-29 2021-02-04 中兴通讯股份有限公司 Network device networking method and apparatus
CN111130962A (en) * 2019-12-30 2020-05-08 联想(北京)有限公司 Automatic configuration method, equipment, system and storage medium for switch
CN111245898A (en) * 2019-12-31 2020-06-05 中国建设银行股份有限公司 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
CN114625382A (en) * 2022-02-14 2022-06-14 武汉达梦数据技术有限公司 Method and device for automatically discovering geological disaster monitoring equipment
CN114625382B (en) * 2022-02-14 2022-11-08 武汉达梦数据技术有限公司 Method and device for automatically discovering geological disaster monitoring equipment
CN114785684A (en) * 2022-04-24 2022-07-22 沙龙机甲科技有限公司 Port configuration method and device of vehicle switch, vehicle and storage medium
CN114785684B (en) * 2022-04-24 2024-04-05 长城汽车股份有限公司 Port configuration method and device of vehicle switch, vehicle and storage medium

Also Published As

Publication number Publication date
CN109474443B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
CN109474443A (en) A kind of configuration method, device, system and the communication equipment of newly-increased server
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
US7984125B2 (en) Techniques for deploying virtual machines using a DHCP server to assign reserved IP addresses
US8566459B2 (en) Systems and methods for integrated console management interface
CN103731514B (en) Virtual network management method
US8856337B2 (en) Method and apparatus of cluster system provisioning for virtual maching environment
CN111585917B (en) Bare metal server network system and implementation method thereof
US20140101467A1 (en) Discovering, validating, and configuring hardware-inventory components
CN105227344A (en) Based on software defined network analogue system and the method for OpenStack
US8219690B2 (en) Recording medium that stores internet-protocol (IP) address assignment control program, IP address assignment control apparatus, and IP address assignment control method
US10333785B2 (en) Server information handling system configuration by peer-to-peer networking
CN102571698A (en) Access authority control method, system and device for virtual machine
CN108206847A (en) CDN management system, method and device
CN104104572A (en) Automatic deploying method and device for switch in SDN network
CN107846313B (en) A kind of method and the network equipment of the generation of network service moulding plate
CN109587005A (en) Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN105071948A (en) Automatic deployment method and device for access switcher
US8819200B2 (en) Automated cluster node configuration
CN113407307A (en) Port expansion method, device, equipment and computer readable storage medium
CN102970161A (en) Cloud machine deployment platform and deployment method
CN109756359A (en) The method and remote server and network system of auto-initiation network equipment
CN115348126A (en) Network target range entity equipment access method, device and implementation system
WO2016198004A1 (en) Network gambit configuration method and apparatus under virtualization technology
CN115499413B (en) Method and system for batch configuration of fixed IP addresses of virtual machines based on KVM

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