CN105975359A - Method and device for data cleaning of server and server - Google Patents

Method and device for data cleaning of server and server Download PDF

Info

Publication number
CN105975359A
CN105975359A CN201510472361.0A CN201510472361A CN105975359A CN 105975359 A CN105975359 A CN 105975359A CN 201510472361 A CN201510472361 A CN 201510472361A CN 105975359 A CN105975359 A CN 105975359A
Authority
CN
China
Prior art keywords
router
binding relationship
instruction
response message
data scrubbing
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
CN201510472361.0A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510472361.0A priority Critical patent/CN105975359A/en
Publication of CN105975359A publication Critical patent/CN105975359A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and device for data cleaning of a server and the server. The method comprises the steps that a data cleaning instruction is generated when a judgment result shows that a start operation of a router being started is a restart operation conducted after factory setting restoring, wherein the data cleaning instruction comprises an identification of the router; and the data cleaning instruction is sent to a cloud side server, the cloud side server is driven to search for an account number binding relation corresponding to the router identification among pre-stored account number binding relations, the corresponding account number binding relation is deleted after the corresponding account number binding relations is found and response information is generated and returned to the router, wherein the account number binding relation is a binding relation between the router identification and login account number information of a user. By the method, device and server provided by the embodiment of the invention, consistency between the information stored in the router and the information stored in the cloud side server can be ensured after factory settings are restored for the router.

Description

A kind of server is carried out the method for data scrubbing, device and server
Technical field
The present embodiments relate to technical field of data processing, particularly relate to one and server is carried out data Method, device and the server of cleaning.
Background technology
Along with the development of science and technology, the intelligence degree of terminal unit is more and more higher, and smart machine is more Come the most universal, it is also proposed the concept of intelligent router as the router of gateway device.
Intelligent router refers to the router of intelligent management, is generally of independent operating system, can To be installed various application voluntarily by user, control bandwidth voluntarily, control online number voluntarily, control voluntarily System browses webpage, controls line duration voluntarily, has powerful USB sharing functionality simultaneously, accomplishes Network and the intelligent management of equipment.
The operating system that intelligent router is more commonly used is operating system based on OpenWrt, wherein, OpenWrt is a high modularization, supermatic embedded Linux system, has powerful Networking component and autgmentability, be typically used to industrial control equipment, phone, small scale robot, intelligence man In residence, router and VOIP equipment, in OpenWrt, there is special configuration file for protecting Deposit data, and abundant access interface is provided.
The login account information of user can be preserved in the configuration file of intelligent router, but in route When device performs to recover shipping operations, the login account information in configuration file can be emptied.Therefore, if road After being restarted by device execution recovery shipping operations, from the perspective of router, it is the login not having user (the including the binding relationship one to one of login account information and router) of account information, Er Yu road In the cloud server mutual by device, the login account information of user is to deposit with the binding relationship of router , the information which results in cloud server and router this locality is inconsistent.
Summary of the invention
The embodiment of the present invention provides a kind of and server is carried out the method for data scrubbing, device and server, In order to solve the defect that in prior art, the information of cloud server and router this locality is inconsistent, it is ensured that road After device factory reset, the information of storage and in cloud server the one of the information of storage in router Cause property.
The embodiment of the present invention provides a kind of method that server is carried out data scrubbing, including:
Judging when starting operation as reboot operation after factory reset of the router being currently up, Generation data scrubbing instructs, and described data scrubbing instruction includes Router Distinguisher;
Described data scrubbing instruction is sent to cloud server, promotes described cloud server to deposit in advance The account binding relationship of storage is searched the account binding relationship corresponding with described Router Distinguisher, and is searching The account binding relationship of described correspondence is deleted during to the account binding relationship of described correspondence, and, generate and ring Answering information and return described response message to described router, wherein, described account binding relationship is route The binding relationship of the login account information of device mark and user.
The embodiment of the present invention provides a kind of method that server is carried out data scrubbing, including:
Step S1, the data scrubbing instruction that cloud server receiving router sends, wherein, described data Cleaning instruction is that described router operates as factory reset in the startup judging the router being currently up After reboot operation time generate instruction, described data scrubbing instruction include described Router Distinguisher;
Step S2, searches the account corresponding with described Router Distinguisher in the account binding relationship prestored Number binding relationship, wherein, described account binding relationship is the login account information of Router Distinguisher and user Binding relationship;
Step S3, when finding the account binding relationship of described correspondence, the account deleting described correspondence is tied up Determine relation;
Step S4, generates response message, and returns described response message to described router.
The embodiment of the present invention provides a kind of device that server carries out data scrubbing, including:
Directive generation module, for operating in the startup judging the router being currently up as recovering to dispatch from the factory to set During the reboot operation postponed, generating data scrubbing instruction, described data scrubbing instruction includes Router Distinguisher;
First instruction sending module, for sending described data scrubbing instruction to cloud server, promotes Described cloud server is searched corresponding with described Router Distinguisher in the account binding relationship prestored Account binding relationship, and the account of described correspondence is deleted when finding the account binding relationship of described correspondence Binding relationship, and, generate response message and to the described router described response message of return, wherein, Described account binding relationship is the binding relationship of Router Distinguisher and the login account information of user.
The embodiment of the present invention provides the server of a kind of data scrubbing, including:
First command reception module, the data scrubbing instruction sent for receiving router, wherein, described Data scrubbing instruction is that described router operates as recovering to dispatch from the factory in the startup judging the router being currently up The instruction generated during reboot operation after arranging, described data scrubbing instruction includes described Router Distinguisher;
Account searches module, for searching and described router mark in the account binding relationship prestored Knowing corresponding account binding relationship, wherein, described account binding relationship is Router Distinguisher and the stepping on of user The binding relationship of record account information;
Relation removing module, for when finding the account binding relationship of described correspondence, it is described right to delete The account binding relationship answered;
Response message generation module, is used for generating response message, and returns described response to described router Information.
The a kind of of embodiment of the present invention offer carries out the method for data scrubbing, device and server to server, After the startup judging router operates as the reboot operation after factory reset, generate data scrubbing and refer to Make and send to cloud server, to ask cloud server to delete the Router Distinguisher pair with this router The account binding relationship answered, to ensure the successful deletion of account binding relationship, it is ensured that router recovers to dispatch from the factory After arranging, the information of storage and the concordance of the information of storage in cloud server in router.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the step of a kind of embodiment of the method one that server carries out data scrubbing of the embodiment of the present invention Rapid flow chart;
Fig. 2 is the step of a kind of embodiment of the method two that server carries out data scrubbing of the embodiment of the present invention Rapid flow chart;
Fig. 3 is the step of a kind of embodiment of the method three that server carries out data scrubbing of the embodiment of the present invention Rapid flow chart;
Fig. 4 is the structure of a kind of device embodiment that server carries out data scrubbing of the embodiment of the present invention Block diagram;
Fig. 5 is the structured flowchart of the server example of a kind of data scrubbing of the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
With reference to Fig. 1, it is shown that a kind of of the embodiment of the present invention carries out the method for data scrubbing in fact to server Execute the flow chart of steps of example one, specifically may include steps of:
Step 101, is judging that starting of the router being currently up operates as the weight after factory reset When opening operation, generating data scrubbing instruction, described data scrubbing instruction includes Router Distinguisher;
Step 102, sends described data scrubbing instruction to cloud server;
Wherein, described data scrubbing instruction is for promoting described cloud server to tie up in the account prestored Determine relation is searched the account binding relationship corresponding with described Router Distinguisher, and find described correspondence Account binding relationship time delete the account binding relationship of described correspondence, and, generate response message and to Described router returns described response message, and wherein, described account binding relationship is Router Distinguisher and use The binding relationship of the login account information at family.
In embodiments of the present invention, when judging that starting of router operates as restarting after factory reset After operation, generate data scrubbing and instruct and send to cloud server, asking cloud server to be deleted and The account binding relationship that the Router Distinguisher of this router is corresponding, it is ensured that the successful deletion of account binding relationship, After guaranteeing router factory reset, the information of storage and the letter of storage in cloud server in router The concordance of breath.
With reference to Fig. 2, it is shown that a kind of of the embodiment of the present invention carries out the method for data scrubbing in fact to server Execute the flow chart of steps of example two, specifically may include steps of:
Step 201, if detecting, current router starts, and starts the service routine preset;
It is applied to the embodiment of the present invention, special service routine, this service can be provided with in the router Program starts along with the startup of router.
In implementing, after this service routine completes initialization operation, router can be become Finger daemon, wherein, finger daemon namely Daemon process, be the background service process in Linux, It is life cycle of longer process, is typically independent of control terminal and periodically carries out certain Business or etc. some event pending, finger daemon usually when equipment boatload start.
Step 202, after using described service routine to judge whether described startup operation is factory reset Reboot operation;The most then perform step 203, if it is not, then perform step 208;
After service routine starts, service routine and cloud server can be used to carry out data communication, to ask Cloud server is asked to complete the operations such as the data scrubbing relevant to router.
First, service routine may determine that whether the operation that starts of router is the weight after factory reset Opening operation, wherein, factory reset refers to arrange the individual character of equipment or instrument return to dispatch from the factory silent Recognize state, when returning to dispatch from the factory such as beginning interface, standby mode, key swift to operate, timed reminding etc. Setting.
In a kind of preferred embodiment of the embodiment of the present invention, step 202 can be further:
Use described service routine to judge in the configuration file preset and whether there is token token information;If It is then to judge that described startup operates not as the reboot operation after factory reset;If it is not, then judge institute State and start operation for the reboot operation after factory reset.
It should be noted that the router in the embodiment of the present invention realizes based on OpenWrt framework, When user's login account information, router can obtain the token token information of correspondence, and is protected Exist in configuration file.If router factory reset, then can empty the token token in configuration file Information.
Therefore, it can by judging that whether there is token information in configuration file judges opening of router Whether dynamic operation is the reboot operation after factory reset, if configuration file exists token information, Then represent that configuration file is not cleared, and further illustrates router and is not carried out factory reset;No Then, if not token information in configuration file, then it represents that configuration file is cleared, further Illustrate that router performs factory reset.
Step 203, uses described service routine to generate data scrubbing instruction;
If what service routine judged current router starts operation as the reboot operation after factory reset, Now, service routine can obtain the hardware information of this router, such as Router Distinguisher etc., and foundation This Router Distinguisher generates data scrubbing instruction, and this data scrubbing instruction may be used for asking cloud server Server is deleted the data beyond the clouds relevant to this router, such as, deletes Router Distinguisher and user Login account information account binding relationship one to one.
As a kind of example, Router Distinguisher can include identifying as follows one or more of information: route SN (Serial Number, the equipment Serial Number) code of device, the key tag mac_key of router, road By device id of device etc..
Step 204, uses described service routine to send described data scrubbing instruction to cloud server;
After service routine will generate data scrubbing instruction, can to carry the data of Router Distinguisher clear by this Reason instruction sends in cloud server, operates promoting cloud server to complete as follows: prestoring Account binding relationship in search the account binding relationship corresponding with this Router Distinguisher, and right finding Delete the account binding relationship of this correspondence during the account binding relationship answered, and, generate response message and to Service routine returns this response message.
Specifically, server side beyond the clouds, it stores the hardware information of router in data base, Including Router Distinguisher etc., and preserve the account binding of this Router Distinguisher and the login account information of user Relation.After cloud server receives data scrubbing instruction, data base is mated this data scrubbing instruction Entrained Router Distinguisher, and return response message according to matching result.
Concrete, if cloud server can match this Router Distinguisher in data base, then can obtain Account binding relationship that must be corresponding with this Router Distinguisher, and delete this account binding relationship, with ensure with The concordance of route-map.After which, cloud server can generate success response information, and will This success response information returns service routine.
If cloud server does not finds this Router Distinguisher in data base, then it represents that this router mark Know and do not exist, cloud server does not i.e. exist the account binding relationship corresponding with this Router Distinguisher, Occur that this situation is likely to be due to user and is not logged on account, then in the configuration file of router the most at all Token information can be there is, so cloud server does not the most exist the account corresponding with this Router Distinguisher and ties up Determining relation, now cloud server can be with failed regeneration response message.It should be noted that owing to causing The reason of cloud server failed regeneration response message can have multiple, therefore, it can by different mistakes , i.e. in cloud server, there is not account binding relationship in the failure response information that representation causes without reason And the failure response information generated, can represent with the reflection non-existent error code of binding relationship.
In addition to the above-mentioned failure response information caused because account binding relationship does not exists, it is also possible to have it His factor causes cloud server failed regeneration response message, such as, due to network failure or data base's event The reasons such as barrier cause mating Router Distinguisher failure, and then cause deleting the failure of described account binding relationship, Now, also can failed regeneration response message.This type of is deleted the failure of account binding relationship by the embodiment of the present invention And the failure response information generated is referred to as the failure response information of preset rules.
Step 205, it may be judged whether receive the response message that cloud server returns in first time period; The most then perform step 206;If it is not, then perform step 207;
Service routine, after cloud server sends data scrubbing instruction, waits that cloud server returns always Response message, in order to avoid service routine is in the state of waiting indefinitely, the embodiment of the present invention arrange wait time Between be first time period, and judge whether service routine receives cloud server in first time period and return The response message returned.
In implementing, service routine is not received by what cloud server returned in first time period The situation of response message includes but not limited to following two situation:
The first situation is, due to network failure, or network connects the situations such as disconnection, causes servicing journey The data scrubbing instruction that sequence sends does not sends successfully in cloud server, and therefore cloud server is also Will not receive this data scrubbing instruction and make corresponding response, in this case, service routine exists It is to receive the response message that cloud server returns in first time period.
Another kind of situation is, data scrubbing instruction successfully can be sent to cloud server by service routine, Cloud server also can make corresponding process, generates response message and returns, but is returning response message During, due to network failure, or network connects the situation such as disconnection, causes the service routine can not The response message that cloud server returns is received in first time period.
Step 206: judge that whether described response message is the failure response information of preset rules;The most then Perform step 207, if it is not, perform sub-step 208;
Step 207: be spaced the second preset time period again clear to the described data of described cloud server transmission Reason instruction, returns step 205;
Step 208: exit described service routine.
If service routine can receive the response message that cloud server returns in first time period, then take Business program determines whether the type of this response message, if response message is success response information, then it represents that Cloud server deletes the success of account binding relationship, and now the task of service routine completes, and can exit this Service routine.
If response message is account binding relationship non-existent failure response information, then it represents that in cloud server There is not this account binding relationship, now the task of service routine completes, and can exit this service routine.
If the failure response information that response message is preset rules, then it represents that cloud server is due to network failure Or account binding relationship temporarily can not successfully be deleted by the reason such as database failure, now service routine needs Be spaced the second time period (such as 10 seconds) the most even repeat send data scrubbing instruct to cloud server, Until account binding relationship is deleted successfully by cloud server.
When service routine needs to exit, in implementing, in order to save router storage resource and Data processing resources, improves data-handling efficiency, and first service routine can discharge shared router money Source, gives back memory space, the most just exits service routine, and router works on.
In embodiments of the present invention, complete to recover by arranging special service routine in the router Factory arrange the judgement of reboot operation, data scrubbing instruction generation and data scrubbing instruction transmission and The receptions of response message etc. operate so that service routine can be absorbed in aforesaid operations, improve router Operating efficiency.
It addition, the embodiment of the present invention is being not received by the response message of response message or reception for presetting rule During failure response information then, service routine is used to repeat to send data scrubbing instruction, until cloud service Till described account binding relationship successfully deleted by device, it is ensured that in cloud server, account binding relationship is by success Delete, to ensure the data consistency of router and cloud server.
With reference to Fig. 3, it is shown that a kind of of the embodiment of the present invention carries out the method for data scrubbing in fact to server Execute the flow chart of steps of example three, specifically may include steps of:
Step 301, the data scrubbing instruction that cloud server receiving router sends;
Wherein, described data scrubbing instruction is the startup of the router that described router is currently up in judgement The instruction generated when operation is the reboot operation after factory reset, described data scrubbing instruction includes institute State Router Distinguisher.
Step 302, searches corresponding with described Router Distinguisher in the account binding relationship prestored Account binding relationship;
Wherein, described account binding relationship is the binding pass of Router Distinguisher and the login account information of user System.
Step 303, when finding the account binding relationship of described correspondence, deletes the account of described correspondence Binding relationship;
Step 304, generates response message, and to the described router described response message of return, wherein, Described response message includes the failure response information of preset rules;
In a kind of preferred embodiment of the embodiment of the present invention, it is also possible to comprise the steps:
If the described data scrubbing again receiving the transmission of described router in the second preset time period refers to Order, then return described step 302, and wherein, described router does not receive in the first preset time period The described response message returned to cloud server, or, the response message received is described default rule Described data scrubbing instruction is again sent during failure response information then.
In one preferred embodiment of the invention, described cloud server and the clothes of described router startup Business program carries out data communication.
In one preferred embodiment of the invention, the failure response information of described preset rules is for deleting institute The failure response information stating the failure of account binding relationship and generate.
For the embodiment of Fig. 3, due to itself and the embodiment of the method basic simlarity of Fig. 2, so retouching That states is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
With reference to Fig. 4, it is shown that a kind of device that server is carried out data scrubbing of the embodiment of the present invention The structured flowchart of embodiment, wherein, can pass through hardware processor (hardware in the embodiment of the present invention Processor) realize related function module, specifically can include such as lower module:
Directive generation module 401, for operating as recovering in the startup judging the router being currently up Factory arrange after reboot operation time, generate data scrubbing instruction, described data scrubbing instruction include router Mark;
First instruction sending module 402, for described data scrubbing instruction is sent to cloud server, Described cloud server is promoted to search in the account binding relationship prestored and described Router Distinguisher pair The account binding relationship answered, and delete described correspondence when finding the account binding relationship of described correspondence Account binding relationship, and, generate response message and return described response message to described router, its In, described account binding relationship is the binding relationship of Router Distinguisher and the login account information of user;
In one preferred embodiment of the invention, described response message includes the failure response of preset rules Information, described device can also include:
Second instruction sending module, returns for being not received by cloud server in the first preset time period The described response message returned, or, the response message received is the failure response letter of described preset rules During breath, it is spaced the second preset time period and again sends described data scrubbing instruction to described cloud server.
In one preferred embodiment of the invention, described directive generation module 401 can include following son Module:
Program promoter module, for when detecting that current router starts, starts the service journey preset Sequence;
Operation decision sub-module, whether described startup operation is recovery to be used for using described service routine to judge Reboot operation after Default Value;
Instruction generates submodule, for judging that described startup operates as restarting behaviour after factory reset When making, described service routine is used to generate data scrubbing instruction;
Program exits submodule, for judging that described startup operates not as restarting after factory reset During operation, exit described service routine.
In one preferred embodiment of the invention, described operation decision sub-module is additionally operable to:
Use described service routine to judge in the configuration file preset and whether there is token token information;
The most then judge that described startup operates not as the reboot operation after factory reset;
If it is not, then judge that described startup operates as the reboot operation after factory reset.
In one preferred embodiment of the invention, described second instruction sending module includes following submodule:
First judges submodule, is used for judging whether that receiving cloud server in first time period returns Response message;The most then call the second judgement submodule;If it is not, then call instruction sends submodule;
Second judges submodule, for judging that whether described response message is the failure response information of preset rules, The most then call instruction sends submodule, if it is not, then caller exits submodule;
Instruction sends submodule, and for interval, the second preset time period sends to described cloud server again Described data scrubbing instructs, and returns sub-step S11;
Program exits submodule, is used for exiting described service routine.
In one preferred embodiment of the invention, the failure response information of described preset rules is for deleting The failure response information generated except the failure of described account binding relationship.
For the device embodiment of Fig. 4, due to itself and said method embodiment basic simlarity, so Describe is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
With reference to Fig. 5, it is shown that the structure of the server example of a kind of data scrubbing of the embodiment of the present invention Block diagram, wherein, can pass through hardware processor (hardware processor) in the embodiment of the present invention Realize related function module, specifically can include such as lower module:
First command reception module 501, the data scrubbing instruction sent for receiving router, wherein, Described data scrubbing instruction is that described router is judging that the startup operation of the router being currently up is as recovering The instruction generated during reboot operation after Default Value, described data scrubbing instruction includes described router mark Know;
Account searches module 502, for searching and described route in the account binding relationship prestored The account binding relationship that device mark is corresponding, wherein, described account binding relationship is Router Distinguisher and user The binding relationship of login account information;
Relation removing module 503, for when finding the account binding relationship of described correspondence, deletes institute State the account binding relationship of correspondence;
Response message generation module 504, is used for generating response message, and returns to described router described Response message,
In one preferred embodiment of the invention, described response message includes the failure response of preset rules Information;Described server can also include:
Second command reception module, sends for again receiving described router in the second preset time period Described data scrubbing instruction, and call account search module, wherein, described router first preset The described response message that cloud server returns it is not received by time period, or, the response received Information is again to send described data scrubbing instruction during the failure response information of described preset rules.
In one preferred embodiment of the invention, described cloud server and the clothes of described router startup Business program carries out data communication.
In one preferred embodiment of the invention, the failure response information of described preset rules is for deleting The failure response information that described account binding relationship is failed and generates.
For the server example of Fig. 5, due to itself and said method embodiment basic simlarity, So describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (14)

1. the method that server is carried out data scrubbing, it is characterised in that including:
Judging when starting operation as reboot operation after factory reset of the router being currently up, Generation data scrubbing instructs, and described data scrubbing instruction includes Router Distinguisher;
Described data scrubbing instruction is sent to cloud server, promotes described cloud server to deposit in advance The account binding relationship of storage is searched the account binding relationship corresponding with described Router Distinguisher, and is searching The account binding relationship of described correspondence is deleted during to the account binding relationship of described correspondence, and, generate and ring Answering information and return described response message to described router, wherein, described account binding relationship is route The binding relationship of the login account information of device mark and user.
Method the most according to claim 1, it is characterised in that described response message includes presetting rule Failure response information then, described by described data scrubbing instruction send to cloud server step it After, also include: if being not received by the described response that cloud server returns in the first preset time period Information, or, the response message received is the failure response information of described preset rules, then be spaced Two preset time period send described data scrubbing instruction to described cloud server again.
Method the most according to claim 2, it is characterised in that the described road being currently up in judgement When being the reboot operation after factory reset by the startup operation of device, generate the step of data scrubbing instruction Including:
If detecting, current router starts, and starts the service routine preset;
Using described service routine to judge, whether described to start operation be to restart behaviour after factory reset Make;
Described service routine is the most then used to generate data scrubbing instruction;
If it is not, then exit described service routine.
4. want the method described in 3 according to right, it is characterised in that the described service routine of described employing judges Described start the step whether operation is reboot operation after factory reset and include:
Use described service routine to judge in the configuration file preset and whether there is token token information;
The most then judge that described startup operates not as the reboot operation after factory reset;
If it is not, then judge that described startup operates as the reboot operation after factory reset.
5. according to the method described in claim 3 or 4, it is characterised in that if described when first presets Between be not received by the described response message that cloud server returns in section, or, the response letter received Breath is the failure response information of preset rules, then be spaced the second preset time period again to described cloud service Device sends the step of described data scrubbing instruction and includes:
Sub-step S11, it may be judged whether receive the response letter that cloud server returns in first time period Breath;The most then perform sub-step S12;If it is not, then perform sub-step S13;
Sub-step S12, it is judged that whether described response message is the failure response information of preset rules, if so, Then perform sub-step S13, if it is not, then perform sub-step S14;
Sub-step S13, is spaced the second preset time period and again sends described data to described cloud server Cleaning instruction, returns sub-step S11;
Sub-step S14, exits described service routine.
6. according to the method described in claim 1 or 2 or 3 or 4, it is characterised in that described default rule Failure response information then is to delete the failure response information that the failure of described account binding relationship generates.
7. the method that server is carried out data scrubbing, it is characterised in that including:
Step S1, the data scrubbing instruction that cloud server receiving router sends, wherein, described data Cleaning instruction is that described router operates as factory reset in the startup judging the router being currently up After reboot operation time generate instruction, described data scrubbing instruction include described Router Distinguisher;
Step S2, searches the account corresponding with described Router Distinguisher in the account binding relationship prestored Number binding relationship, wherein, described account binding relationship is the login account information of Router Distinguisher and user Binding relationship;
Step S3, when finding the account binding relationship of described correspondence, the account deleting described correspondence is tied up Determine relation;
Step S4, generates response message, and returns described response message to described router.
Method the most according to claim 7, it is characterised in that described response message includes presetting rule Failure response information then, described method also includes:
Step S5, if again receive the described data that described router sends in the second preset time period Cleaning instruction, then return described step S2, and wherein, described router does not has in the first preset time period Receive the described response message that cloud server returns, or, the response message received is described pre- If during the failure response information of rule, again send described data scrubbing instruction.
9. according to the method described in claim 7 or 8, it is characterised in that described cloud server and institute The service routine stating router startup carries out data communication.
10. according to the method described in claim 7 or 8, it is characterised in that the mistake of described preset rules Losing response message is to delete the failure response information that the failure of described account binding relationship generates.
11. 1 kinds of devices that server is carried out data scrubbing, it is characterised in that including:
Directive generation module, for operating in the startup judging the router being currently up as recovering to dispatch from the factory to set During the reboot operation postponed, generating data scrubbing instruction, described data scrubbing instruction includes Router Distinguisher;
First instruction sending module, for sending described data scrubbing instruction to cloud server, promotes Described cloud server is searched corresponding with described Router Distinguisher in the account binding relationship prestored Account binding relationship, and the account of described correspondence is deleted when finding the account binding relationship of described correspondence Binding relationship, and, generate response message and to the described router described response message of return, wherein, Described account binding relationship is the binding relationship of Router Distinguisher and the login account information of user.
12. devices according to claim 11, it is characterised in that described response message includes presetting The failure response information of rule, described device also includes:
Second instruction sending module, returns for being not received by cloud server in the first preset time period The described response message returned, or, the response message received is the failure response letter of described preset rules During breath, it is spaced the second preset time period and again sends described data scrubbing instruction to described cloud server.
The server of 13. 1 kinds of data scrubbings, it is characterised in that including:
First command reception module, the data scrubbing instruction sent for receiving router, wherein, described Data scrubbing instruction is that described router operates as recovering to dispatch from the factory in the startup judging the router being currently up The instruction generated during reboot operation after arranging, described data scrubbing instruction includes described Router Distinguisher;
Account searches module, for searching and described router mark in the account binding relationship prestored Knowing corresponding account binding relationship, wherein, described account binding relationship is Router Distinguisher and the stepping on of user The binding relationship of record account information;
Relation removing module, for when finding the account binding relationship of described correspondence, it is described right to delete The account binding relationship answered;
Response message generation module, is used for generating response message, and returns described response to described router Information.
14. servers according to claim 13, it is characterised in that described response message includes pre- If the failure response information of rule, described server also includes:
Second command reception module, sends for again receiving described router in the second preset time period Described data scrubbing instruction, and call account search module, wherein, described router first preset The described response message that cloud server returns it is not received by time period, or, the response received Information is again to send described data scrubbing instruction during the failure response information of described preset rules.
CN201510472361.0A 2015-08-04 2015-08-04 Method and device for data cleaning of server and server Pending CN105975359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510472361.0A CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510472361.0A CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Publications (1)

Publication Number Publication Date
CN105975359A true CN105975359A (en) 2016-09-28

Family

ID=56988343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510472361.0A Pending CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Country Status (1)

Country Link
CN (1) CN105975359A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN112434020A (en) * 2020-11-26 2021-03-02 腾讯科技(深圳)有限公司 Database account cleaning method and device and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130232243A1 (en) * 2006-09-25 2013-09-05 Yoics, Inc. System, method and computer program product for identifying, configuring and accessing a device on a network
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment
CN103595560A (en) * 2013-11-05 2014-02-19 上海斐讯数据通信技术有限公司 Method for automatic configuration of wireless router
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
CN103944963A (en) * 2014-03-26 2014-07-23 小米科技有限责任公司 Data synchronization method, device and system and equipment
CN104023008A (en) * 2014-05-16 2014-09-03 小米科技有限责任公司 Method and device for downloading and starting tool kit
CN104427501A (en) * 2013-09-11 2015-03-18 腾讯科技(深圳)有限公司 Network access method, device and system
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device
CN104580265A (en) * 2015-02-13 2015-04-29 小米科技有限责任公司 Equipment binding method and equipment binding device
CN104639549A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Equipment binding method and equipment binding device
CN104735657A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Security terminal verification method, device and system and wireless access point binding method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130232243A1 (en) * 2006-09-25 2013-09-05 Yoics, Inc. System, method and computer program product for identifying, configuring and accessing a device on a network
CN104427501A (en) * 2013-09-11 2015-03-18 腾讯科技(深圳)有限公司 Network access method, device and system
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment
CN103595560A (en) * 2013-11-05 2014-02-19 上海斐讯数据通信技术有限公司 Method for automatic configuration of wireless router
CN104735657A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Security terminal verification method, device and system and wireless access point binding method
CN103944963A (en) * 2014-03-26 2014-07-23 小米科技有限责任公司 Data synchronization method, device and system and equipment
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
CN104023008A (en) * 2014-05-16 2014-09-03 小米科技有限责任公司 Method and device for downloading and starting tool kit
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device
CN104639549A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Equipment binding method and equipment binding device
CN104580265A (en) * 2015-02-13 2015-04-29 小米科技有限责任公司 Equipment binding method and equipment binding device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106357493B (en) * 2016-10-08 2021-08-06 Tcl科技集团股份有限公司 Method and device for binding household appliance and intelligent terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN106972932B (en) * 2017-03-03 2020-03-31 北京光年无限科技有限公司 Remote control instruction verification method and system for robot end
CN112434020A (en) * 2020-11-26 2021-03-02 腾讯科技(深圳)有限公司 Database account cleaning method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106302632B (en) Downloading method of basic mirror image and management node
US10924326B2 (en) Method and system for clustered real-time correlation of trace data fragments describing distributed transaction executions
CN106528143A (en) Configuration management method and device
CN106156939A (en) Dispatching System based on job stream and application process
CN107688489B (en) Method and system for scheduling tasks
CN110618864A (en) Interrupt task recovery method and device
CN110196749B (en) Virtual machine recovery method and device, storage medium and electronic device
CN105975359A (en) Method and device for data cleaning of server and server
CN112181677A (en) Service processing method and device, storage medium and electronic device
CN110109772B (en) CPU restarting method, communication equipment and readable storage medium
CN113626002A (en) Service execution method and device
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN106657187A (en) Message processing method and apparatus thereof
CN114386934A (en) Method and device for generating business process, server and storage medium
CN102073523A (en) Method and device for implementing software version synchronization
CN116501469A (en) Control method of high-performance computing cluster, electronic equipment and storage medium
CN116361114A (en) AI board monitoring keep-alive method, device, equipment and medium
JP2595833B2 (en) Remote maintenance device
CN108429644A (en) network device management method, device and server
CN105487847B (en) A kind of function dissemination method and equipment
CN103457771A (en) Method and device for HA virtual machine cluster management
CN109101253B (en) Management method and device for host in cloud computing system
CN106844151A (en) A kind of network task method for detecting abnormality of VxWorks system
CN114356357A (en) Mirror image file processing method and device and electronic equipment
JP2013089249A (en) Method for rfid resource management for executing failure processing, and apparatus thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928

WD01 Invention patent application deemed withdrawn after publication