CN106888258A - A kind of server info input method and system - Google Patents

A kind of server info input method and system Download PDF

Info

Publication number
CN106888258A
CN106888258A CN201710096135.6A CN201710096135A CN106888258A CN 106888258 A CN106888258 A CN 106888258A CN 201710096135 A CN201710096135 A CN 201710096135A CN 106888258 A CN106888258 A CN 106888258A
Authority
CN
China
Prior art keywords
server
information
preset configuration
mirror image
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710096135.6A
Other languages
Chinese (zh)
Inventor
王晓通
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710096135.6A priority Critical patent/CN106888258A/en
Publication of CN106888258A publication Critical patent/CN106888258A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of server info input method and system, the method includes:Default root file system mirror image is pre-build, and the agent files of the preset configuration information of the server host for obtaining itself connection automatically are created in root file system mirror image;Operation agent files, the automatic preset configuration information for obtaining server host;Check and derive the preset configuration information of the server host of automatic acquisition;Single node or batch input are through responding the preset configuration information of the server host that extraneous control signal is filtered out to the configuration management database of data center.In the technical program, it is pre-created an agent file, the automatic preset configuration information for obtaining server host when this document is run, and derive the preset configuration information of these server hosts, so that user is screened, then, to data center, simple and easy to applyly by the relevant information typing of server to data center, and Data Enter is more accurate for single node or typing in bulk.

Description

A kind of server info input method and system
Technical field
The present invention relates to server technology field, more particularly to a kind of server info input method and system.
Background technology
With the development of information technology, requirement more and more higher of the people for the treatment of data.Currently, cloud computing by Gradually approved by industry, cloud is gradually realized and is committed to practice, and infrastructure is service, platform is serviced, software is serviced all It has been landed that, entered commercial stage.Data center all can order quantity server, and purchase new server be required for record Enter the CMDB (configuration management database) to data center, be nowadays all the relevant information of every server of manual record, make Make corresponding form or separate unit typing, this mode wastes time and energy.And the relevant information of server is complicated, it is artificial obtain and Typing is difficult.
Therefore, how to realize that input method simple and easy to apply carries out typing with by the relevant information of server, be this area The current technical issues that need to address of technical staff.
The content of the invention
It is an object of the invention to provide a kind of server info input method and system, it is possible to achieve typing simple and easy to apply Method carries out typing with by the relevant information of server.
In order to solve the above technical problems, the invention provides following technical scheme:
A kind of server info input method, including:
Default root file system mirror image is pre-build, and is created in the root file system mirror image for automatic acquisition The agent files of the preset configuration information of the server host of itself connection;
The agent files are run, the preset configuration information of the server host is obtained automatically;
Check and derive the preset configuration information of the server host of the automatic acquisition;
The preset configuration information of the server host that single node or batch input are filtered out through the extraneous control signal of response is extremely The configuration management database of data center.
Preferably, it is described to pre-build default root file system mirror image, and created in the root file system mirror image Agent files for obtaining the preset configuration information of the server host of itself connection automatically, including:
Pre-build that an initramfs.img simplifies mirror image;
By gzip-dc initramfs.img | the initramfs.img is simplified image decompressing by cpio-div orders It is reduced to default file directory;
Default agent files are set up, and the agent files are simplified into mirror image added to the initramfs.img;
Build Dynamic Host Configuration Protocol server configuration pxe guiding file and tftp server address;
Setting tftp server root, and copy and with the addition of the initramfs.img of agent files and simplify mirror image to institute Tftp server root is stated, pxelinux.cfg catalogues are created;
Extraneous input signal is responded, the preset configuration of the corresponding automatic server host for obtaining connection is selected and create Agent files in the script of information to the pxelinux.cfg catalogues.
Preferably, the operation agent files, obtain the preset configuration information of the server host automatically, wrap Include:
Run the agent files, obtain automatically the memory information of the server host, CPU information, network interface card information, Raid card informations, type information, manufacturer's information.
A kind of server info input system, including:
Agent management modules, for pre-building default root file system mirror image, and in the root file system mirror image The agent files of the middle preset configuration information for creating the server host for obtaining itself connection automatically, run the agent File, obtains the preset configuration information of the server host automatically;
It is automatic to find pond management module, for checking and derive the automatic acquisition the server host pre- establishing Confidence ceases;
Host information typing management module, for the clothes that single node or batch input are filtered out through the extraneous control signal of response Be engaged in device main frame preset configuration information to data center configuration management database.
Preferably, the Agent management modules include:
Internal memory linux mirror image production units, for pre-building that an initramfs.img simplifies mirror image, by gzip- Dc initramfs.img | the initramfs.img is simplified image decompressing and is reduced to default file mesh by cpio-div orders Record, sets up default agent files, and the agent files are simplified into mirror image added to the initramfs.img;
Pxe network environments build unit, for building Dynamic Host Configuration Protocol server configuration pxe guiding files and tftp server ground Location, sets tftp server root, and copies and with the addition of the initramfs.img of agent files and simplify mirror image to described Tftp server root, creates pxelinux.cfg catalogues;
Agent writes unit, the input signal for responding the external world, selects and create the corresponding automatic clothes for obtaining connection Agent files in script to the pxelinux.cfg catalogues of the preset configuration information of business device main frame.
Preferably, the preset configuration information of the server host includes:
The memory information of the server host, CPU information, network interface card information, Raid card informations, type information, manufacturer's letter Breath.
Compared with prior art, above-mentioned technical proposal has advantages below:
A kind of server info input method provided by the present invention, including:Pre-build default root file system mirror Picture, and create in root file system mirror image the preset configuration information of server host for obtaining itself connection automatically Agent files;Operation agent files, the automatic preset configuration information for obtaining server host;Check and derive automatic acquisition The preset configuration information of server host;The server host that single node or batch input are filtered out through the extraneous control signal of response Preset configuration information to data center configuration management database.In the technical program, an agent text is pre-created Part, it is automatic when this document is run to obtain the preset configuration information of server host, and derive the default of these server hosts Configuration information, so that user is screened, then single node or typing in bulk, simple and easy to applyly will service to data center The relevant information typing of device is to data center, and Data Enter is more accurate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
The server info input method flow chart that Fig. 1 is provided by a kind of specific embodiment of the invention;
The server info input system structural representation that Fig. 2 is provided by a kind of specific embodiment of the invention.
Specific embodiment
Core of the invention is to provide a kind of server info input method and system, it is possible to achieve typing simple and easy to apply Method carries out typing with by the relevant information of server.
In order that the above objects, features and advantages of the present invention can become apparent it is understandable, below in conjunction with the accompanying drawings to this hair Bright specific embodiment is described in detail.
Elaborate detail in order to fully understand the present invention in the following description.But the present invention can with it is various not It is same as other manner described here to implement, those skilled in the art can do class in the case of without prejudice to intension of the present invention Like popularization.Therefore the present invention is not limited by following public specific implementation.
Refer to Fig. 1, the server info input method flow that Fig. 1 is provided by a kind of specific embodiment of the invention Figure.
A kind of specific embodiment of the invention provides a kind of server info input method, including:
S11:Default root file system mirror image is pre-build, and is created in root file system mirror image for automatic acquisition The agent files of the preset configuration information of the server host of itself connection.
In one embodiment of the invention, default root file system mirror image is pre-build, and in root file system The agent files of the preset configuration information for obtaining the server host for itself connecting automatically are created in mirror image, is a ring The process that border is built.
The making of internal memory linux mirror images is carried out first:Pre-build that an initramfs.img simplifies mirror image, Ke Yitong Cross one initramfs.img of network download and simplify mirror image;By gzip-dc initramfs.img | cpio-div orders will Initramfs.img simplifies image decompressing and is reduced to default file directory;Set up default agent files, and by agent files Mirror image is simplified added to initramfs.img, so as to realize by gzip-dc initramfs.img | cpio-div set up one Application mirror image needed for individual.
Next needs to carry out building for Pxe network environments:Third party's environment (cobbler) is such as used, DHCP service is built Device configuration pxe guiding file and tftp server address;Setting tftp server root, and copy with the addition of agent texts The initramfs.img of part simplifies mirror image to tftp server root, creates pxelinux.cfg catalogues.
The agent for finally being obtained host information automatically writes:Extraneous input signal is responded, selects and create corresponding Automatic acquisition connection server host preset configuration information script to pxelinux.cfg catalogues in agent text Part.Wherein, so-called extraneous input signal is the selected control of essential information of the server that user pays close attention to according to itself The control signal of the preset configuration information of corresponding server main frame is obtained, according to the input signal, can select to need what is obtained Host information fills in the corresponding script for obtaining main frame customizing messages.
S12:Operation agent files, the automatic preset configuration information for obtaining server host.
When the server of new restocking is started shooting manually, Linux system is loaded, the Linux system is to apply client net Card pxe guiding functions, using default configuration file default, by the loading customization of pxe servers comprising above-mentioned agent work( Can initramfs.img mirror images, now i.e. automatic running agent, so that this agent program can get server host Relevant information.The relevant information is the preset configuration information of above-mentioned server host, i.e., automatic acquisition server host Memory information, CPU information, network interface card information, Raid card informations, type information, manufacturer's information etc..Then invoking server RestFull interfaces report the host information of discovery.
S13:Check and derive the preset configuration information of the server host of automatic acquisition.The master for being obtained according to agent The host node that machine information is managed and displaying finds, so that user is checked and is screened.
S14:The preset configuration of the server host that single node or batch input are filtered out through the extraneous control signal of response is believed Cease to the configuration management database of data center.
According to the demand of user, the information for needing the server host for being directed into data center is filtered out, here, can be with root The server host that single node or the process of typing in bulk are filtered out is carried out according to the corresponding selection control signal of user input Relevant information to data center CMDB.
In the present embodiment, server host information is found by the above method automatically, with typing host information, is kept away Exempt from the error of manual entry host information, improve the accuracy of host information typing, it is simple and convenient.
Fig. 2 is refer to, Fig. 2 is shown by the server info input system structure that a kind of specific embodiment of the invention is provided It is intended to.
Correspondingly, one embodiment of the present invention additionally provides a kind of server info input system, including:Agent is managed Reason module 21, for pre-building default root file system mirror image, and creates for obtaining automatically in root file system mirror image The agent files of the preset configuration information of the server host of body connection are taken from, agent files are run, server is obtained automatically The preset configuration information of main frame;It is automatic to find pond management module 22, for checking and derive the server host of automatic acquisition Preset configuration information;Host information typing management module 23, sieves for single node or batch input through the extraneous control signal of response The preset configuration information of the server host selected to data center configuration management database.Wherein, server host is pre- If configuration information includes:The memory information of server host, CPU information, network interface card information, Raid card informations, type information, manufacturer The information such as information.
In the present embodiment, server host information is found by Agent management modules automatically, and by automatic discovery Pond management module is that host node is managed and shows to the server host information for obtaining, and is managed by host information typing Module comes single node or batch input host information, it is to avoid the error of manual entry host information, improves host information The accuracy of typing, it is simple and convenient.
In one embodiment of the invention, Agent management modules include:Internal memory linux mirror image production units, are used for Pre-build that an initramfs.img simplifies mirror image, by gzip-dc initramfs.img | cpio-div orders will Initramfs.img simplifies image decompressing and is reduced to default file directory, sets up default agent files, and by agent files Mirror image is simplified added to initramfs.img;Pxe network environments build unit, for building Dynamic Host Configuration Protocol server configuration pxe guiding File and tftp server address, set tftp server root, and copy with the addition of agent files Initramfs.img simplifies mirror image to tftp server root, creates pxelinux.cfg catalogues;Agent writes unit, uses In the input signal that response is extraneous, the preset configuration information of the corresponding automatic server host for obtaining connection is selected and created Agent files in script to pxelinux.cfg catalogues.
The making of internal memory linux mirror images is carried out by internal memory linux mirror images production unit, is built by Pxe network environments Unit carries out building for pxe network environments, by Agent writes unit and writes being obtained host information agent automatically.
In sum, server info input method provided by the present invention and system, automatic by Agent management modules It was found that server host information, and find that pond management module is that host node enters to the server host information for obtaining by automatic Row management and show, by host information typing management module come single node or batch input host information, it is to avoid artificial The error of typing host information, improves the accuracy of host information typing, simple and convenient.
A kind of server info input method provided by the present invention and system are described in detail above.Herein Apply specific case to be set forth principle of the invention and implementation method, the explanation of above example is only intended to help Understand the method for the present invention and its core concept.It should be pointed out that for those skilled in the art, not taking off On the premise of the principle of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into this In invention scope of the claims.

Claims (6)

1. a kind of server info input method, it is characterised in that including:
Default root file system mirror image is pre-build, and is created for obtaining itself automatically in the root file system mirror image The agent files of the preset configuration information of the server host of connection;
The agent files are run, the preset configuration information of the server host is obtained automatically;
Check and derive the preset configuration information of the server host of the automatic acquisition;
The preset configuration information of the server host that single node or batch input are filtered out through the extraneous control signal of response is to data The configuration management database at center.
2. method according to claim 1, it is characterised in that described to pre-build default root file system mirror image, and Create in the root file system mirror image preset configuration information of the server host for obtaining itself connection automatically Agent files, including:
Pre-build that an initramfs.img simplifies mirror image;
By gzip-dc initramfs.img | the initramfs.img is simplified image decompressing and is reduced to by cpio-div orders Default file directory;
Default agent files are set up, and the agent files are simplified into mirror image added to the initramfs.img;
Build Dynamic Host Configuration Protocol server configuration pxe guiding file and tftp server address;
Setting tftp server root, and copy and with the addition of the initramfs.img of agent files and simplify mirror image to described Tftp server root, creates pxelinux.cfg catalogues;
Extraneous input signal is responded, the preset configuration information of the corresponding automatic server host for obtaining connection is selected and create Script to the pxelinux.cfg catalogues in agent files.
3. method according to claim 2, it is characterised in that the operation agent files, obtains the clothes automatically The preset configuration information of business device main frame, including:
The agent files are run, memory information, CPU information, network interface card information, the Raid of the server host are obtained automatically Card information, type information, manufacturer's information.
4. a kind of server info input system, it is characterised in that including:
Agent management modules, for pre-building default root file system mirror image, and create in the root file system mirror image The agent files of the preset configuration information for obtaining the server host for itself connecting automatically are built, the agent texts are run Part, obtains the preset configuration information of the server host automatically;
It is automatic to find pond management module, for checking and derive the automatic acquisition the server host preset configuration letter Breath;
Host information typing management module, for the server that single node or batch input are filtered out through the extraneous control signal of response The preset configuration information of main frame to data center configuration management database.
5. system according to claim 4, it is characterised in that the Agent management modules include:
Internal memory linux mirror image production units, for pre-building that an initramfs.img simplifies mirror image, by gzip-dc Initramfs.img | the initramfs.img is simplified image decompressing and is reduced to default file directory by cpio-div orders, Default agent files are set up, and the agent files are simplified into mirror image added to the initramfs.img;
Pxe network environments build unit, for building Dynamic Host Configuration Protocol server configuration pxe guiding file and tftp server address, Setting tftp server root, and copy and with the addition of the initramfs.img of agent files and simplify mirror image and take to the TFTP Business device root, creates pxelinux.cfg catalogues;
Agent writes unit, the input signal for responding the external world, selects and create the corresponding automatic server for obtaining connection Agent files in the script of the preset configuration information of main frame to the pxelinux.cfg catalogues.
6. system according to claim 5, it is characterised in that the preset configuration information of the server host includes:
The memory information of the server host, CPU information, network interface card information, Raid card informations, type information, manufacturer's information.
CN201710096135.6A 2017-02-22 2017-02-22 A kind of server info input method and system Pending CN106888258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710096135.6A CN106888258A (en) 2017-02-22 2017-02-22 A kind of server info input method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710096135.6A CN106888258A (en) 2017-02-22 2017-02-22 A kind of server info input method and system

Publications (1)

Publication Number Publication Date
CN106888258A true CN106888258A (en) 2017-06-23

Family

ID=59179396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710096135.6A Pending CN106888258A (en) 2017-02-22 2017-02-22 A kind of server info input method and system

Country Status (1)

Country Link
CN (1) CN106888258A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019084853A1 (en) * 2017-11-01 2019-05-09 华为技术有限公司 Method and system for discovering hardware attribute of bare metal server
WO2023050666A1 (en) * 2021-09-30 2023-04-06 苏州浪潮智能科技有限公司 Bare metal detection method and system, and related component
CN118132011A (en) * 2024-05-06 2024-06-04 山东云海国创云计算装备产业创新中心有限公司 RAID card configuration information management method, system, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647012A (en) * 2007-03-23 2010-02-10 微软公司 Unified service management
CN104113579A (en) * 2014-02-13 2014-10-22 西安未来国际信息股份有限公司 Service system data acquisition based on UDP and realization thereof
CN105490826A (en) * 2014-09-16 2016-04-13 钛马信息网络技术有限公司 Configuration management system and method based on automatic discovery
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN106126273A (en) * 2016-06-16 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647012A (en) * 2007-03-23 2010-02-10 微软公司 Unified service management
CN104113579A (en) * 2014-02-13 2014-10-22 西安未来国际信息股份有限公司 Service system data acquisition based on UDP and realization thereof
CN105490826A (en) * 2014-09-16 2016-04-13 钛马信息网络技术有限公司 Configuration management system and method based on automatic discovery
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN106126273A (en) * 2016-06-16 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method of upgrading BIOS

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019084853A1 (en) * 2017-11-01 2019-05-09 华为技术有限公司 Method and system for discovering hardware attribute of bare metal server
WO2023050666A1 (en) * 2021-09-30 2023-04-06 苏州浪潮智能科技有限公司 Bare metal detection method and system, and related component
CN118132011A (en) * 2024-05-06 2024-06-04 山东云海国创云计算装备产业创新中心有限公司 RAID card configuration information management method, system, device, equipment and medium
CN118132011B (en) * 2024-05-06 2024-08-06 山东云海国创云计算装备产业创新中心有限公司 RAID card configuration information management method, system, device, equipment and medium

Similar Documents

Publication Publication Date Title
US8601466B2 (en) Software deployment method and system, software deployment server and user server
US8429630B2 (en) Globally distributed utility computing cloud
CN106126273B (en) A kind of method of upgrading BIOS
US8850390B2 (en) Status management for phased implementation of configuration changes
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
CN108829409A (en) A kind of distributed system quick deployment method and system
CN110969001B (en) Feedback information generation method and device, storage medium, processor and terminal
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
WO2021258951A1 (en) Method and apparatus for generating mirror image file, and computer-readable storage medium
CN108763311B (en) Interface display method and device, intelligent interactive panel and storage medium
CN107430514A (en) Use the low latency application of multiserver
CN112486491A (en) Page generation method and device, computer equipment and storage medium
CN106888258A (en) A kind of server info input method and system
US10282190B2 (en) System and method for updating a UEFI image in an information handling system
WO2023179725A1 (en) Application integration method and device
CN106569874B (en) Store the operating method and physical server of equipment
CN106980493A (en) Firmware management method and apparatus
US10324759B1 (en) Apparatus and method of securely and efficiently interfacing with a cloud computing service
CN106897064A (en) A kind of method and device of configuration BIOS
CN103620559B (en) Enabling selective policy driven propagation of configuration elements between and among a host and a plurality of guests
CN114201263A (en) Edge application management method based on cloud computing
WO2021135326A1 (en) Data backup method, apparatus and device, and medium
CN114416067A (en) Visual building system and method
CN116483382A (en) Bare metal deployment method, device and medium thereof
CN115934076A (en) Cross-platform client micro-service providing device and method and electronic equipment

Legal Events

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

Application publication date: 20170623

RJ01 Rejection of invention patent application after publication