CN108063678A - The method and apparatus for generating client identifying information - Google Patents

The method and apparatus for generating client identifying information Download PDF

Info

Publication number
CN108063678A
CN108063678A CN201610987133.1A CN201610987133A CN108063678A CN 108063678 A CN108063678 A CN 108063678A CN 201610987133 A CN201610987133 A CN 201610987133A CN 108063678 A CN108063678 A CN 108063678A
Authority
CN
China
Prior art keywords
configuration file
identification strings
identification
client computer
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.)
Granted
Application number
CN201610987133.1A
Other languages
Chinese (zh)
Other versions
CN108063678B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610987133.1A priority Critical patent/CN108063678B/en
Publication of CN108063678A publication Critical patent/CN108063678A/en
Application granted granted Critical
Publication of CN108063678B publication Critical patent/CN108063678B/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/0803Configuration setting
    • 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/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements

Abstract

The invention discloses a kind of method and apparatus for generating client identifying information.Wherein, this method includes:Generate the identification strings in the configuration file of client computer;Judge starting log whether comprising the identification strings in configuration file;In the case of the identification strings during starting log does not include configuration file, the identification strings in configuration file are sent to Database Systems, to obtain the identification information for unique mark client computer.The present invention solves that when client computer is communicated with host in the prior art, configuration file method is cumbersome and the technical issues of easily being clashed with other client computer.

Description

