CN107733697A - A kind of log collection method and system and router - Google Patents

A kind of log collection method and system and router Download PDF

Info

Publication number
CN107733697A
CN107733697A CN201710895151.1A CN201710895151A CN107733697A CN 107733697 A CN107733697 A CN 107733697A CN 201710895151 A CN201710895151 A CN 201710895151A CN 107733697 A CN107733697 A CN 107733697A
Authority
CN
China
Prior art keywords
terminal device
address
router
udp messages
log
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
CN201710895151.1A
Other languages
Chinese (zh)
Other versions
CN107733697B (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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201710895151.1A priority Critical patent/CN107733697B/en
Publication of CN107733697A publication Critical patent/CN107733697A/en
Application granted granted Critical
Publication of CN107733697B publication Critical patent/CN107733697B/en
Expired - Fee Related 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/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/663Transport layer addresses, e.g. aspects of transmission control protocol [TCP] or user datagram protocol [UDP] ports

Abstract

The invention discloses a kind of log collection method, and the IP address table of terminal device in LAN is obtained by router, and selects an IP address from the IP address table, and the first UDP messages of the first preset format are generated according to the IP address of selection(User Datagram Protocol, UDP)And send to terminal device corresponding to the IP address, if the 2nd UDP messages for meeting the second preset format that the terminal device is sent are received in the first preset time, then router sends log information to the terminal device, realizes the automatic log information for obtaining router.

Description

A kind of log collection method and system and router
Technical field
The invention belongs to areas of information technology, more particularly to log collection method and system and router.
Background technology
Daily record is used for storing the details with recording equipment running situation and user's service condition, and these information are Check equipment running status and investigate the Main Basiss of problem.All kinds of problems occur in equipment unavoidably in the process of running, then Corresponding record can be found from system program event log, so as to help person skilled to analyze and solve problem.
Various problems occur in router in the process of running.It is most of to be all in these problems that router occurs As caused by system software program, it is also possible to be caused by the network environment residing for router, therefore solve these and ask Topic, a preferable method is that the technical staff of router device business checks device log on the spot, is pointedly solved, but The human cost of technical support personnel is very high, therefore device log is exported and is sent to router device business by general use, By giving targetedly solve opinion after router device business's problem analysis, can so solve much to ask to a certain extent Topic, and human cost is minimized.
Router of the prior art also has daily record look facility, is than more typical technical scheme:Directly in router Its log recording is shown in equipment;By specifying daily record to receive address on the administration page of router device, day is sent in real time Will information.But some shortcomings be present in these schemes, such as:The log information amount that the administration page of router device can be shown Few, daily record will soon be covered by new daily record earlier, and also be unfavorable for the filtering of log information on administration page;When During router exception, it is possible to which its administration page all cannot be introduced into, and also just have no idea to set the reception address of log information;Often Secondary modification IP address, it is required in administration page manual configuration IP address;Router can only send in real time caused by daily record, and nothing Method exports former log information.
Therefore, how to solve above-mentioned technical problem, the automatic log information for obtaining router, turn into urgently to be resolved hurrily and ask Topic.
The content of the invention
In consideration of it, it is an object of the invention to provide a kind of log collection method and system and router, to provide more Easily and automatically obtain log information.
According to foregoing invention purpose, the present invention provides a kind of log collection method, the described method comprises the following steps:
S1, router select an IP address from the terminal device IP address list in LAN, are given birth to according to the IP address of selection Into the first UDP messages of the first preset format, and send to terminal device corresponding to the IP address;
If the of what S2, the router obtained that the terminal device sends in the first preset time meet the second preset format Two UDP messages, then the router send log information to the terminal device;
S3, otherwise, the router selects another IP address, and re-executes step S1 and S2.
Preferably, methods described also includes:
If all IP address in the complete IP address list of router poll, without acquisition second preset format The 2nd UDP messages, then after the second preset time, perform step S1-S3.
Preferably, step S1 is specifically included:
After the router startup operation, log information is generated, and export the log information into journal file;
The router is according to the terminal device IP address list obtained in address analysis protocol table in LAN;
An IP address is selected from the IP address list, the first UDP of the first preset format is generated according to the IP address of selection Message, and transmission to terminal device corresponding to the IP address, the first UDP messages includes a log request information.
Preferably, include before step S2:
After the terminal device obtains the first UDP messages, judge whether the log services of the terminal device are run;
If operation, the terminal device parses the first UDP messages, and judges whether the first UDP messages include institute State log request information;
If so, then generate the 2nd UDP messages of the second preset format and send to the router, the 2nd UDP message bags Include a daily record confirmation.
Preferably, the step S2 is specifically included:
If the router obtains and parsed the 2nd UDP messages that the terminal device is sent in first preset time, And judge whether the 2nd UDP messages include the daily record confirmation;
If so, then according to the source IP address of the 2nd UDP messages, log information in the journal file is sent to the end End equipment.
Preferably, the step S2 specifically also includes:
The router persistently sends log information to the terminal device;
After the terminal device often obtains a log information, then a response message is sent to the router;
If after the log information that the router is sent is more than a predetermined number, it is not received by times that the terminal device is sent What response message, then stop sending log information, perform step S3.
According to foregoing invention purpose, the present invention provides a kind of router, including:
Generation module, for selecting an IP address from the terminal device IP address list in LAN, according to the IP of selection Location generates the first UDP messages of the first preset format, and sends to terminal device corresponding to the IP address;
Responder module, if obtaining the terminal device is sent meet the second preset format second in the first preset time UDP messages, then log information is sent to the terminal device.
Preferably, the generation module specifically includes:
Memory cell, the log information for generation are stored into journal file;
Selecting unit, for according to the terminal device IP address list obtained in address analysis protocol table in LAN, and from institute State and an IP address is selected in IP address list;
Generation unit, for generating the first UDP messages of the first preset format according to the IP address of selection and sending to the IP Terminal device corresponding to address, the first UDP messages include log request information.
Preferably, the responder module specifically includes:
Setting unit, for setting the first preset time;
Judging unit, the 2nd UDP messages sent for obtaining the terminal device in first preset time, and judge Whether the 2nd UDP messages include a daily record confirmation;
Log information output unit, for after the judging unit judges that the 2nd UDP messages include daily record confirmation, Log information in the journal file is sent to the terminal device.
According to foregoing invention purpose, present invention also offers a kind of Log Collect System, the system includes:
Router, for selecting an IP address from the terminal device IP address list in LAN, according to the IP address of selection The first UDP messages of the first preset format are generated, and are sent to terminal device corresponding to the IP address;
Terminal device, after obtaining the first UDP messages, judge whether the log services of the terminal device are run, if Operation, then judge whether the message format of the first UDP messages meets the first preset format, if meeting, generation second is pre- If the 2nd UDP messages of form are simultaneously sent to router;
The router, if being additionally operable to obtain in the first preset time, the terminal device sends meets the second preset format The 2nd UDP messages, then send log information to the terminal device.
Compared with prior art, log collection method provided by the invention and system and router, have below beneficial to effect Fruit:Terminal device in router active detecting LAN whether running log service, if operation, send log information to should Terminal device, it is not necessary to be manually entered the address of running log service equipment, all operations are actively completed by router, the party Case is simple and intelligent;Even if exception occurs in the administration page of router device, the daily record of router transmission can also be received Information;Log information is stored on the terminal device of running log service, can so get the history log of router Information;Great convenience is brought to user, the maintenance to system brings many facilities.
Brief description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of log collection method and System and above-mentioned characteristic, technical characteristic, advantage and its implementation of router are further described.
Fig. 1 is a kind of schematic flow sheet of log collection method of the present invention;
Fig. 2 is the interface schematic diagram of the logging tools of a specific embodiment of the invention;
Fig. 3 is a kind of composition structural representation of router of the present invention;
Fig. 4 is a kind of composition structural representation of Log Collect System of the present invention.
Embodiment
As being referred in background technology, how to solve the problems of the prior art, the automatic daily record letter for obtaining router Breath, is question of common concern.
Therefore, the present invention obtains the IP address table of terminal device in LAN by router, and from the IP address table One IP address of middle selection, the first UDP messages of the first preset format are generated according to the IP address of selection(User Datagram Protocol, UDP)And send to terminal device corresponding to the IP address, if being inscribed in the first preset time The 2nd UDP messages for meeting the second preset format that the terminal device is sent are received, then router sends log information to institute Terminal device is stated, realizes the automatic log information for obtaining router.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented " only this ", the situation of " more than one " can also be represented.
As shown in figure 1, according to one embodiment of present invention, a kind of log collection method, methods described includes following step Suddenly:
S1, router select an IP address from the terminal device IP address list in LAN, are given birth to according to the IP address of selection Into the first UDP messages of the first preset format, and send to terminal device corresponding to the IP address;
If S2, router obtain meet the second preset format second that the terminal device is sent in the first preset time UDP messages, then router send log information to the terminal device;
S3, otherwise, the router selects another IP address, and re-executes step S1 and S2.
Preferably, step S1 is specifically included:
After router startup operation, log information is generated, and export the log information into journal file;
Router is according to the terminal device IP address list obtained in address analysis protocol table in LAN;
An IP address is selected from the IP address list, the first UDP of the first preset format is generated according to the IP address of selection Message, and transmission to terminal device corresponding to the IP address, the first UDP messages includes a log request information.
In specific implementation process, after router startup operation, each functional module of router brings into operation, and produces Various log informations, such as, the running state information of router device, operation instruction information and abnormal information etc..Router The log information of generation is exported into journal file.Router obtains address analysis protocol table, obtain in a local network IP address list corresponding to terminal device.IP address is obtained from address analysis protocol table, it is ensured that the IP address pair got The terminal device answered is all in the LAN, it is not necessary to which terminal device, which is accessed in the LAN, can also get IP address. Router selects an IP address from the IP address list, and the first of the first preset format is generated according to the IP address of selection UDP messages, and send to terminal device corresponding to the IP address.
The specific embodiment of the present invention.UDP is that (Open System Interconnect, open system are mutual by OSI Connection) it is a kind of towards disconnected transport layer protocol in reference model, the simple information provided towards affairs transmits service.First In the message header field of UDP messages, destination slogan is set according to the IP address of selection, purpose IP address is for selected IP Location, include a log request information in the data field of the first UDP messages, generate the first UDP messages, and by the first UDP Message is sent to terminal device corresponding to the IP address.The log request information is used to ask output journal information to the end End equipment.
Preferably, include before step S2:
After the terminal device obtains the first UDP messages, judge whether the log services of the terminal device are run;
If operation, terminal device parses the first UDP messages, and judges whether the first UDP messages include the day Will solicited message;
If so, then generate the 2nd UDP messages of the second preset format and send to the router, the 2nd UDP message bags Include a daily record confirmation.
After the terminal device receives the first UDP messages, whether the log services of the end equipment in itself are judged Operation.If the log services of terminal device have been run, the first UDP messages received are parsed, obtain described first Source IP address in UDP messages, and judge whether include the log request information in the first UDP messages.If including institute Log request information is stated, then generates the 2nd UDP messages of the second preset format to router.In the heading of the 2nd UDP messages In domain, using the source IP address in the first UDP messages of acquisition as purpose IP address, and according to the purpose IP address simultaneously Destination slogan corresponding to setting, include a daily record confirmation, generation the 2nd UDP reports in the data field of the 2nd UDP messages Text, and the 2nd UDP messages are sent to router.The daily record confirmation is used for the daily record for confirming the terminal device Service has already turned on, and the first UDP messages meet the first default form, and the terminal device can receive daily record letter Breath.
Preferably, the step S2 is specifically included:
If the router obtains and parsed the 2nd UDP messages that the terminal device is sent in first preset time, And judge whether the 2nd UDP messages include the daily record confirmation;
If so, then according to the source IP address of the 2nd UDP messages, log information in the journal file is sent to the end End equipment.
In specific implementation process, the first preset time is set in router.If the router is default described first In time, the 2nd UDP messages that the terminal device is sent are received.According to the source IP address in the 2nd UDP messages, sentence Whether the source IP address that breaks is the IP address selected from the IP address list, if so, then judging the 2nd UDP messages The 2nd UDP messages sent for the terminal device.Router carries out packet parsing to the 2nd UDP messages, and judges institute Whether state in the 2nd UDP messages includes the daily record confirmation, if including, illustrate that terminal device has run log services, And the first UDP authentication of message sent to router is by the way that router obtains log information from the journal file, concurrently Log information is sent to the terminal device.
If the router in first preset time, is not received by the 2nd UDP messages of the second preset format, Then illustrate that terminal device corresponding to the IP address selected by router does not have running log service, then router is from the IP address An IP address is reselected in table, re-executes above method step.
The specific embodiment of the present invention, if all IP address in the complete IP address list of router poll, do not have There are the 2nd UDP messages for obtaining second preset format, then after the second preset time, router re-executes the above method Step, the IP address in the IP address list is selected, start to send the first UDP messages to terminal corresponding to the IP address Equipment.
Preferably, the step S2 specifically also includes:
The router persistently sends log information to the terminal device;
After the terminal device often obtains a log information, then a response message is sent to the router;
If after the log information that the router is sent is more than a predetermined number, it is not received by times that the terminal device is sent What response message, then stop sending log information, perform step S3.
Router constantly sends log information to terminal device, after terminal device often receives a log information, then sends out A response message is sent to router.If the log services of terminal device are run always, router constantly sends log information To the terminal device, router is judged after being sent to the log information of terminal device each time, if gets the terminal The response message that equipment is sent.If each log information can get response message, show the terminal device Log services are constantly in running status, then router sends log information with can continuing for.If what the router was sent After log information is more than a predetermined number, the response message that the terminal device is sent is not received by, then stops sending daily record Information.For example after router have sent 10 log informations, the response message that the terminal device is sent never is received, Then show that the log services of terminal device have been switched off, router stops sending log information to terminal service.Router is opened Begin to perform above-mentioned steps S3.
As shown in Fig. 2 the specific embodiment of the present invention, in the logging tools of installing terminal equipment one, passes through the day Volunteer's tool can obtain the log information of router transmission.After terminal starting log service, the logging tools are opened Afterwards, the display interface of logging tools as shown in Figure 2.After " export instrument storage daily record " 10 button is clicked on, router device Log information will be sent to the terminal device, and " the journal displaying area " 11 of the display interface in logging tools is shown Show, and the log information can be saved as file, so that the later stage is checked.When " leading for click logs instrument display interface Go out equipment storage daily record " after 12 buttons, it is possible to the log information that will be stored in terminal device all exports, and user can be very square Just the historical information for checking daily record.If user wants to delete log information, " Clear Log " 13 button of display interface is clicked on .
According to the technical scheme, terminal device in router active detecting LAN whether running log service, if fortune OK, then log information is sent to the terminal device, it is not necessary to is manually entered the address of running log service equipment, all operations Actively completed by router;Log information is stored on the terminal device of running log service, can so get route The history log information of device;Great convenience is brought to user, the maintenance to system brings many facilities.
As shown in figure 3, according to one embodiment of present invention, a kind of router, including:
Generation module 30, for selecting an IP address from the terminal device IP address list in LAN, according to the IP of selection Address generates the first UDP messages of the first preset format, and sends to terminal device corresponding to the IP address;
Responder module 31, if obtaining the terminal device is sent meet the second preset format second in the first preset time UDP messages, then log information is sent to the terminal device.
Preferably, the generation module 30 specifically includes:
Memory cell, the log information for generation are stored into journal file;
Selecting unit, for according to the terminal device IP address list obtained in address analysis protocol table in LAN, and from institute State and an IP address is selected in IP address list;
Generation unit, for generating the first UDP messages of the first preset format according to the IP address of selection and sending to the IP Terminal device corresponding to address, the first UDP messages include log request information.
Preferably, the responder module 31 specifically includes:
Setting unit, user set the first preset time;
Judging unit, the 2nd UDP messages sent for obtaining the terminal device in first preset time, and judge Whether the 2nd UDP messages include a daily record confirmation;
Log information output unit, for after the judging unit judges that the 2nd UDP messages include daily record confirmation, Log information in the journal file is sent to the terminal device.
After router startup operation, each functional module of router brings into operation, and produces various log informations, than Such as, the running state information of router device, operation instruction information and device exception information etc..In the storage list of generation module In member, by the log information of generation into journal file.By selecting unit obtain institute in a local network terminal device correspondence IP address list, an IP address is selected from the IP address list.In generation unit, according to the IP address according to selection Generate the first UDP messages.In the message header field of the first UDP messages, destination slogan, purpose are set according to the IP address of selection IP address is selected IP address, includes a log request information in the data field of the first UDP messages.By described first UDP messages are sent to terminal device corresponding to the IP address.The log request information is used to ask output journal information extremely The terminal device.
After the terminal device receives the first UDP messages, judge that the log services of the terminal device in itself are No operation.If the log services of terminal device have been run, judge whether the first UDP messages include the log request and believe Breath, if so, the 2nd UDP messages for then generating the second preset format include one to router in the data field of the 2nd UDP messages Daily record confirmation.The 2nd UDP messages are sent to router.The daily record confirmation is used to confirm that the terminal is set Standby log services have already turned on, and the first UDP messages meet the first default form, and the terminal device can connect Receive log information.
First preset time is set in the setting unit of processing module.By judging unit, if default described first In time, the 2nd UDP messages that the terminal device is sent are received.Router carries out message solution to the 2nd UDP messages Analysis, and judge whether include the daily record confirmation in the 2nd UDP messages, if including illustrating that terminal device is run Log services, and the first UDP authentication of message sent to router passes through.Then by log information output unit, from Log information is obtained in the journal file, and sends log information to the terminal device.If the router is described In one preset time, the 2nd UDP messages of the second preset format are not received by, then illustrate the IP address pair selected by router The terminal device answered does not have running log service, then router reselects an IP address from the IP address table, again Perform above method step.
According to the technical scheme, it is not necessary to be manually entered the address of running log service equipment, router is actively sentenced Disconnected and output journal information;Great convenience is brought to user, the maintenance to system brings many facilities.
As shown in figure 4, according to one embodiment of present invention, a kind of Log Collect System, the system includes:
Router 40, for selecting an IP address from the terminal device IP address list in LAN, according to the IP of selection Location generates the first UDP messages of the first preset format, and sends to terminal device corresponding to the IP address;
Terminal device 41, after obtaining the first UDP messages, judge whether the log services of the terminal device are run, If operation, judges whether the message format of the first UDP messages meets the first preset format, if meeting, generates second 2nd UDP messages of preset format are simultaneously sent to router;
The router 40, if being additionally operable to obtain in the first preset time, the terminal device sends meets the second default lattice 2nd UDP messages of formula, then log information is sent to the terminal device.
In summary, the present invention by the terminal device in router active detecting LAN whether running log service, If operation, log information is sent to the terminal device, it is not necessary to the address of running log service equipment is manually entered, it is all Operation is actively completed by router;Great convenience is brought to user.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of log collection method, it is characterised in that the described method comprises the following steps:
S1, router select an IP address from the terminal device IP address list in LAN, are given birth to according to the IP address of selection Into the first UDP messages of the first preset format, and send to terminal device corresponding to the IP address;
If the of what S2, the router obtained that the terminal device sends in the first preset time meet the second preset format Two UDP messages, then the router send log information to the terminal device;
S3, otherwise, the router selects another IP address, and re-executes step S1 and S2.
2. log collection method as claimed in claim 1, it is characterised in that methods described also includes:
If all IP address in the complete IP address list of router poll, without acquisition second preset format The 2nd UDP messages, then after the second preset time, perform step S1-S3.
3. log collection method as claimed in claim 2, it is characterised in that step S1 is specifically included:
After the router startup operation, log information is generated, and export the log information into journal file;
The router is according to the terminal device IP address list obtained in address analysis protocol table in LAN;
An IP address is selected from the IP address list, the first UDP of the first preset format is generated according to the IP address of selection Message, and transmission to terminal device corresponding to the IP address, the first UDP messages includes a log request information.
4. log collection method as claimed in claim 3, it is characterised in that include before step S2:
After the terminal device obtains the first UDP messages, judge whether the log services of the terminal device are run;
If operation, the terminal device parses the first UDP messages, and judges whether the first UDP messages include institute State log request information;
If so, then generate the 2nd UDP messages of the second preset format and send to the router, the 2nd UDP message bags Include a daily record confirmation.
5. log collection method as claimed in claim 4, it is characterised in that the step S2 is specifically included:
If the router obtains and parsed the 2nd UDP messages that the terminal device is sent in first preset time, And judge whether the 2nd UDP messages include the daily record confirmation;
If so, then according to the source IP address of the 2nd UDP messages, log information in the journal file is sent to the end End equipment.
6. log collection method as claimed in claim 5, it is characterised in that the step S2 specifically also includes:
The router persistently sends log information to the terminal device;
After the terminal device often obtains a log information, then a response message is sent to the router;
If after the log information that the router is sent is more than a predetermined number, it is not received by times that the terminal device is sent What response message, then stop sending log information, perform step S3.
A kind of 7. router, it is characterised in that including:
Generation module, for selecting an IP address from the terminal device IP address list in LAN, according to the IP of selection Location generates the first UDP messages of the first preset format, and sends to terminal device corresponding to the IP address;
Responder module, if obtaining the terminal device is sent meet the second preset format second in the first preset time UDP messages, then log information is sent to the terminal device.
8. router as claimed in claim 7, it is characterised in that the generation module specifically includes:
Memory cell, for storing the log information of generation into journal file;
Selecting unit, for according to the terminal device IP address list obtained in address analysis protocol table in LAN, and from institute State and an IP address is selected in IP address list;
Generation unit, for generating the first UDP messages of the first preset format according to the IP address of selection and sending to the IP Terminal device corresponding to address, the first UDP messages include log request information.
9. router as claimed in claim 8, it is characterised in that the responder module specifically includes:
Setting unit, for setting the first preset time;
Judging unit, the 2nd UDP messages sent for obtaining the terminal device in first preset time, and judge Whether the 2nd UDP messages include a daily record confirmation;
Log information output unit, for after the judging unit judges that the 2nd UDP messages include daily record confirmation, Log information in the journal file is sent to the terminal device.
10. a kind of Log Collect System, it is characterised in that the system includes:
Router, for selecting an IP address from the terminal device IP address list in LAN, according to the IP address of selection The first UDP messages of the first preset format are generated, and are sent to terminal device corresponding to the IP address;
Terminal device, after obtaining the first UDP messages, judge whether the log services of the terminal device are run, if Operation, then judge whether the message format of the first UDP messages meets the first preset format, if meeting, generation second is pre- If the 2nd UDP messages of form are simultaneously sent to router;
The router, if being additionally operable to obtain in the first preset time, the terminal device sends meets the second preset format The 2nd UDP messages, then send log information to the terminal device.
CN201710895151.1A 2017-09-28 2017-09-28 Log collection method and system and router Expired - Fee Related CN107733697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710895151.1A CN107733697B (en) 2017-09-28 2017-09-28 Log collection method and system and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710895151.1A CN107733697B (en) 2017-09-28 2017-09-28 Log collection method and system and router

Publications (2)

Publication Number Publication Date
CN107733697A true CN107733697A (en) 2018-02-23
CN107733697B CN107733697B (en) 2021-03-02

Family

ID=61207134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710895151.1A Expired - Fee Related CN107733697B (en) 2017-09-28 2017-09-28 Log collection method and system and router

Country Status (1)

Country Link
CN (1) CN107733697B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090323693A1 (en) * 2006-09-07 2009-12-31 Qin Yin Method and apparatus for managing route information and forwarding data in access devices
US7941526B1 (en) * 2007-04-19 2011-05-10 Owl Computing Technologies, Inc. Transmission of syslog messages over a one-way data link
CN105207853A (en) * 2015-10-12 2015-12-30 深圳市万网博通科技有限公司 Local area network monitoring management method
CN106850281A (en) * 2017-01-18 2017-06-13 深圳市万网博通科技有限公司 Network device management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090323693A1 (en) * 2006-09-07 2009-12-31 Qin Yin Method and apparatus for managing route information and forwarding data in access devices
US7941526B1 (en) * 2007-04-19 2011-05-10 Owl Computing Technologies, Inc. Transmission of syslog messages over a one-way data link
CN105207853A (en) * 2015-10-12 2015-12-30 深圳市万网博通科技有限公司 Local area network monitoring management method
CN106850281A (en) * 2017-01-18 2017-06-13 深圳市万网博通科技有限公司 Network device management method

Also Published As

Publication number Publication date
CN107733697B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN103220292B (en) Cross-safe-area data transmission and system
US8825508B2 (en) Method and apparatus for automated staff assignment
JP2007148938A (en) Equipment inspection support system, method and program
CN102655481A (en) Webpape-based instant messaging chat content looking-up method and system
WO2011153805A1 (en) Monitoring system for mobile terminal and monitoring method thereof
CN103905597B (en) A kind of method and system of computer control managing VoIP phones
CN112202635B (en) Link monitoring method and device, storage medium and electronic device
CN103457802A (en) Information transmission system and method
CN107845008A (en) Information acceptance control method and device
JP2000209204A (en) Remote monitor control method and its system
CN101998446A (en) Method and system for paying return visit to complaining user
CN103944779B (en) A kind of WAP service features monitoring method and system
CN107733697A (en) A kind of log collection method and system and router
EP1385297A1 (en) Autonomous system for remote management of devices subject to pay-per-use services
CN108021989A (en) multimedia teaching facility information management system
JP2020101970A (en) Conversation processing system, information processing apparatus and program
CN107172034A (en) The real name identification method and device of public WIFI connections
CN102394893B (en) Method, server and system for inspecting communication protocol between terminal and server side
CN109068398B (en) Wireless connection method for mobile robot and manual operator and mobile robot system
CN111400064A (en) Method for calling fixed value and recording file across safety zone
CN202587024U (en) Reversed agent system
JP2007195098A (en) Communication network system using mobile terminal
CN1940999A (en) Attendance management system and method
CN108039966A (en) A kind of method and system of control message server in real time
CN100476770C (en) Communication system and method for accessing server and preventing access barrage and minimum network traffic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210302

Termination date: 20210928

CF01 Termination of patent right due to non-payment of annual fee