CN103685392A - Method for storing and distributing terminal configuration information in automatic configuration server - Google Patents

Method for storing and distributing terminal configuration information in automatic configuration server Download PDF

Info

Publication number
CN103685392A
CN103685392A CN201210339505.1A CN201210339505A CN103685392A CN 103685392 A CN103685392 A CN 103685392A CN 201210339505 A CN201210339505 A CN 201210339505A CN 103685392 A CN103685392 A CN 103685392A
Authority
CN
China
Prior art keywords
terminal
configuration information
configuration
automatic
server
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
CN201210339505.1A
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.)
BEIJING DATANG GAOHONG DATA NETWORK TECHNOLOGY Co Ltd
Original Assignee
BEIJING DATANG GAOHONG DATA NETWORK 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 BEIJING DATANG GAOHONG DATA NETWORK TECHNOLOGY Co Ltd filed Critical BEIJING DATANG GAOHONG DATA NETWORK TECHNOLOGY Co Ltd
Priority to CN201210339505.1A priority Critical patent/CN103685392A/en
Publication of CN103685392A publication Critical patent/CN103685392A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for storing and distributing terminal configuration information in an automatic configuration server. According to the invention, the configuration information about each terminal is added to the automatic configuration server by a user, and a terminal sends a configuration information acquisition request packet to the automatic configuration server when the terminal plans to inquire its own configuration information. The method comprises the following steps: after the configuration information about each terminal is completely added, the automatic configuration server stores the configuration information about each terminal in a database; after receiving a configuration information acquisition request packet from a terminal, the automatic configuration server reads the configuration information corresponding to the terminal from the database and composes the read configuration information into a character string in the form of a configuration file; the automatic configuration server sends a configuration information response packet carrying the character string in the form of the configuration file to the terminal. The method disclosed by the invention can save the storage space of the automatic configuration server, and facilitates the late-period management and maintenance.

Description

The method of the storage of terminal configuration information and distribution in Automatic Configuration Server
Technical field
The present invention relates to a kind of configuration file stores of automatic configuration and the method for distribution, particularly relate to a kind of method that the terminal configuration information that can effectively save Automatic Configuration Server memory space is stored and distributed.
Background technology
In engineering project, need the terminal quantity of configuration constantly increasing, this has brought larger workload to installation and the deployment of engineering site.For convenience of field engineering personnel's installation and deployment and user's management maintenance, generally take automatic allocation plan, by Automatic Configuration Server, all terminals in project are carried out to centralized configuration.
In existing automatic layoutprocedure, the configuration file of each terminal is all stored in Automatic Configuration Server with textual form, continuous increase due to terminal quantity to be configured in project, make the memory space for storage terminal configuration file in Automatic Configuration Server also need to increase thereupon, and when Automatic Configuration Server is embedded device, limited memory space often can not meet the configuration file demand that storage continues to increase.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of configuration information by terminal to be stored in the database of Automatic Configuration Server, the method for storing and distributing effectively to save the terminal configuration information of the memory space of Automatic Configuration Server.
For achieving the above object, the present invention is by the following technical solutions:
A kind of method of the storage of terminal configuration information and distribution in Automatic Configuration Server, by user, in Automatic Configuration Server, added the configuration information of each terminal, during the configuration information of terminal wish inquiry self, to Automatic Configuration Server, send and obtain configuration request bag, it is characterized in that, the method comprises:
1) after the configuration information of each terminal has added, Automatic Configuration Server is stored in the configuration information of each terminal in database;
2) Automatic Configuration Server is received obtaining after configuration request bag of terminal, reads out configuration information corresponding to this terminal from this database, and the configuration information that this is read out forms the character string of configuration file form;
3) Automatic Configuration Server sends to this terminal by the configuration information response packet that carries the character string of this configuration file form.
Further:
In described database, be provided with terminal configuration information table, before user's configurating terminal, this terminal configuration information table adds, and user completes after terminal configuration, and the configuration information of terminal inserts and is saved in this terminal configuration information table.
Describedly obtain configuration request bag and described configuration information response packet is followed http protocol.
The invention has the advantages that:
(1) configuration information of usage data library storage terminal, compared to the some configuration files of storage, can save the memory space of Automatic Configuration Server, especially for embedded device, can save many costs;
(2) configuration information of usage data library storage terminal, can add, the configuration information of modification, deletion, sequence and searching terminal easily, when large scale deployment terminal, has stronger practicality.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is the specific embodiment schematic diagram of the configuration information of current configuration file form;
Fig. 3 is the specific embodiment schematic diagram of the character string of configuration file form in the present invention;
Fig. 4 is the specific embodiment schematic diagram that carries the configuration information response packet of configuration file form character string in the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Fig. 1 is method flow diagram of the present invention.As shown in the figure, the method of the storage of terminal configuration information and distribution in Automatic Configuration Server of the present invention, first by user, in Automatic Configuration Server, added the configuration information of each terminal, when terminal wish is inquired about the configuration information of self, just to Automatic Configuration Server, send and obtain configuration request bag, the storage of terminal configuration information and the concrete grammar distributing are:
S10: after the configuration information of each terminal has added, Automatic Configuration Server is stored in the configuration information of each terminal in the database of Automatic Configuration Server;
Now, the configuration information of each terminal is all kept in database as a record.
S11: Automatic Configuration Server is received obtaining after configuration request bag of terminal, reads out configuration information corresponding to this terminal from this database, the configuration information that this is read out forms the character string of configuration file form;
S12: Automatic Configuration Server sends to this terminal by the configuration information response packet that carries the character string of this configuration file form.
Fig. 2 is the specific embodiment schematic diagram of the configuration information of current configuration file form, Fig. 3 is the specific embodiment schematic diagram of the character string of configuration file form in the present invention, and Fig. 4 is the specific embodiment schematic diagram that carries the configuration information response packet of configuration file form character string in the present invention.As shown in the figure, suppose that the configuration information of terminal comprises three contents: IP address, subnet mask and gateway address, respectively with Static IP, Static NetMask, Static GateWay represents, each terminal has unique MAC Address as sign, according to method of the present invention:
(1) user adds the configuration information of terminal A in Automatic Configuration Server, and the configuration information of terminal A is:
Static?IP:192.168.1.10
Static?NetMask:255.255.255.0
Static?GateWay:192.168.1.1
(2) in Automatic Configuration Server, be provided with database, need to guarantee in this database, to be added with terminal configuration information table before user's configurating terminal.After the configuration information of the complete terminal A of user add, the configuration information of terminal A inserts and is saved in this terminal configuration information table;
Wherein, the structure of this terminal configuration information table is:
CREATE?TABLE?terminalconfig(
id?INTEGER?PRIMARY?KEY.
mac?CHAR?UNIQUE?NOT?NULL,
staticip?CHAR?NOT?NULL,
staticnetmask?CHAR?NOT?NULL,
staticgateway?CHAR?NOT?NULL)
(3) terminal A wants to obtain the configuration information of self, just to Automatic Configuration Server, sends and obtains configuration request bag, carries the MAC Address of terminal A in this configuration request bag; Automatic Configuration Server is received obtaining after configuration request bag of terminal A, the MAC Address of terminal A of take is foundation, terminal configuration information table in Query Database, read out the relevant configuration information that terminal A is corresponding, and the configuration information of the terminal A reading out is formed to a character string according to the form of configuration file;
(4) Automatic Configuration Server sends to terminal A by the character string of the configuration file form obtaining in step (3) with configuration information response packet.
Wherein, terminal sends to obtain configuration request bag and the Automatic Configuration Server of Automatic Configuration Server to send to the configuration information response packet of terminal can be the packet of following http protocol.
The configuration information content of the above terminal, the procotols that terminal configuration information table form, packet are followed etc. are only for illustrating, but not for limiting the scope of the invention.In practical application, can increase and decrease as required or convert.
The method of the storage of terminal configuration information and distribution in Automatic Configuration Server disclosed by the invention, that the configuration information of each terminal is stored in the database of Automatic Configuration Server, when terminal wants to obtain self configuration information, just to Automatic Configuration Server, send and obtain configuration request bag, Automatic Configuration Server is received after this request bag, from database, read out configuration information corresponding to this terminal, be converted to the character string of configuration file form, and the configuration information response packet that carries this character string is returned to this terminal.Adopt the present invention not only can save the memory space of Automatic Configuration Server, especially can save the equipment cost of embedded device, and the configuration information of each terminal can be analyzed and operate to database manipulation also easily, be conducive to final-period management and safeguard.
The above is preferred embodiment of the present invention and the know-why used thereof; for a person skilled in the art; in the situation that not deviating from the spirit and scope of the present invention; the apparent changes such as any equivalent transformation based on technical solution of the present invention basis, simple replacement, within all belonging to protection range of the present invention.

Claims (3)

1. the method that in an Automatic Configuration Server, terminal configuration information is stored and distributed, by user, in Automatic Configuration Server, added the configuration information of each terminal, during the configuration information of terminal wish inquiry self, to Automatic Configuration Server, send and obtain configuration request bag, it is characterized in that, the method comprises:
1) after the configuration information of each terminal has added, Automatic Configuration Server is stored in the configuration information of each terminal in database;
2) Automatic Configuration Server is received obtaining after configuration request bag of terminal, reads out configuration information corresponding to this terminal from this database, and the configuration information that this is read out forms the character string of configuration file form;
3) Automatic Configuration Server sends to this terminal by the configuration information response packet that carries the character string of this configuration file form.
2. the method that in Automatic Configuration Server according to claim 1, terminal configuration information is stored and distributed, is characterized in that:
In described database, be provided with terminal configuration information table, before user's configurating terminal, this terminal configuration information table adds, and user completes after terminal configuration, and the configuration information of terminal inserts and is saved in this terminal configuration information table.
3. the method that in Automatic Configuration Server according to claim 2, terminal configuration information is stored and distributed, is characterized in that:
Describedly obtain configuration request bag and described configuration information response packet is followed http protocol.
CN201210339505.1A 2012-09-13 2012-09-13 Method for storing and distributing terminal configuration information in automatic configuration server Pending CN103685392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210339505.1A CN103685392A (en) 2012-09-13 2012-09-13 Method for storing and distributing terminal configuration information in automatic configuration server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210339505.1A CN103685392A (en) 2012-09-13 2012-09-13 Method for storing and distributing terminal configuration information in automatic configuration server

Publications (1)

Publication Number Publication Date
CN103685392A true CN103685392A (en) 2014-03-26

Family

ID=50321695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210339505.1A Pending CN103685392A (en) 2012-09-13 2012-09-13 Method for storing and distributing terminal configuration information in automatic configuration server

Country Status (1)

Country Link
CN (1) CN103685392A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270269A (en) * 2014-09-28 2015-01-07 深圳市共进电子股份有限公司 Method for automatically configuring network cards
CN106034042A (en) * 2015-03-18 2016-10-19 中国移动通信集团四川有限公司 Method of realizing automatic configuration of private line terminal, equipment and system thereof
CN107741831A (en) * 2017-10-12 2018-02-27 郑州云海信息技术有限公司 A kind of method for automatically configuring RAID card for LSI RAID cards
CN111796875A (en) * 2020-06-29 2020-10-20 苏州好玩友网络科技有限公司 Host initialization method, device, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557087A (en) * 2001-09-20 2004-12-22 英特尔公司 Automated establishment of addressability of a network device for a target network environment
CN1905475A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method and system for initial configuration of managed apparatus
CN101442800A (en) * 2008-12-23 2009-05-27 深圳华为通信技术有限公司 Method, system and terminal for discharging terminal business
CN102594579A (en) * 2011-01-06 2012-07-18 卓思网络公司 Automatic configuration and network deployment for network devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557087A (en) * 2001-09-20 2004-12-22 英特尔公司 Automated establishment of addressability of a network device for a target network environment
CN1905475A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method and system for initial configuration of managed apparatus
CN101442800A (en) * 2008-12-23 2009-05-27 深圳华为通信技术有限公司 Method, system and terminal for discharging terminal business
CN102594579A (en) * 2011-01-06 2012-07-18 卓思网络公司 Automatic configuration and network deployment for network devices

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270269A (en) * 2014-09-28 2015-01-07 深圳市共进电子股份有限公司 Method for automatically configuring network cards
CN104270269B (en) * 2014-09-28 2017-07-04 深圳市共进电子股份有限公司 A kind of method for automatically configuring network interface card
CN106034042A (en) * 2015-03-18 2016-10-19 中国移动通信集团四川有限公司 Method of realizing automatic configuration of private line terminal, equipment and system thereof
CN107741831A (en) * 2017-10-12 2018-02-27 郑州云海信息技术有限公司 A kind of method for automatically configuring RAID card for LSI RAID cards
CN111796875A (en) * 2020-06-29 2020-10-20 苏州好玩友网络科技有限公司 Host initialization method, device, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102769679B (en) Method and device for tracing source of internet protocol (IP) address after network address translation (NAT)
CN102663162B (en) Method and device for constructing topology model of power grid
CN101425969B (en) Scheduling method, apparatus and system
CN112039197A (en) Automatic mapping method of distribution room topological graph and computer readable storage medium
CN108848132B (en) Power distribution scheduling main station system based on cloud
CN103763122A (en) Fault information processing method and service system
CN103824442A (en) Real-time inquiring system for electricity utilization information based on electricity network
CN103685392A (en) Method for storing and distributing terminal configuration information in automatic configuration server
CN102946648A (en) Intelligent terminal system of wireless gateway and automatic control method of intelligent terminal system
CN102843429B (en) A kind of power distribution patrol Geographic Navigation and power distribution information management main station system
CN106443166B (en) A kind of kilowatt meter reading-out system based on platform of internet of things
CN102158550B (en) IEC61850-based power quality transient data transmission method
CN103605020A (en) Processing method and apparatus for electric energy quality data
CN102611197A (en) Digital power monitoring system according with IEC61850 (Communication Networks and Systems in Substations) standard
CN103763353A (en) Water conservation data exchange model and method
CN103546593A (en) Wireless sensor network node identifier analyzing method based on IP and non-IP
CN102590711A (en) Method and device for determining power failure range
CN102647027A (en) Method for realizing construction of power quality data exchanging interface
CN102999329B (en) The Active Directory interface exploitation method of configuration is mapped based on extend markup language
CN103414705A (en) Method for mobile internet heterogeneous data exchange based on SAAS mode
CN103545933A (en) Instation I/O interface protocol of intelligent substation online monitoring system
CN103888739B (en) The geographical location information collocation method and system of security device
CN102547613A (en) Method and system for maintaining enterprise address book
CN104679805A (en) Power grid integrated information remote access method
CN204613940U (en) A kind of equipment for reconnaissance trip

Legal Events

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

Application publication date: 20140326