The method and apparatus for generating client identifying information
Technical field
The present invention relates to computer communication field, in particular to a kind of method for generating client identifying information and Device.
Background technology
In the prior art, when host and client computer are communicated, first, host needs to generate a unique body for client computer Part mark, reuses the unique identity and is configured to client computer, thus need to be at least connected with client computer twice afterwards, leads to Letter process is cumbersome, and communication quality is easily impacted.Secondly, a usual host can be carried out with multiple client computer simultaneously Communication, if the unique identity of a client computer and the unique identity of other client computer clash, client computer will It can not start.In the prior art these problems be all unfavorable for configuration file in host and client computer communication process work it is automatic Change.
For when client computer is communicated with host in the prior art, configuration file method it is cumbersome and easily with other client computer The technical issues of clashing, currently no effective solution has been proposed.
The content of the invention
An embodiment of the present invention provides a kind of method and apparatus for generating client identifying information, at least to solve existing skill When client computer is communicated with host in art, configuration file method is cumbersome and technology that easily clashed with other client computer is asked Topic.
One side according to embodiments of the present invention provides a kind of method for generating client identifying information, this method Including:Generate the identification strings in the configuration file of client computer;Judge starting log whether comprising the mark in configuration file Character string;In the case of the identification strings during starting log does not include configuration file, the identifier word in configuration file is sent Symbol string is to Database Systems, to obtain the identification information for unique mark client computer.
One side according to embodiments of the present invention additionally provides a kind of device for generating client identifying information, the dress Put including:Generation module, for generating the identification strings in the configuration file of client computer;Analysis module, for judging to start Whether daily record includes the identification strings in configuration file;Delivery module, used in not including configuration file in starting log In the case of identification strings, the identification strings in configuration file are sent into Database Systems, are uniquely marked with obtaining Know the identification information of client computer.
In embodiments of the present invention, by the way of client identifying information is generated, by the configuration text for generating client computer Identification strings in part;Judge starting log whether comprising the identification strings in configuration file;Do not include in starting log In the case of identification strings in configuration file, the identification strings in configuration file are sent to Database Systems, to obtain For the identification information of unique mark client computer.Achieve the purpose that client computer is autonomously generated identity, it is achieved thereby that carrying The technique effect of high client computer and main-machine communication efficiency, and then when solving that client computer is communicated with host in the prior art, Configuration file method is cumbersome and the technical issues of easily being clashed with other client computer.
Description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description does not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram of generation client identifying information according to embodiments of the present invention;
Fig. 2 is a kind of method flow diagram of optional generation client identifying information according to embodiments of the present invention;
Fig. 3 is a kind of method flow diagram of optional generation client identifying information according to embodiments of the present invention;
Fig. 4 is a kind of method flow diagram of optional generation client identifying information according to embodiments of the present invention;
Fig. 5 is a kind of method flow diagram of optional generation client identifying information according to embodiments of the present invention;
Fig. 6 is a kind of method flow diagram of optional generation client identifying information according to embodiments of the present invention;
Fig. 7 is a kind of schematic device of generation client identifying information according to embodiments of the present invention;
Fig. 8 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention;
Fig. 9 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention;
Figure 10 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention;
Figure 11 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention;With And
Figure 12 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, without being used to describe specific order or precedence.It should be appreciated that it so uses Data can exchange in the appropriate case, so as to the embodiment of the present invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment for the method for generating client identifying information is provided, it is necessary to illustrate , step shown in the flowchart of the accompanying drawings can hold in the computer system of such as a group of computer-executable instructions Row, although also, show logical order in flow charts, it in some cases, can be to be different from order herein Perform shown or described step.
Fig. 1 is a kind of method flow diagram of generation client identifying information according to embodiments of the present invention, as shown in Figure 1, This method comprises the following steps:
Step S102 generates the identification strings in the configuration file of client computer.
In above-mentioned steps S102, client computer can generate identification strings, and when being communicated with host, client computer can To be autonomously generated the identification strings in configuration file, client computer can by obtain the current temporal information of client devices, MAC Address sets information etc., and the current temporal information got, MAC Address, set information etc. and be converted to identifier word Symbol string, by the identification strings being converted to write where client computer configuration file in, be autonomously generated identification strings it After can select to restart client computer, and run next step.
It should be noted that above-mentioned client computer can be slave associated with host, in slave and main-machine communication process In, host can be exchanged with slave.
Whether step S104 judges starting log comprising the identification strings in configuration file.
In above-mentioned steps S104, it after client computer is restarted, can start to read starting log, can be opened by reading Dynamic daily record judges the identification strings in above-mentioned configuration file for client whether are included in the configuration file of starting log client computer, It obtains at least one character string that judging result is included, if there is the preset field to match with identification strings.Such as Fruit starting log includes the identification strings in above-mentioned configuration file for client, illustrates that this identification strings is not unique, it is possible to It is clashed with other client computer, then regenerates the identification strings in the configuration file of client computer.
Step S106 in the case of the identification strings during starting log does not include configuration file, sends configuration file In identification strings to Database Systems, to obtain the identification information for unique mark client computer.
It, can be in above-mentioned steps S106 in the case of the identification strings during starting log does not include configuration file Selection continues to track above-mentioned daily record in preset time, can if not monitoring the identification strings of conflict in preset time To send the identification strings in configuration file to Database Systems, to obtain the identification information for unique mark client computer.
In the case of the identification strings during starting log does not include configuration file, step S106 is sent in configuration file Identification strings to Database Systems, Database Systems are asked by receiving communication protocol, the mark sent in being asked Character string.Wherein, communication protocol request includes at least:HTTP POST.Database Systems can to the identification strings that receive into Row parsing, the parsing information of the first character string after being parsed.Information is parsed including at least one of following:IP address, host Name and identification information.After obtaining parsing information, it can be inquired according to IP address and/or host name in Database Systems Corresponding server records file, and the identification information that parsing is obtained is stored in the respective field of the record.
It should be noted that the step S102 to step S106 that the embodiment of the present application one is provided can be in client terminal Upper operation, in implementation process, client computer in the above-described embodiments can be the slave to communicate with host, below just with from Machine is described in detail above-described embodiment exemplified by being communicated with host.
When slave is communicated with host, slave can obtain current time information, and the current time got is believed Breath is converted to an identification strings, wherein, above-mentioned identification strings can be 20 character strings, such as:saltid already in used**.Be converted to identification strings can be write in the configuration file of slave, in generation visitor After identification strings in the configuration file of family machine, slave can be restarted, update the identifier word in the configuration file in slave Symbol string information.After starting slave, can analyze in starting log above-mentioned client whether occur by reading the starting log of salt Identification strings saltid already in used** in machine configuration file.If starting log is matched somebody with somebody comprising above-mentioned client computer The identification strings saltid already in used** in file are put, illustrate this identification strings in starting log not only One, it is possible to be clashed with the identification strings of other slaves, then need to regenerate the mark in the configuration file of client computer Know character string.Identification strings saltid already in starting log does not include above-mentioned configuration file for client In the case of used**, it can select to continue to track above-mentioned starting log 30 seconds, if be not detected in 30 seconds conflicting Identification strings.Slave reads the configuration information that identification strings are expert in configuration file by reading configuration file, according to The configuration information being expert at generates the first character string, and the first character string includes at least one of following content:IP address, host name with And identification information, it concurrently serves and states the first character string to Database Systems.Database Systems are by receiving and parsing through the first character String gets the parsing information of the first character string after parsing, wherein, the parsing information of the first character string include it is at least following it One:IP address, host name and identification information.
In embodiments of the present invention, by the way of client identifying information is generated, by the configuration text for generating client computer Identification strings in part;Judge starting log whether comprising the identification strings in configuration file;Do not include in starting log In the case of identification strings in configuration file, the identification strings in configuration file are sent to Database Systems, to obtain For the identification information of unique mark client computer.Achieve the purpose that client computer is autonomously generated identity, it is achieved thereby that carrying The technique effect of high client computer and main-machine communication efficiency, and then when solving that client computer is communicated with host in the prior art, Configuration file method is cumbersome and the technical issues of easily being clashed with other client computer.
Based on the scheme that above-mentioned steps S102 is provided to step S106, present invention also provides following preferred embodiments:
Optionally, Fig. 2 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure as shown in Fig. 2, when performing step S102, that is, generates the identification strings in the configuration file of client computer, above method bag Include following steps:
Step S202 obtains the current time information of client computer.
Step S204 converts current time information as identification strings.
Step S206, will be in the configuration file of identification strings write-in client computer.
In above-mentioned steps S202 into S206, when client computer is communicated with host, client computer can be worked as by obtaining The preceding time obtains a current time information, and the temporal information got is converted to an identification strings, wherein, on It can be 20 character strings to state identification strings.The identification strings being converted to are write in configuration file, are being obtained To after the identification strings in configuration file to be detected, client computer can be restarted.
In a kind of optional embodiment, illustrated below by taking salt-minion client computer as an example, in salt- In minion client computer, generation module can be disposed, 20 character strings are generated based on time point at that time, and by the character string It is write into as indications character string in the configuration file of salt-minion client computer, restarts salt-minion client computer, performed Next step.
Optionally, Fig. 3 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 3, this method comprises the following steps:
Step S303 in the case of the identification strings during starting log includes configuration file, re-executes S301 lifes The step of into identification strings in the configuration file of client computer.
Step S305, in the case of the identification strings during starting log does not include configuration file, in preset time Judge whether to monitor identification strings.
The present embodiment may further include default after the identification strings during starting log does not include configuration file The step of judging whether to detect identification strings in time.
In above-mentioned steps S303 into step S305, after starting client computer, it can start to read the starting log of salt.Sentence It whether there is the identification strings consistent with identification strings in disconnected starting log.Mark in starting log includes configuration file In the case of knowing character string, step S102 is re-executed, that is, generates the identification strings in the configuration file of client computer, is starting In the case that daily record does not include the identification strings in configuration file, judge whether to monitor mark character in preset time String.Wherein, above-mentioned preset time can be 30 seconds, i.e. selection continues to track above-mentioned starting log 30 seconds, to determine whether monitoring To identification strings.
It in a kind of optional embodiment, is illustrated below by taking salt-minion client computer as an example, starts salt- After minion client computer, can start whether identification strings occur in the starting log of reading salt, wherein, identification strings " saltid already in used** " field is can be, but not limited to, if there is consistent identification strings, can be repeated Step S102;If there are not the same identification strings, selection continues to track above-mentioned starting log 30 seconds, judges whether to supervise Measure identification strings.
Optionally, Fig. 3 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure as shown in figure 3, performing step S305, i.e., judges whether after monitoring preset field, this method is also in preset time Include the following steps:
Step S307 in the case of not monitoring identification strings in preset time, is then performed and sent in configuration file Identification strings to Database Systems the step of.
In above-mentioned steps S307, a monitoring time can be pre-set, monitors whether to match somebody with somebody in preset time The identification strings in file are put, if not monitoring identification strings in preset time, it is above-mentioned that transmission can be performed The step of identification strings to Database Systems in configuration file.
It in a kind of optional embodiment, is illustrated below by taking salt-minion client computer as an example, if do not marked Know character string book character string, then continue to monitor starting log configuration file 30 seconds, then carry out judging whether above-mentioned mark occur Character string monitors book character string.Monitoring 30 seconds after still without conflict mark character string daily record is detected in the case of, can To set out the identification strings in configuration file to Database Systems is sent to enter to send identification strings in configuration file to data Step in storehouse.
Optionally, Fig. 4 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 4, step S106 is being performed i.e. in the case of the identification strings during starting log does not include configuration file, The identification strings in configuration file are sent to Database Systems, to obtain the identification information for unique mark client computer, bag Include following steps:
Step S402 reads the configuration information that identification strings are expert in configuration file.
Step S404 generates the first character string according to configuration information.
Step S406 sends the first character string to Database Systems.
In above-mentioned steps S402 into step S406, client computer is identified by reading configuration file with obtaining in configuration file The configuration information that character string is expert at generates the first character string according to the configuration information being expert at, wherein, the first character string is at least Including one of following content:IP address, host name and identification strings are concurrently served and state the first character string to Database Systems In.
In a kind of optional embodiment, illustrated below by taking salt-minion client computer as an example, salt-minion Client computer obtains the configuration information that identification strings are expert in configuration file, generates one first by reading configuration file Character string, wherein, the first character string can be that json goes here and there, and the first character string includes at least one of following content:Ip, host name, Identification strings are concurrently served and state the first character string into Database Systems, can be by above-mentioned first word by HTTPPOST Symbol string is uploaded in Database Systems.Wherein, json strings can be, but not limited to following form:{‘ip’:’x.x.x.x’,’ hostname’:’xx-xx-xx’,’saltid’:‘xxxxxxxxx’}.
Optionally, Fig. 5 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 5, step S106 is being performed i.e. in the case of the identification strings during starting log does not include configuration file, The identification strings in configuration file are sent to Database Systems, to obtain the identification information for unique mark client computer, are gone back Include the following steps:
Step S502, Database Systems receive the first character string, and parse the first character string.
Step S504, Database Systems obtain the parsing information of the first character string after parsing, wherein, the first character string Information is parsed including at least one of following:IP address, host name and identification information.
In above-mentioned steps S502 into step S504, Database Systems are got by receiving and parsing through the first character string The parsing information of the first character string after parsing achievees the purpose that the identification strings in parsing client computer, wherein, the first character The parsing information of string includes at least one of following:IP address, host name and identification information.
In a kind of optional embodiment, illustrated below by taking salt-minion client computer as an example, Database Systems can To parse data message, can receive communication protocol request, obtain the identification strings sent in agreement.Wherein, communication protocols View request includes at least:HTTP POST.It goes here and there to obtain by the json sent in analysis request at least one of following:IP address, master Machine name and identification information.
Optionally, Fig. 6 is a kind of method flow of optional generation client identifying information according to embodiments of the present invention Figure, as shown in fig. 6, performing step S504, i.e. Database Systems obtain the parsing information of the first character string after parsing, In, the parsing information of the first character string is including at least one of following:IP address, host name and identification information, including walking as follows Suddenly:
Step S602, Database Systems inquire corresponding record file according to IP address and host name.
Step S604, Database Systems will be in identification information storages to the respective field for recording file.
In above-mentioned steps S602 into step S604, after parsing information is obtained, Database Systems can be according to parsing IP address and/or host name in information, inquire corresponding server record in the database, and by the identifier word after parsing Identification information in symbol string is stored in the respective field of the record.
In a kind of optional embodiment, according to IP address and/or host name, inquired in Database Systems corresponding Server records, and saltid is stored in the respective field of the record and completes record.
Embodiment 2
According to embodiments of the present invention, a kind of embodiment for the method for generating client identifying information is additionally provided.
Fig. 7 is a kind of schematic device of generation client identifying information according to embodiments of the present invention, as shown in fig. 7, The device includes:Generation module 70, analysis module 72, delivery module 74.
Wherein, generation module 70, for generating the identification strings in the configuration file of client computer;Analysis module 72 is used In judging starting log whether comprising the identification strings in configuration file;Delivery module 74, for not including in starting log In the case of identification strings in configuration file, the identification strings in configuration file are sent into Database Systems, to obtain It takes in the identification information of unique mark client computer.
As shown in fig. 7, when slave is communicated with host, slave can dispose generation module 70 by obtaining current time Information, and the current time information got is converted to an identification strings, wherein, above-mentioned identification strings can be one A 20 character strings, such as:saltid already in used**.Be converted to identification strings can be write In the configuration file of slave, generation client computer configuration file in identification strings after, slave can be restarted, update from Identification strings information in configuration file in machine.After slave is started, analysis module 72 can be by reading opening for salt Dynamic daily record, analyzes the identification strings saltid already whether occurred in starting log in above-mentioned configuration file for client in used**.If starting log includes the identification strings saltid already in above-mentioned configuration file for client Used** illustrates that this identification strings is not unique in starting log, it is possible to rush with the identification strings of other slaves It is prominent, then need to regenerate the identification strings in the configuration file of client computer.Match somebody with somebody in starting log not comprising above-mentioned client computer In the case of putting the identification strings saltid already in used** in file, delivery module 74 can select to continue with The above-mentioned starting log of track 30 seconds, if conflicting identification strings were not detected in 30 seconds.Slave is by reading configuration text Part reads the configuration information that identification strings are expert in configuration file, and the first character is generated according to the configuration information being expert at String, the first character string include at least one of following content:IP address, host name and identification information are concurrently served and state the first word Symbol is gone here and there to Database Systems.Database Systems get the first character string after parsing by receiving and parsing through the first character string Parsing information, wherein, the parsing information of the first character string includes at least one of following:IP address, host name and mark letter Breath.
In a kind of optional embodiment, above-mentioned module is by the way of client identifying information is generated, by generating visitor Identification strings in the configuration file of family machine;Judge starting log whether comprising the identification strings in configuration file;It is opening In the case that dynamic daily record does not include the identification strings in configuration file, identification strings in configuration file are sent to database System, to obtain the identification information for unique mark client computer.Achieve the purpose that client computer is autonomously generated identity, from And realize the technique effect for improving client computer and main-machine communication efficiency, and then solve in the prior art client computer and host into During row communication, configuration file method is cumbersome and the technical issues of easily being clashed with other client computer.
Herein it should be noted that above-mentioned generation module 70, analysis module 72, delivery module 74 correspond in embodiment one Step S102 to step S106, above-mentioned module is identical with example and application scenarios that corresponding step is realized, but is not limited to One disclosure of that of above-described embodiment.It should be noted that above-mentioned module can be at such as one group as a part of of device It is performed in the computer system of computer executable instructions.
Optionally, Fig. 8 is a kind of schematic device of optional generation client identifying information according to embodiments of the present invention, As shown in figure 8, in a kind of optional embodiment, generation module 70 includes:First acquisition unit 701, conversion unit 703 are write Enter unit 705.Wherein, first acquisition unit 701, for obtaining the current time information of client computer;Conversion unit 703, is used for Current time information is converted as identification strings;Writing unit 705, for identification strings to be write to the configuration file of client computer In.
Herein it should be noted that above-mentioned first acquisition unit 701, conversion unit 703, writing unit 705 correspond in fact The step S202 to step S206 in example one is applied, above-mentioned module is identical with example and application scenarios that corresponding step is realized, But it is not limited to one disclosure of that of above-described embodiment.It should be noted that above-mentioned module can be as a part of of device It is performed in the computer system of such as a group of computer-executable instructions.
Optionally, Fig. 9 is a kind of device signal of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 9, in a kind of optional embodiment, device further includes:First execution module 90, the second execution module 92.
Wherein, the first execution module 90, for starting log include configuration file in identification strings in the case of, Generation module 70 is called to regenerate the identification strings in the configuration file of client computer;Second execution module 92, for opening In the case that dynamic daily record does not include the identification strings in configuration file, judge whether to monitor mark character in preset time String.
Herein it should be noted that above-mentioned first execution module 90, the second execution module 92 correspond in embodiment one Step S302 to step S304, above-mentioned module is identical with example and application scenarios that corresponding step is realized, but is not limited to State one disclosure of that of embodiment.It should be noted that above-mentioned module can be in such as one group of meter as a part of of device It is performed in the computer system of calculation machine executable instruction.
Optionally, the second execution module 92 is additionally operable to:In the case of not monitoring identification strings in preset time, then Delivery module 74 is called to send the identification strings in configuration file to Database Systems.
Herein it should be noted that above-mentioned execution unit 921 correspond to embodiment one in step S307, above-mentioned module with The example that corresponding step is realized is identical with application scenarios, but is not limited to one disclosure of that of above-described embodiment.It needs Bright, above-mentioned module can be held as a part of of device in the computer system of such as a group of computer-executable instructions Row.
Optionally, Figure 10 is a kind of device signal of optional generation client identifying information according to embodiments of the present invention Figure, as shown in Figure 10, in a kind of optional embodiment, delivery module 74 includes:Reading unit 741, generation unit 743 pass Send unit 745.
Wherein, reading unit 741, for reading the configuration information that identification strings in configuration file are expert at;Generation is single Member 743, for generating the first character string according to configuration information;Transmission unit 745 sends the first character string to Database Systems.
Herein it should be noted that above-mentioned reading unit 741, generation unit 743, transmission unit 745 correspond to embodiment Step S402 to step S406 in one, said units are identical with example and application scenarios that corresponding step is realized, but not It is limited to one disclosure of that of above-described embodiment.It should be noted that above-mentioned module can be such as a part of of device It is performed in the computer system of a group of computer-executable instructions.
Optionally, Figure 11 is a kind of device signal of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 11, in a kind of optional embodiment, delivery module 74 further includes:Resolution unit 747, second acquisition unit 749。
Wherein, resolution unit 747 receive the first character string for Database Systems, and parse the first character string;Second obtains Unit 749 is taken, the parsing information of the first character string after parsing is obtained for Database Systems, wherein, the solution of the first character string Information is analysed including at least one of following:IP address, host name and identification information.
Herein it should be noted that above-mentioned resolution unit 747, second acquisition unit 749 correspond to the step in embodiment one Rapid S502 to step S504, said units are identical with example and application scenarios that corresponding step is realized, but are not limited to above-mentioned One disclosure of that of embodiment.It should be noted that above-mentioned module can be in such as one group of calculating as a part of of device It is performed in the computer system of machine executable instruction.
Optionally, Figure 12 is a kind of device signal of optional generation client identifying information according to embodiments of the present invention Figure, as shown in figure 12, in a kind of optional embodiment, second acquisition unit 763 includes:3rd acquiring unit 7631, storage Unit 7633.
Wherein, the 3rd acquiring unit 7631 inquires corresponding note for Database Systems according to IP address and host name Record file;Storage unit 7633, will be in identification information storage to the respective field for recording file for Database Systems.
Herein it should be noted that above-mentioned 3rd acquiring unit 7631, storage unit 7633 correspond in embodiment one Step S602 to step S604, said units are identical with example and application scenarios that corresponding step is realized, but are not limited to State one disclosure of that of embodiment.It should be noted that above-mentioned module can be in such as one group of meter as a part of of device It is performed in the computer system of calculation machine executable instruction.
Above device includes:Generation module, analysis module, delivery module, storage unit, reading unit, parsing module etc. As program unit storage in memory, above procedure unit stored in memory is performed by processor.It is above-mentioned to match somebody with somebody File, default first character field string, identification strings, identification information etc. is put to may be stored in memory.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, parse content of text by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of embodiment of computer program means, when being performed on data processing equipment, fitting In the program code for performing initialization there are as below methods step:Generate the identification strings in the configuration file of client computer;Judge Whether starting log includes the identification strings in configuration file;Identification strings in starting log does not include configuration file In the case of, the identification strings in configuration file are sent to Database Systems, to obtain the mark for unique mark client computer Know information.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, can be one kind Division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can combine or can To be integrated into another system or some features can be ignored or does not perform.Another, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of unit or module, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit Component may or may not be physical location, you can be located at a place or can also be distributed to multiple units On.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be employed in member is realized, can also be realized in the form of SFU software functional unit.
If integrated unit is realized in the form of SFU software functional unit and is independent production marketing or in use, can To be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or Saying all or part of the part contribute to the prior art or the technical solution can be embodied in the form of software product Out, which is stored in a storage medium, is used including some instructions so that a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of step of each embodiment method of the present invention Suddenly.And foregoing storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD.
It the above is only the preferred embodiment of the present invention, it is noted that come for those skilled in the art It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (10)

  1. A kind of 1. method for generating client identifying information, which is characterized in that including:
    Generate the identification strings in the configuration file of client computer;
    Judge starting log whether comprising the identification strings in the configuration file;
    In the case of the identification strings during the starting log does not include the configuration file, send in the configuration file Identification strings to Database Systems, to obtain the identification information for client computer described in unique mark.
  2. 2. according to the method described in claim 1, it is characterized in that, generation client computer configuration file in identification strings, Including:
    Obtain the current time information of the client computer;
    The current time information is converted as the identification strings;
    The identification strings are write in the configuration file of the client computer.
  3. 3. according to the method described in claim 1, it is characterized in that, in judging starting log whether comprising the configuration file Identification strings after, the method further includes:
    In the case of the identification strings during the starting log includes the configuration file, the generation client is re-executed The step of identification strings in the configuration file of machine;
    The starting log do not include the configuration file in identification strings in the case of, in preset time judge be It is no to monitor the identification strings.
  4. 4. according to the method described in claim 3, it is characterized in that, the method further includes:
    In the case of not monitoring the identification strings in the preset time, then perform and send in the configuration file The step of identification strings to Database Systems.
  5. 5. according to the method described in claim 1, it is characterized in that, the identification strings are not included in the starting log In the case of, identification strings in the configuration file are sent to Database Systems, including:
    Read the configuration information that identification strings are expert at described in the configuration file;
    First character string is generated according to the configuration information;
    First character string is sent to the Database Systems.
  6. 6. according to the method described in claim 5, it is characterized in that, the identification strings are not included in the starting log In the case of, the identification strings in the configuration file are sent to Database Systems, to obtain for client described in unique mark The identification information of machine, including:
    The Database Systems receive the first character string, and parse first character string;
    The Database Systems obtain the parsing information of first character string after parsing, wherein, first character string Information is parsed including at least one of following:IP address, host name and the identification information.
  7. 7. according to the method described in claim 6, it is characterized in that, the Database Systems obtain first word after parsing The parsing information of string is accorded with, including:
    The Database Systems inquire corresponding record file according to the IP address and the host name;
    The Database Systems will be in the respective field of the identification information storage to the record file.
  8. 8. a kind of device for generating client identifying information, which is characterized in that including:
    Generation module, for generating the identification strings in the configuration file of client computer;
    Analysis module, for judging starting log whether comprising the identification strings in the configuration file;
    Delivery module, for the starting log do not include the configuration file in identification strings in the case of, send Identification strings in the configuration file are believed into Database Systems with the mark obtained for client computer described in unique mark Breath.
  9. 9. device according to claim 8, which is characterized in that the generation module includes:
    First acquisition unit, for obtaining the current time information of the client computer;
    Conversion unit, for converting the current time information as the identification strings;
    Writing unit, for the identification strings to be write in the configuration file of the client computer.
  10. 10. device according to claim 8, which is characterized in that described device further includes:
    First execution module, for the starting log include the configuration file in identification strings in the case of, adjust The identification strings in the configuration file of the client computer are regenerated with the generation module;
    Second execution module, for the starting log do not include the configuration file in identification strings in the case of, Judge whether to monitor the identification strings in preset time.
CN201610987133.1A 2016-11-09 2016-11-09 Method and device for generating client identification information Active CN108063678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610987133.1A CN108063678B (en) 2016-11-09 2016-11-09 Method and device for generating client identification information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610987133.1A CN108063678B (en) 2016-11-09 2016-11-09 Method and device for generating client identification information

Publications (2)

Publication Number Publication Date
CN108063678A true CN108063678A (en) 2018-05-22
CN108063678B CN108063678B (en) 2021-05-14

Family

ID=62137385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610987133.1A Active CN108063678B (en) 2016-11-09 2016-11-09 Method and device for generating client identification information

Country Status (1)

Country Link
CN (1) CN108063678B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905475A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method and system for initial configuration of managed apparatus
CN101222377A (en) * 2007-11-23 2008-07-16 深圳国人通信有限公司 Method and device for processing slave machine parameter in distributed master-salve machine communication
US20120089710A1 (en) * 2006-06-02 2012-04-12 Rakowski Brian D Synchronizing Configuration Information Among Multiple Clients
CN104410547A (en) * 2014-12-03 2015-03-11 合肥工大高科信息科技股份有限公司 Address conflict detection method for distributed control system
CN105471594A (en) * 2014-06-04 2016-04-06 华为技术有限公司 Method and equipment for managing resource
CN105589856A (en) * 2014-10-21 2016-05-18 阿里巴巴集团控股有限公司 Log data processing method and log data processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905475A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method and system for initial configuration of managed apparatus
US20120089710A1 (en) * 2006-06-02 2012-04-12 Rakowski Brian D Synchronizing Configuration Information Among Multiple Clients
CN101222377A (en) * 2007-11-23 2008-07-16 深圳国人通信有限公司 Method and device for processing slave machine parameter in distributed master-salve machine communication
CN105471594A (en) * 2014-06-04 2016-04-06 华为技术有限公司 Method and equipment for managing resource
CN105589856A (en) * 2014-10-21 2016-05-18 阿里巴巴集团控股有限公司 Log data processing method and log data processing system
CN104410547A (en) * 2014-12-03 2015-03-11 合肥工大高科信息科技股份有限公司 Address conflict detection method for distributed control system

Also Published As

Publication number Publication date
CN108063678B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
JP7013603B2 (en) Anomaly detection method, anomaly detection device and anomaly detection system
WO2017119246A1 (en) Abnormality detection method, abnormality detection device, and abnormality detection system
CN102413044B (en) Method, device, equipment and system for generating DHCP (Dynamic Host Configuration Protocol) Snooping binding table
JP2009521744A5 (en)
CN106571942B (en) Configuration data updating method, client and server
CN103139326A (en) Method, device and system for tracing internet protocol (IP)
CN105338659B (en) A kind of equipment connection method and terminal
CN102984015B (en) A kind of gateway device identifies the method for access device type and Optimized Service automatically
CN108206750A (en) The configuration method and device of virtual machine network interface card
CN103618792B (en) Data stream identification method and device
CN106713291A (en) Multi-screen interaction method, communication terminal and server
CN106714225A (en) Method and system for identifying network device and intelligent terminal
CN101667928A (en) Client, signaling tracking server, protocol module and signaling tracking method
CN112585927A (en) Communication link detection method, device and system and movable platform
JP7006622B2 (en) Extraction device, extraction method and extraction program, as well as anomaly detection device, anomaly detection method
CN111211934A (en) Cluster remote communication test method and system
CN108234201B (en) Computer network, master device for use therein, method of configuring the master device, and computer program
CN111343196B (en) Communication system and communication method compatible with multiple communication protocols
CN108063678A (en) The method and apparatus for generating client identifying information
EP1624642A3 (en) Apparatus, method and system for providing information in accordance with one of a plurality of protocols
CN102523221B (en) Detection method of data message and network safety detection device
CA2502216A1 (en) Network monitoring system
CN109379289A (en) Route filtering strategy processing method and processing device
CN105338282A (en) Information processing method and electronic equipment
CN105792265A (en) Malicious traffic detection method and system and monitoring platform

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
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant