CN105959147A - Command storage method, client and center server - Google Patents

Command storage method, client and center server Download PDF

Info

Publication number
CN105959147A
CN105959147A CN201610412456.8A CN201610412456A CN105959147A CN 105959147 A CN105959147 A CN 105959147A CN 201610412456 A CN201610412456 A CN 201610412456A CN 105959147 A CN105959147 A CN 105959147A
Authority
CN
China
Prior art keywords
user
operation information
client
central server
mark
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
CN201610412456.8A
Other languages
Chinese (zh)
Other versions
CN105959147B (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610412456.8A priority Critical patent/CN105959147B/en
Publication of CN105959147A publication Critical patent/CN105959147A/en
Application granted granted Critical
Publication of CN105959147B publication Critical patent/CN105959147B/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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The invention provides a command storage method, a client and a center server. The method comprises the steps of allocating respective monitoring process for each user when it is monitored that at least one user logs in a local server corresponding to the client, wherein the monitoring process is used for monitoring operation commands input by the corresponding user; sending user operation information to the center server after it is determined that any one monitoring process monitors the operation commands input by the user, wherein the user operation information comprises the operation commands input by the user, the identifier of the client and the identifier of the user; and affirming that an information response message returned by the center server is received, wherein the information response message is used for indicating that the user operation information is sent to the center server. According to the command storage method provided by the invention, the user operation information is prevented from being modified or deleted, the relatively high security is realized, and moreover, the working efficiency of a manager is improved.

Description

Order storage method, client and central server
Technical field
The present invention relates to computer realm, particularly relate to a kind of order storage method, client and center Server.
Background technology
Along with the development of computer technology, computer application field is increasingly wider, increasing data Storage in a computer, is more and more analyzed, calculates, is emulated the operating system relying on computer.With Time, computer, operating system are likely to be due to the improper operation of user or the attack of malicious user and occur asking Topic, the order that therefore record user performed is for subsequent analysis operating system problem, protection computer behaviour Make system and data safety is the most necessary.
Existing operating system such as LINUX etc., after monitoring user login operation system, hold user The order gone is saved in internal memory, monitoring the use that will preserve in internal memory when user exits operating system The order unloading at family is in storage file.But, user is to being stored in internal memory or being stored in storage file In order can be carried out the operation such as deletion, amendment.Therefore, there is peace in existing order storage method The problem that whole step is relatively low.
Summary of the invention
The present invention provides a kind of order storage method, client and central server, is used for solving existing There is the problem that degree of safety is relatively low in order storage method.
First aspect, the present invention provides a kind of order storage method, is applied to client, each client A corresponding home server, including:
When monitoring at least one user and signing in home server corresponding to described client, for each Described user distributes respective monitoring process, and described monitoring process is for monitoring the behaviour of user's input of correspondence Order;
After determining the operational order that arbitrary described monitoring process monitors user's input, to central server Sending user's operation information, described user's operation information includes operational order that described user inputs, described The mark of client and the mark of described user;
Confirming to receive the info response message that described central server returns, described info response message is used In indicating central server described in described user's operation information Delivered.
Order storage method as above, described sends user's operation information to central server, including:
The operational order of described user input is read, according to institute from the built-in storage of described home server The mark of the operational order, the mark of described client and the described user that state user's input determines described use Family operation information;Wherein, at least one during the mark basis of described client is following determines: described The ground serial number of server, the MAC Address of described home server, the IP ground of described home server Location;
Described user's operation information is encrypted, will encryption after user's operation information be sent to described in Central server.
Order storage method as above, if in preset duration, confirm not receive described in genuinely convinced The info response message that business device returns, described method also includes:
Described user operation message is encrypted, the user's operation information after being encrypted, adds described User operation message after close is stored in external memory;
When receiving arbitrary message that described central server sends, from described external memory, read institute State the user's operation information after encryption, and the user's operation information after described encryption is sent to described center Server.
Order storage method as above, described method also includes:
Heartbeat message is sent to described central server according to prefixed time interval, so that described center service Device determines that described client is connected normally with described central server;
Confirming to receive the heart beating response message that described central server returns, described heart beating response message is used In indicating central server described in described heartbeat message Delivered.
Second aspect, the present invention provides a kind of order storage method, is applied to central server, including:
Receive the user's operation information that at least one client sends, and each described user's operation information is deposited In the external memory of storage extremely described central server, each described user's operation information includes that described user inputs Operational order, the mark of client and the mark of described user;
Sending info response message to each described client, described info response message is used for indicating user to grasp Make central server described in information Delivered.
Order storage method as above, the user operation letter that at least one client of described reception sends Before breath, also include:
Judge within a preset time interval, if receive the heartbeat message that described client sends;
The most then sending heart beating response message to described client, described heart beating response message is used for indicating Central server described in heartbeat message Delivered;
Connecting abnormal warning message if it is not, then send, described connection abnormal warning message includes connecting extremely The mark of client.
Order storage method as above, the user operation letter that at least one client of described reception sends Breath, and each described user's operation information is stored in the external memory of described central server, including:
Receive the user's operation information after the encryption that at least one client sends, after each described encryption User's operation information is decrypted, the user's operation information after being deciphered;
Mark according to described user and/or the mark of described client, the operation described user inputted is ordered Order stores to the external memory of described central server.
Order storage method as above, the user operation letter that at least one client of described reception sends Breath, and after each described user's operation information is stored to the external memory of described central server, also Including:
Judge the operational order of the input of the user in each described user's operation information whether meet be stored in described Default alarm regulation in the external memory of central server;
The most then sending operational order abnormal warning message, described operational order abnormal warning message includes The user's operation information belonging to operational order in violation of rules and regulations.
The third aspect, the present invention provides a kind of client, the corresponding home server of each client, Including:
Monitoring modular, for signing in the local clothes that described client is corresponding monitoring at least one user During business device, distributing respective monitoring process for each described user, described monitoring process is used for monitoring correspondence User input operational order;
User's operation information sending module, for determining that arbitrary described monitoring process monitors user's input Operational order after, to central server send user's operation information, described user's operation information includes institute State operational order, the mark of described client and the mark of described user of user's input;
Response message confirms module, for confirming that the information response receiving the return of described central server disappears Breath, described info response message is used for indicating central server described in described user's operation information Delivered.
Fourth aspect, the present invention provides a kind of central server, including:
User's operation information receives memory module, for receiving the user operation that at least one client sends Information, and each described user's operation information is stored to the external memory of described central server, each institute State operational order, the mark of client and described user that user's operation information includes that described user inputs Mark;
Response message sending module, for sending info response message, described information to each described client Response message is used for indicating central server described in user's operation information Delivered.
Order storage method, client and the central server that the present invention provides, is examined in real time by client Survey the operational order that user inputs in home server, and the user's operation information of operational order will be comprised It is sent to central server, to avoid user's operation information to be modified or to delete, there is higher safety, Meanwhile, by being sent to central server by unified for the user's operation information at least one home server, Facilitate manager's user's operation information simultaneously to multiple servers to be managed finding in time to ask Topic, improves manager's work efficiency.
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 a kind of application scenarios schematic diagram ordering storage embodiment of the method that the present invention provides;
Fig. 2 is a kind of schematic flow sheet ordering storage embodiment of the method one that the present invention provides;
Fig. 3 is a kind of schematic flow sheet ordering storage embodiment of the method two that the present invention provides;
Fig. 4 is a kind of schematic flow sheet ordering storage embodiment of the method three that the present invention provides;
Fig. 5 is a kind of schematic flow sheet ordering storage embodiment of the method four that the present invention provides;
Fig. 6 is a kind of schematic flow sheet ordering storage embodiment of the method five that the present invention provides;
Fig. 7 is a kind of schematic flow sheet ordering storage embodiment of the method six that the present invention provides;
Fig. 8 is a kind of schematic flow sheet ordering storage embodiment of the method seven that the present invention provides;
Fig. 9 is a kind of signaling process figure ordering storage embodiment of the method that the present invention provides;
Figure 10 is the structural representation of a kind of client embodiment one that the present invention provides;
Figure 11 is the structural representation of a kind of client embodiment two that the present invention provides;
Figure 12 is the structural representation of a kind of central server embodiment that the present invention provides.
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.
Although the transmittability of processor disposal ability and network is gradually increased, but processor is actually used During need process data volume increasing substantially too, the data-handling capacity of individual server is Cannot meet the demand of big data age, the mode using multiple server process data is more and more universal. Multiple servers can disperse various location apart from each other according to demand, it is possible to is arranged at same position, For convenience of the problem in Analysis server operating system, protection operating system and data safety, need to be to login The operational order of the user of operating system carries out record.But each server records respectively and logs in each behaviour Making the operational order of the user of system, operational order record all can be modified by login user, therefore manages Reason person is only capable of, by the user operation commands record after being modified in site inspection server, checking and working as Whether the operating system of front server and data have problems, therefore existing order storage method security is low, And due to can only site inspection, efficiency is relatively low.The present invention is directed to the problems referred to above, it is provided that a kind of order is deposited Method for storing, sends unified for the operational order of the user on multiple servers to central server, by center The user operation commands record of multiple servers is stored by server, and manager is genuinely convinced in only need to logging in Business device, or keep being connected with central server, the user operation commands of Servers-all can be controlled in real time, Thus facilitate manager's management to multiple servers, improve the safety of order storage, improve Efficiency.
Fig. 1 is a kind of application scenarios schematic diagram ordering storage embodiment of the method that the present invention provides.Such as figure Shown in 1, including central server 1 and at least one home server 2.Each server is mounted on behaviour Make system and the client that operating system is monitored, a corresponding client of server.Client End can be realized by software or hardware, and this is not limited by the present invention.Central server 1 also includes External memory, for receiving the user operation letter of the operational order record comprising user that each client sends Breath, external memory can be hard disk, floppy disk, CD, moveable magnetic disc etc..Optionally, center service Device 1 is also provided with server end, corresponding with client, server end replace central server 1 carries out information alternately with client, and the server being provided with server end is central server.This The method of server centered by executive agent in bright following example, all can be replaced server end, no Repeat again.Server end can be realized by software or hardware, and this is not limited by the present invention.Each local clothes Business device 2 is all connected with central server 1, can carry out data communication.Exemplary, central server 1 It is specifically as follows the arbitrarily smart machine such as computer, mobile phone, panel computer, base station with home server 2. Manager can select arbitrary home server 2 as central server according to demand in multiple servers 1。
Following example of the present invention combine the application scenarios schematic diagram that Fig. 1 provides, and use specific embodiment pair The order storage method that the present invention provides is described in detail.
Fig. 2 is a kind of schematic flow sheet ordering storage embodiment of the method one that the present invention provides.Such as Fig. 2 Shown in, the order storage method that the present invention provides, it is applied to client, the corresponding basis of each client Ground server, the method includes:
S201, when monitoring at least one user and signing in home server corresponding to client, for often Individual user distributes respective monitoring process, and monitoring process is for monitoring the operational order of user's input of correspondence;
S202, determine arbitrary monitoring process monitor user input operational order after, to center service Device sends user's operation information, and user's operation information includes operational order, the mark of client that user inputs Know and the mark of user;
S203, confirmation receive the info response message that central server returns, and info response message is used for Instruction user's operation information Delivered central server.
Concrete, in step 201, after client can be as operating in operating system on home server The background task of platform, is always maintained at running status, automatically runs when operating system is opened and starts monitoring, When operating system is closed out of service.When client monitors is to there being user to sign in the basis that client is corresponding During ground server, distribute monitoring process for user, to monitor the operational order of user's input.Work as client When having monitored multiple user login operation system, then distribute respective monitoring process for each user.Show Example, as a example by operating system is for LINUX operating system, client can be called LINUX operation and be The system command who that system carries monitors the user signed in in LINUX operating system, and client can Calling system order strace is used as monitoring process, is monitored the operational order of user's input.Can Choosing, monitoring process can be the order that operating system carries, it is also possible to for installing in an operating system Software or hardware feature module, exemplary, when operating system is FreeBSD operating system, monitoring Process can be the watch system command in FreeBSD operating system.
When monitoring process monitor user have input operation order time, the operation that user is inputted by monitoring process Order, the information such as time of user's input operation order are stored in the built-in storage of home server.
Concrete, in step 202., due to when user's input operation order, operational order is relevant Information is stored in the built-in storage of home server, and built-in storage is facing of directly communicating with processor Time memory module, when server power-off, the loss of data in built-in storage, be stored in built-in storage Operational order record, be not only easily lost, be more not easy to manager and check, and exist taken by this locality The risk of the user's amendment logged on business device, therefore when client confirms monitoring process, to monitor user defeated During the operational order entered, client is genuinely convinced in the user's operation information that operational order is relevant being sent to immediately Business device.Wherein, user's operation information includes operational order, the mark of client and the use that user inputs The mark at family, when manager finds to exist operating system or data existing problems, can grasp according to user Make information, determine the home server gone wrong, and cause user that problem occurs and user Operational order.Exemplary, before sending user's operation information to central server, client receives Central server mark that manager presets or central server sends, each client is according to receiving Central server mark determines center service corresponding for user's operation information transmission to central server mark Device.
Optionally, on the basis of embodiment illustrated in fig. 2, Fig. 3 is that a kind of order that the present invention provides is deposited The schematic flow sheet of method for storing embodiment two, is carried out in detail user's operation information being sent to central server Describe in detail bright.As it is shown on figure 3, step 202 specifically includes:
S301, the operational order that reading user inputs from the built-in storage of home server, according to user The mark of operational order, the mark of client and the user of input determines user's operation information;
S302, user's operation information is encrypted, the user's operation information after encryption is sent to center Server.
Wherein, the mark of client determines according at least one in following: the serial number of home server, The MAC Address of home server, the IP address of home server.
Concrete, client reads the operational order of user's input from the built-in storage of home server. Exemplary, as a example by operating system is for LINUX operating system, client can call LINUX operation The system command history that system carries reads the operation life of the user's input being stored in built-in storage Order.
The mark of operational order, the mark of client and user that then client inputs according to user is true Determine user's operation information.Wherein, at least one during the mark basis of client is following determines: local clothes The business serial number of device, the media interviews of home server control (Media Access Control is called for short MAC) Address, the Internet protocol address (Internet Protocol Address is called for short IP address) of home server. Exemplary, the mark of client can also can distinguish the mark of different home server, user for other Mark can be the user name etc. of user.The mark of user may also include the group of user, the group of user Not representing the operating right of user, the operating right of user determines the operational order bag that user can perform Which includes.
Finally, user's operation information is encrypted by client, the user's operation information after encryption is sent To central server.Exemplary, client uses security socket layer HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol over Secure Socket Layer, is called for short HTTPS), user operation is believed Breath is transmitted, thus realizes encrypted transmission.When user's operation information is trapped, also cannot in intercepting and capturing side Obtain the operational order of concrete user input, more the user's operation information of encryption can not be modified and Replace, ensure that the safety that user command stores, even if user is to storage in home server The record of user operation commands is modified, and manager is also dependent on the user of storage in central server The user operation commands that operation information acquisition is real.Optionally, user's operation information also including, user steps on The record time of home server, user inputs the time etc. of each operational order.
Concrete, in step 203, client confirms to receive the information response that central server returns Message, when client often sends a user's operation information to central server, central server all returns Return an info response message, be used for indicating user's operation information Delivered central server, center service Device can be that different user's operation information sends corresponding info response message, it is possible to uses identical information Response message.The info response message that client returns by receiving central server simultaneously confirms client Connection between end and central server is normal.
The order storage method that the present invention provides, is detected user in real time defeated in home server by client The operational order entered, and the user's operation information comprising operational order is sent to central server, to keep away Exempt from user's operation information to be modified or delete, there is higher safety, meanwhile, by by least one User's operation information on home server is unified is sent to central server, facilitates manager the most right The user's operation information of multiple servers is managed pinpointing the problems in time, improves management employee Make efficiency.
Further, in conjunction with Fig. 2 or embodiment illustrated in fig. 3, Fig. 4 is a kind of order that the present invention provides The schematic flow sheet of storage embodiment of the method three, as shown in Figure 4, the order storage method that the present invention provides, Including:
S401, when monitoring at least one user and signing in home server corresponding to client, for often Individual user distributes respective monitoring process, and monitoring process is for monitoring the operational order of user's input of correspondence;
S402, determine arbitrary monitoring process monitor user input operational order after, to center service Device sends user's operation information, and user's operation information includes operational order, the mark of client that user inputs Know and the mark of user;
S403, judge in preset duration, if receive the info response message that central server returns; The most then terminate;If it is not, then perform S404;
S404, user operation message is encrypted, the user's operation information after being encrypted, will encryption After user operation message be stored in external memory;
S405, receive central server send arbitrary message time, from external memory read encryption After user's operation information, and will encryption after user's operation information be sent to central server.
Concrete, step 401, step 402 and the step 201 in embodiment illustrated in fig. 2, step 202 Identical, this is repeated no more by the present invention.
Concrete, in step 403, it is judged that in preset duration, if receive central server and return The info response message returned, the most then step 401 is to step 403 and the step in embodiment illustrated in fig. 2 Rapid 201 to step 203 is identical, and the present invention repeats no more.
If in preset duration, client does not receives the info response message that central server returns, then Illustrating that client is abnormal with the connection of central server, the user's operation information that client sends not can determine that Received by central server.Therefore, in step 404, user operation message is added by client Close, after being encrypted user's operation information, then the user's operation information after encryption is stored in external memory In device.Exemplary, can be according to Advanced Encryption Standard (Advanced Encryption Standard, abbreviation AES) user's operation information is encrypted.By by unloading after user operation message encryption in external memory In device, user operation message can be avoided to be changed by user or lose because of server power-off, simultaneously because use Family operation information is encrypted, therefore has higher safety.Optionally, external memory can be local The hard disk of server, floppy disk, CD, moveable magnetic disc etc..Optionally, external memory can also be with External memory in the standby server that home server connects.
No matter the connection between client and central server is the most abnormal, and client is still monitoring every time During the operational order that user inputs, all attempt sending user's operation information to central server, do not receiving After info response message, then unloading is in external memory so that client can with central server it Between connection normal time, automatically recover to send to central server user's operation information.
Concrete, in step 405, client when receiving arbitrary message that central server sends, Show that client recovers normal with the connection of central server, thus after reading encryption from external memory User's operation information, and the user's operation information after encryption is sent to central server.Concrete, appoint One message can be that the connection that the central server that client receives sends normally indicates message, or center The info response message corresponding with certain user operation message that server sends.By in time user being grasped It is sent to central server as information, improves safety.
Optionally, user's operation information unloading also can be taken in this locality by client when finding to connect abnormal In the external memory of business device, no longer the user's operation information of unloading is sent to central server;And will be even Connect and extremely notify manager, wait that manager carries out in-process review, to determine problem.
Further, in conjunction with any of the above-described embodiment, Fig. 5 is a kind of order storage side that the present invention provides The schematic flow sheet of method embodiment four, as it is shown in figure 5, the order storage method that the present invention provides, also wraps Include:
S501, send heartbeat message according to prefixed time interval to central server, so that central server Determine that client is connected normally with central server;
S502, confirmation receive the heart beating response message that central server returns, and heart beating response message is used for Instruction heartbeat message Delivered central server.
Concrete, in step 501, client sends the heart according to prefixed time interval to central server Hop-information, prefixed time interval can be that manager is arranged in advance, it is possible to uses central server to send Prefixed time interval.Optionally, prefixed time interval is the shortest, can be 1 second.Work as center service Device at interval of when within 1 second, i.e. receiving heartbeat message that client sends, i.e. can confirm that client with in genuinely convinced Business device connects normal, and client is always maintained at online.Exemplary, heartbeat message can comprise client The mark of end, temporal information etc..
Concrete, in step 502, client confirms to receive the heart beating response that central server returns Message, heart beating response message is used for indicating heartbeat message Delivered central server.Optionally, client is worked as When end does not receives the heart beating response message that central server returns within a preset time interval, announcement can be sent Alarm message, exemplary, can send to the terminal unit that manager held or logged in, it is also possible to logical The mode such as speaker, alarm lamp of crossing alerts to manager.
Another aspect of the present invention provides a kind of order storage method, services centered by the executive agent of the method Device, corresponding with the embodiment of the method that the executive agent shown in Fig. 2 to Fig. 5 is client, have identical Technical characteristic and technique effect.Fig. 6 is that a kind of order that the present invention provides stores embodiment of the method five Schematic flow sheet, as shown in Figure 6, the method includes:
S601, receive the user's operation information that at least one client sends, and by each user's operation information Store to the external memory of central server, each user's operation information include operational order that user inputs, The mark of client and the mark of user;
S602, to each client send info response message, info response message is used for indicating user operation Information Delivered central server.
Concrete, in step 601, central server receives the user operation letter that multiple clients send Breath, and each user's operation information is stored to the external memory of central server.Exemplary, in Before central server receives the user's operation information that multiple clients send, central server is by center service Device mark is sent to multiple client, each client identify according to the central server that receives determine by with Family operation information sends the central server to central server mark correspondence.Optionally, storage user During operation information, central server can by user's operation information according to the sequencing of the time of reception by user Operation information is stored in the external memory of central server, and optionally, external memory can be local clothes The business hard disk of device, floppy disk, CD, moveable magnetic disc etc., it is also possible to for having the data base of preset format.
Optionally, on the basis of embodiment illustrated in fig. 6, Fig. 7 is that a kind of order that the present invention provides is deposited The schematic flow sheet of method for storing embodiment six, is carried out in detail user's operation information being stored in external memory Describe in detail bright.As it is shown in fig. 7, step 601 specifically includes:
S701, receive at least one client send encryption after user's operation information, after each encryption User's operation information be decrypted, the user's operation information after being deciphered;
S702, according to the mark of user and/or the mark of client, the operational order storage that user is inputted To the external memory of central server.
Concrete, in step 701, central server receives the user behaviour after the encryption that client sends Make information, the user's operation information after each encryption is decrypted, the user's operation information after being deciphered. Exemplary, central server and client use HTTPS to be transmitted user's operation information, thus Realize encrypted transmission.
Concrete, in a step 702, owing to each user's operation information after deciphering includes what user inputted Operational order, the mark of client and the mark of user, therefore, can be according to the mark of user and/or visitor The mark of family end, stores the operational order that user inputs to the external memory of central server.
Exemplary, it is as a example by LINUX operating system by the operating system that client is corresponding, center service Four user's operation information that device receives client transmission are as follows,
message1{rm client1user1};
message2{ls client1user1};
message3{rm client2user2};
message4{cp client1user3};
Central server, can root when the mark of the mark according to user and/or client stores operational order According to the mark of user, the difference of the mark of client, the operational order that user inputs is stored in different In file, such as, the file checked in catalogue in the deletion in message1 (rm) and message2 (ls) the most identical due to the mark of the mark of user, client, then it is stored in same file file1, Rm in message3 is stored in file f ile2, and the duplication (cp) in message4 is then stored in literary composition In part file3, simultaneously because message4 Yu message1 and message2 is all from same client, During then file1 and file3 is storable in same catalogue;When central server receives new user operation letter During breath message5{find client2user2}, due to the mark of the user in message5, client Identify all identical with the mark of the mark of the user in message3, client, therefore by message5 Lookup (find) be stored in file f ile2.
Concrete, in step 602, central server is after receiving user's operation information, to transmission The client of user's operation information sends info response message, genuinely convinced in instruction user's operation information Delivered Business device.Optionally, central server can generate not for each client according to the difference of user's operation information Same info response message.
The order storage method that the present invention provides, by receiving the user's operation information that client sends, will User's operation information is stored in external memory, and sends info response message to client, to avoid using Family operation information is modified in client or deletes, and has higher safety, meanwhile, many by receiving The user's operation information that individual client sends, carries out unifying storage, facilitates manager simultaneously to multiple The user's operation information of ground server is managed pinpointing the problems in time, improves manager's work Efficiency.
In conjunction with Fig. 6 or embodiment illustrated in fig. 7, Fig. 8 is that a kind of order storage method that the present invention provides is real Execute the schematic flow sheet of example seven, as shown in Figure 8, before step 601, also include:
S801, judgement are within a preset time interval, if receive the heartbeat message that client sends;If It is then to perform S802;If it is not, then perform S803;
S802, to client send heart beating response message, heart beating response message is used for indicating heartbeat message Send to central server;
S803, transmission connect abnormal warning message, connect abnormal warning message and include connecting abnormal client The mark of end.
Concrete, central server judges within a preset time interval, if receive what client sent Heartbeat message, prefixed time interval can be by Administrator.Optionally, prefixed time interval is the most relatively Short, can be 1 second.When central server i.e. received, at interval of 1 second, the heartbeat message that client sends Time, i.e. can confirm that client is connected normally with central server, client is always maintained at online.Exemplary , heartbeat message can comprise the mark of client, temporal information etc..
When receiving the heartbeat message that client sends, central server performs step 802, to client End sends heart beating response message, and heart beating response message is used for indicating heartbeat message Delivered central server.
When not receiving the heartbeat message that client sends, central server performs step 803, sends Connect abnormal warning message, connect abnormal warning message and include connecting the mark of abnormal client.Optional , exemplary, alarm information can be sent to the terminal unit that manager is held, it is possible to management The terminal unit logged in described in the communications account of member sends alarm information.Optionally, it is also possible to by raising one's voice The mode such as device, alarm lamp alerts to manager.Terminal unit can be server or the hands of manager's login The portable equipment such as machine, panel computer.Communications account can be mailbox, cell-phone number, chat account etc..Can Choosing, connect abnormality warnings message and include the information such as the mark of client, time, in order to facilitate manager Confirm rapidly occur connecting abnormal home server.
Optionally, on the basis of any of the above-described embodiment, the user behaviour that central server will receive After information stores to external memory, also include:
Judge whether the operational order of the input of the user in each user's operation information meets and be stored in center service Default alarm regulation in the external memory of device;
The most then sending operational order abnormal warning message, operational order abnormal warning message includes in violation of rules and regulations The user's operation information belonging to operational order.
Concrete, central server determines the operation of the user's input in each user's operation information received Whether order meets default alarm regulation, exemplary, is provided with auditing module in central server, uses With when receiving the user's operation information that client sends, immediately the operational order of user's input is carried out Examination & verification, to have found that it is likely that the violation operation of existence in time.Optionally, central server prestores management The default alarm regulation that member is arranged, presets alarm regulation according to the home server corresponding to client, use The mark at family, operational order, time etc. are arranged, and default alarm regulation can be specially common violation behaviour Make, when operational order is consistent with default alarm regulation, it is believed that be violation operation.
When the operational order of user's input meets default alarm regulation, central server sends operational order Abnormal warning message, exemplary, alarm information can be sent to the terminal unit that manager is held, Also alarm information can be sent to the terminal unit logged in described in the communications account of manager.Optionally, also may be used To be alerted to manager by the mode such as speaker, alarm lamp.Terminal unit can be that manager logs in Server or the portable equipment such as mobile phone, panel computer.Communications account can be mailbox, cell-phone number, chat Account etc..Operational order abnormal warning message includes the user's operation information belonging to operational order in violation of rules and regulations, Home server corresponding to the client of violation operation, user occur in order to facilitate manager quickly to confirm Etc. information.
Use specific embodiment below, as a example by a client, the order storage that the present invention provides is described Method.Multiple clients are similar with the situation of a client with the order storage method of center service, this Invention repeats no more.
Fig. 9 is a kind of signaling process figure ordering storage embodiment of the method that the present invention provides, such as Fig. 9 institute Show, including:
S901, configuration Back ground Information;
Concrete, server configures Back ground Information centered by manager, Back ground Information includes presetting alarm rule Then, the prefixed time interval etc. of heartbeat message.
S902, transmission prefixed time interval;
Concrete, central server is to the prefixed time interval of client transmission heartbeat message, optionally, Also include that central server identifies.
S903, transmission heartbeat message;
Concrete, client sends heartbeat message, step 903 according to prefixed time interval to central server Can perform repeatedly in once-through operation order storing process.
S904, return heart beating response message;
Concrete, central server judges whether to receive the heart that client sends within a preset time interval Hop-information, the most then perform S904, returns heart beating response message to client;If it is not, the then company of transmission Connecing abnormal warning message, operational order storing process terminates, and needs to wait for manager and confirms problem, to recover Connect.
S905, the operational order of monitoring user's input;
Concrete, client monitors logs on the user in home server, and monitors the behaviour of user's input Order.
S906, transmission user's operation information;
Exemplary, client, after having monitored user's input operation order, will be stored in built-in storage In operational order, client identification, ID encrypted transmission is to central server.
S907, return information response message;
Concrete, central server is after receiving the user's operation information that client sends, to client Return information response message, in order to indicate user's operation information to send successfully.Exemplary, client Confirming that the connection between client and central server is normal by info response message, central server leads to Cross heartbeat message and confirm that the connection between client and central server is normal.
S908, examination & verification user's operation information;
Concrete, that the user of depositor is inputted by central server according to the default alarm regulation of configuration operation Order is audited, if not finding violation operation, then this operational order storing process terminates;If finding Violation operation, then send operational order abnormal warning message, to remind manager to check.
The present invention also provides for a kind of client and central server, respectively in order to perform in above-described embodiment Order storage method, has identical technical characteristic and technique effect, and this is repeated no more by the present invention.
Another aspect of the present invention provides a kind of client, the corresponding home server of each client, figure 10 is the structural representation of a kind of client embodiment one that the present invention provides, as shown in Figure 10, and including:
Monitoring modular 1001, for signing in the local clothes that client is corresponding monitoring at least one user During business device, distributing respective monitoring process for each user, monitoring process is defeated for the user monitoring correspondence The operational order entered;
User's operation information sending module 1002, for determining that arbitrary monitoring process monitors user's input Operational order after, to central server send user's operation information, user's operation information includes that user is defeated The mark of the operational order, the mark of client and the user that enter;
Response message confirms module 1003, for confirming that the information response receiving central server return disappears Breath, info response message is used for indicating user's operation information Delivered central server.
Optionally, in conjunction with above-described embodiment, user's operation information sending module 1002, including:
User's operation information acquiring unit, for reading user's input from the built-in storage of home server Operational order, determine according to the mark of operational order, the mark of client and user of user's input User's operation information;Wherein, at least one during the mark basis of client is following determines: local service The serial number of device, the MAC Address of home server, the IP address of home server;
User's operation information encryption transmitting element, for being encrypted user's operation information, after encrypting User's operation information be sent to central server.
Optionally, on the basis of any of the above-described embodiment, Figure 11 is a kind of client that the present invention provides The structural representation of embodiment two, as shown in figure 11, including:
Monitoring modular 1101, for signing in the local clothes that client is corresponding monitoring at least one user During business device, distributing respective monitoring process for each user, monitoring process is defeated for the user monitoring correspondence The operational order entered;
User's operation information sending module 1102, for determining that arbitrary monitoring process monitors user's input Operational order after, to central server send user's operation information, user's operation information includes that user is defeated The mark of the operational order, the mark of client and the user that enter;
Response message judge module 1103, for judging whether that the information receiving central server return is rung Message, info response message is answered to be used for indicating user's operation information Delivered central server;
Response message memory module 1104, if being used in preset duration, response message judge module 1103 Confirm not receive the info response message that central server returns, then user operation message be encrypted, User's operation information after being encrypted, is stored in the user operation message after encryption in external memory;
User's operation information sending module 1102, is additionally operable in arbitrary the disappearing receiving central server transmission During breath, from external memory, read the user's operation information after encryption, and by the user operation letter after encryption Breath is sent to central server.
Optionally, on the basis of above-described embodiment, client also includes:
Heartbeat message sending module, for sending heartbeat message according to prefixed time interval to central server, So that central server determines that client is connected normally with central server;
Response message confirms that module 1003 is additionally operable to, and confirms to receive the heart beating response that central server returns Message, heart beating response message is used for indicating heartbeat message Delivered central server.
Another aspect of the present invention provides a kind of central server, and Figure 12 is genuinely convinced in the one that the present invention provides The structural representation of business device embodiment, as shown in figure 12, including:
User's operation information receives memory module 1201, for receiving the user that at least one client sends Operation information, and each user's operation information is stored to the external memory of central server, each user grasps Operational order, the mark of client and the mark of user that user inputs is included as information;
Response message sending module 1202, for sending info response message, information response to each client Message is used for indicating user's operation information Delivered central server.
Optionally, on the basis of above-described embodiment, central server also includes:
Heartbeat message judge module, for judging within a preset time interval, if receive client and send out The heartbeat message sent;
Alarm information sending module, for when not receiving the heartbeat message that client sends, transmission is even Connect abnormal warning message, connect abnormal warning message and include connecting the mark of abnormal client;
Response message sending module is additionally operable to, when receiving the heartbeat message that client sends, to client End sends heart beating response message, and heart beating response message is used for indicating heartbeat message Delivered central server.
Optionally, on the basis of above-described embodiment, user's operation information receives memory module 1201 and wraps Include:
Decryption unit, the user's operation information after receiving the encryption that at least one client sends is right User's operation information after each encryption is decrypted, the user's operation information after being deciphered;
Memory element, for the mark according to user and/or the mark of client, operation user inputted Order stores to the external memory of central server.
Optionally, on the basis of above-described embodiment, central server also includes:
User's operation information judge module, for judging the operation of the user's input in each user's operation information Whether order meets the default alarm regulation in the external memory being stored in central server;
Alarm information sending module is additionally operable to, when the operational order of user's input meets default alarm regulation, Sending operational order abnormal warning message, operational order abnormal warning message includes operational order institute in violation of rules and regulations The user's operation information belonged to.
Optionally, the user's operation information judge module in above-described embodiment, may be provided at central server In, it is possible to outside centrally disposed server, connected by network.When using server end and client During same communication, user's operation information judge module and server end are two on centrally disposed server Individual disparate modules.
In several embodiments provided herein, it should be understood that disclosed system, device and Method, can realize by another way.Such as, device embodiment described above is only shown Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another System, or some features can ignore, or do not perform.Another point, shown or discussed each other Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one In individual unit.
If described function realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, the present invention's Part or the part of this technical scheme that prior art is contributed by technical scheme the most in other words can Embodying with the form with software product, this computer software product is stored in a storage medium, Including some instructions with so that computer equipment (can be personal computer, server, or The network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And it is aforesaid Storage medium includes: (Read-Only Memory is called for short for USB flash disk, portable hard drive, read only memory ROM), random access memory (Random Access Memory is called for short RAM), magnetic disc or light The various medium that can store program code such as dish.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be repaiied by it Change, or the most some or all of technical characteristic is carried out equivalent;And these are revised or replace Change, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. an order storage method, it is characterised in that be applied to client, each client correspondence one Individual home server, including:
When monitoring at least one user and signing in home server corresponding to described client, for each Described user distributes respective monitoring process, and described monitoring process is for monitoring the behaviour of user's input of correspondence Order;
After determining the operational order that arbitrary described monitoring process monitors user's input, to central server Sending user's operation information, described user's operation information includes operational order that described user inputs, described The mark of client and the mark of described user;
Confirming to receive the info response message that described central server returns, described info response message is used In indicating central server described in described user's operation information Delivered.
Method the most according to claim 1, it is characterised in that described transmission to central server is used Family operation information, including:
The operational order of described user input is read, according to institute from the built-in storage of described home server The mark of the operational order, the mark of described client and the described user that state user's input determines described use Family operation information;Wherein, at least one during the mark basis of described client is following determines: described The ground serial number of server, the MAC Address of described home server, the IP ground of described home server Location;
Described user's operation information is encrypted, will encryption after user's operation information be sent to described in Central server.
Method the most according to claim 1 and 2, it is characterised in that if in preset duration, really Recognizing and do not receive the info response message that described central server returns, described method also includes:
Described user operation message is encrypted, the user's operation information after being encrypted, adds described User operation message after close is stored in external memory;
When receiving arbitrary message that described central server sends, from described external memory, read institute State the user's operation information after encryption, and the user's operation information after described encryption is sent to described center Server.
Method the most according to claim 1 and 2, it is characterised in that described method also includes:
Heartbeat message is sent to described central server according to prefixed time interval, so that described center service Device determines that described client is connected normally with described central server;
Confirming to receive the heart beating response message that described central server returns, described heart beating response message is used In indicating central server described in described heartbeat message Delivered.
5. an order storage method, it is characterised in that be applied to central server, including:
Receive the user's operation information that at least one client sends, and each described user's operation information is deposited In the external memory of storage extremely described central server, each described user's operation information includes that described user inputs Operational order, the mark of client and the mark of described user;
Sending info response message to each described client, described info response message is used for indicating user to grasp Make central server described in information Delivered.
Method the most according to claim 5, it is characterised in that at least one client of described reception Before the user's operation information that end sends, also include:
Judge within a preset time interval, if receive the heartbeat message that described client sends;
The most then sending heart beating response message to described client, described heart beating response message is used for indicating Central server described in heartbeat message Delivered;
Connecting abnormal warning message if it is not, then send, described connection abnormal warning message includes connecting extremely The mark of client.
7. according to the method described in claim 5 or 6, it is characterised in that at least one visitor of described reception The user's operation information that family end sends, and each described user's operation information is stored in described central server External memory in, including:
Receive the user's operation information after the encryption that at least one client sends, after each described encryption User's operation information is decrypted, the user's operation information after being deciphered;
Mark according to described user and/or the mark of described client, the operation described user inputted is ordered Order stores to the external memory of described central server.
8. according to the method described in claim 5 or 6, it is characterised in that at least one visitor of described reception The user's operation information that family end sends, and each described user's operation information is stored to described central server External memory in after, also include:
Judge the operational order of the input of the user in each described user's operation information whether meet be stored in described Default alarm regulation in the external memory of central server;
The most then sending operational order abnormal warning message, described operational order abnormal warning message includes The user's operation information belonging to operational order in violation of rules and regulations.
9. a client, it is characterised in that the corresponding home server of each client, including:
Monitoring modular, for signing in the local clothes that described client is corresponding monitoring at least one user During business device, distributing respective monitoring process for each described user, described monitoring process is used for monitoring correspondence User input operational order;
User's operation information sending module, for determining that arbitrary described monitoring process monitors user's input Operational order after, to central server send user's operation information, described user's operation information includes institute State operational order, the mark of described client and the mark of described user of user's input;
Response message confirms module, for confirming that the information response receiving the return of described central server disappears Breath, described info response message is used for indicating central server described in described user's operation information Delivered.
10. a central server, it is characterised in that including:
User's operation information receives memory module, for receiving the user operation that at least one client sends Information, and each described user's operation information is stored to the external memory of described central server, each institute State operational order, the mark of client and described user that user's operation information includes that described user inputs Mark;
Response message sending module, for sending info response message, described information to each described client Response message is used for indicating central server described in user's operation information Delivered.
CN201610412456.8A 2016-06-13 2016-06-13 Command storage method, client and central server Active CN105959147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610412456.8A CN105959147B (en) 2016-06-13 2016-06-13 Command storage method, client and central server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610412456.8A CN105959147B (en) 2016-06-13 2016-06-13 Command storage method, client and central server

Publications (2)

Publication Number Publication Date
CN105959147A true CN105959147A (en) 2016-09-21
CN105959147B CN105959147B (en) 2019-12-24

Family

ID=56909054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610412456.8A Active CN105959147B (en) 2016-06-13 2016-06-13 Command storage method, client and central server

Country Status (1)

Country Link
CN (1) CN105959147B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730221A (en) * 2017-11-30 2018-02-23 上海宝冶集团有限公司 A kind of information of building project coupling management method based on information exchange platform
CN112044057A (en) * 2020-09-17 2020-12-08 网易(杭州)网络有限公司 Game state monitoring method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639866A (en) * 2008-07-31 2010-02-03 株式会社理光 Operations information management system
CN102170494A (en) * 2011-03-30 2011-08-31 深圳市五巨科技有限公司 Method and system for recording operation process of mobile terminal as well as mobile terminal
CN103188092A (en) * 2011-12-28 2013-07-03 中国移动通信集团北京有限公司 Remote equipment control method, remote equipment control device and control server
CN103631673A (en) * 2012-08-22 2014-03-12 鸿富锦精密工业(深圳)有限公司 Electronic equipment and user operation information backup method
CN104793836A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Information processing method and device based on user operations and terminal
CN104809057A (en) * 2014-01-29 2015-07-29 株式会社Sji Application test system, application test method and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639866A (en) * 2008-07-31 2010-02-03 株式会社理光 Operations information management system
CN102170494A (en) * 2011-03-30 2011-08-31 深圳市五巨科技有限公司 Method and system for recording operation process of mobile terminal as well as mobile terminal
CN103188092A (en) * 2011-12-28 2013-07-03 中国移动通信集团北京有限公司 Remote equipment control method, remote equipment control device and control server
CN103631673A (en) * 2012-08-22 2014-03-12 鸿富锦精密工业(深圳)有限公司 Electronic equipment and user operation information backup method
CN104793836A (en) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 Information processing method and device based on user operations and terminal
CN104809057A (en) * 2014-01-29 2015-07-29 株式会社Sji Application test system, application test method and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730221A (en) * 2017-11-30 2018-02-23 上海宝冶集团有限公司 A kind of information of building project coupling management method based on information exchange platform
CN112044057A (en) * 2020-09-17 2020-12-08 网易(杭州)网络有限公司 Game state monitoring method and device

Also Published As

Publication number Publication date
CN105959147B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN104980298B (en) A kind of abnormal prompt method, apparatus and system
US8826402B2 (en) Management of an instant message session
CN103905399B (en) A kind of method and apparatus that account number logs in management
CN106897193A (en) A kind of monitoring and operation managing system of the cloud data center based on ITIL
CN104539604B (en) Website protection method and device
TW200915063A (en) Remote health monitoring and control
CN107786551B (en) Method for accessing intranet server and device for controlling access to intranet server
CN107196917A (en) A kind of service response method and its middleware
CN112615858B (en) Internet of things equipment monitoring method, device and system
CN110430167A (en) Management method, electronic equipment, management terminal and the storage medium of holding account
CN105743868B (en) A kind of data collection system and method for supporting encryption and non-encrypted agreement
CN107707529A (en) A kind of client validation method for realizing limitation identifying code transmission times
CN105245336B (en) A kind of file encryption management system
CN105959147A (en) Command storage method, client and center server
US9025746B2 (en) System and method for visual caller identification
CN104539449B (en) A kind of failure information processing method and relevant apparatus
CN109600395A (en) A kind of device and implementation method of terminal network access control system
CN110086719B (en) Data processing method and device and server
KR101506223B1 (en) Automatic Reconnection System For Virtualization Service
CN116389544A (en) Remote debugging method, device and system for equipment
CN103139056A (en) Secure gateway and network data interactive method
CN103701595B (en) System, method and apparatus for login authentication
CN114006984A (en) Recipient privacy protection method and device, computer equipment and storage medium
CN104540183A (en) Control method and control device for wireless hotspots
CN107276874A (en) Network connection method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant