CN112000560A - Terminal log obtaining method and terminal log obtaining system - Google Patents
Terminal log obtaining method and terminal log obtaining system Download PDFInfo
- Publication number
- CN112000560A CN112000560A CN202010787781.9A CN202010787781A CN112000560A CN 112000560 A CN112000560 A CN 112000560A CN 202010787781 A CN202010787781 A CN 202010787781A CN 112000560 A CN112000560 A CN 112000560A
- Authority
- CN
- China
- Prior art keywords
- log
- terminal
- debugging
- debugged
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000010586 diagram Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a terminal log obtaining method and a terminal log obtaining system, which can provide logs for debugging personnel on a computer system. A terminal log obtaining method comprises the following steps: s1, accessing debugging equipment to a debugged terminal network; s2, starting log acquisition by a debugging person, and sending an instruction to a network by debugging equipment according to a unique identifier of a debugged terminal input by the debugging person; s3, after the debugged terminal receives the instruction, comparing the received unique identification, and if the unique identification is the unique identification of the debugged terminal, starting to collect the log and sending the log to the debugging equipment; and S4, stopping log collection by debugging personnel, sending a stop instruction to the network by the debugging equipment, stopping log sending by the debugged terminal, and obtaining the required log by the debugging equipment.
Description
Technical Field
The invention relates to a terminal log obtaining method and a terminal log obtaining system, which can provide logs for debugging personnel on a computer system.
Background
At present, a general terminal log obtaining method can only obtain logs partially in a debugging mode or under the conditions that a storage device can be externally connected and no network limitation exists, a flag bit is required to be built in a terminal device partially, the flag bit needs to be modified when log capture is started, the method is not convenient enough, and the problem of log capture under special conditions cannot be solved, for example, the terminal configuration is not modified, the debugging mode cannot be started, the storage device cannot be externally connected, the network has the condition that the limitation exists (only the debugged device of the same type is allowed to access the network), and the like.
Disclosure of Invention
The invention aims to provide a terminal log obtaining method and a terminal log obtaining system, which can provide logs for debugging personnel on a computer system.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a terminal log obtaining method comprises the following steps:
s1, accessing debugging equipment to a debugged terminal network;
s2, starting log acquisition by a debugging person, and sending an instruction to a network by debugging equipment according to a unique identifier of a debugged terminal input by the debugging person;
s3, after the debugged terminal receives the instruction, comparing the received unique identification, and if the unique identification is the unique identification of the debugged terminal, starting to collect the log and sending the log to the debugging equipment;
and S4, stopping log collection by debugging personnel, sending a stop instruction to the network by the debugging equipment, stopping log sending by the debugged terminal, and obtaining the required log by the debugging equipment.
A terminal log acquisition system comprises a debugged terminal, a network switch and a debugging device
The debugged terminal is internally provided with a set of programs for instruction receiving and log data sending;
the network switch is provided with a network connection port and is used for being connected with the debugged terminal and receiving the command sent by the debugged terminal; the debugging equipment is connected with the network switch and used for receiving and processing the operation command and returning a processing result to the network switch; the server switch is also used for receiving the processing result and sending the processing result to the debugged terminal.
The debugging equipment is internally provided with a set of instruction sending program, and the service can send the instruction according to the unique identification of the debugged terminal.
The invention has the advantages that: the method comprises the steps that by means of the unique identification of a debugged terminal, when the terminal is debugged, under the special conditions that the terminal cannot be externally connected with a storage device, cannot start a debugging mode, cannot modify terminal configuration and the like, the only the unique identification of the debugged terminal is input by the debugging device, and log data can be acquired by accessing to a network where the debugged terminal is located; by utilizing the method, the log acquisition can be completed by adding corresponding programs to different terminals, and the debugged terminal does not need any change (software and hardware) during debugging and is convenient to operate.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram of a terminal log obtaining system according to the present invention.
Fig. 2 is a schematic flow chart of a terminal log obtaining method according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A terminal log obtaining method comprises the following steps:
s1, accessing debugging equipment to a debugged terminal network;
s2, starting log acquisition by a debugging person, and sending an instruction to a network by debugging equipment according to a unique identifier of a debugged terminal input by the debugging person;
s3, after the debugged terminal receives the instruction, comparing the received unique identification, and if the unique identification is the unique identification of the debugged terminal, starting to collect the log and sending the log to the debugging equipment;
and S4, stopping log collection by debugging personnel, sending a stop instruction to the network by the debugging equipment, stopping log sending by the debugged terminal, and obtaining the required log by the debugging equipment.
A terminal log acquisition system comprises a debugged terminal, a network switch and a debugging device
The debugged terminal is internally provided with a set of programs for instruction receiving and log data sending;
the network switch is provided with a network connection port and is used for being connected with the debugged terminal and receiving the command sent by the debugged terminal; the debugging equipment is connected with the network switch and used for receiving and processing the operation command and returning a processing result to the network switch; the server switch is also used for receiving the processing result and sending the processing result to the debugged terminal.
The debugging equipment is internally provided with a set of instruction sending program, and the service can send the instruction according to the unique identification of the debugged terminal.
Examples
After the debugged terminal is started, a background service is started, udp broadcast of the designated port is monitored, the debugging equipment is accessed to a network where the debugged terminal is located, an instruction carrying the unique identifier (for example, a serial number) of the debugged terminal is sent by the udp broadcast, the debugged terminal compares the unique identifier after receiving the instruction, and if the unique identifier is the self identifier, log data is sent to the debugging equipment. And the debugging equipment finishes log acquisition, sends a log acquisition stopping instruction to the network, and stops log acquisition and sending after the debugged terminal receives the instruction.
By utilizing the method, the log acquisition can be completed by adding corresponding programs through different terminals; the debugged terminal does not need any change (software and hardware), and the operation is convenient.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (2)
1. A terminal log obtaining method is characterized by comprising the following steps:
s1, accessing debugging equipment to a debugged terminal network;
s2, starting log acquisition by a debugging person, and sending an instruction to a network by debugging equipment according to a unique identifier of a debugged terminal input by the debugging person;
s3, after the debugged terminal receives the instruction, comparing the received unique identification, and if the unique identification is the unique identification of the debugged terminal, starting to collect the log and sending the log to the debugging equipment;
and S4, stopping log collection by debugging personnel, sending a stop instruction to the network by the debugging equipment, stopping log sending by the debugged terminal, and obtaining the required log by the debugging equipment.
2. A terminal log obtaining system is characterized in that: the debugging device comprises a debugged terminal, a network switch and debugging equipment;
the debugged terminal is internally provided with a set of programs for instruction receiving and log data sending;
the network switch is provided with a network connection port and is used for being connected with the debugged terminal and receiving the command sent by the debugged terminal; the debugging equipment is connected with the network switch and used for receiving and processing the operation command and returning a processing result to the network switch; the server switch is also used for receiving the processing result and sending the processing result to the debugged terminal;
and the debugging equipment is internally provided with a set of instruction sending service, and the service can send the instruction according to the unique identifier of the debugged terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010787781.9A CN112000560A (en) | 2020-08-07 | 2020-08-07 | Terminal log obtaining method and terminal log obtaining system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010787781.9A CN112000560A (en) | 2020-08-07 | 2020-08-07 | Terminal log obtaining method and terminal log obtaining system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112000560A true CN112000560A (en) | 2020-11-27 |
Family
ID=73463845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010787781.9A Pending CN112000560A (en) | 2020-08-07 | 2020-08-07 | Terminal log obtaining method and terminal log obtaining system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112000560A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331189A (en) * | 2015-06-18 | 2017-01-11 | 中兴通讯股份有限公司 | Log acquisition method and device, and network management server |
CN106412639A (en) * | 2016-10-14 | 2017-02-15 | 深圳Tcl数字技术有限公司 | Smart television remote debugging method and smart television remote debugging system |
CN108009785A (en) * | 2017-08-16 | 2018-05-08 | 北京车和家信息技术有限责任公司 | Work attendance method and device |
CN111212155A (en) * | 2019-12-30 | 2020-05-29 | 深圳Tcl新技术有限公司 | Log debugging method, television and storage medium |
-
2020
- 2020-08-07 CN CN202010787781.9A patent/CN112000560A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331189A (en) * | 2015-06-18 | 2017-01-11 | 中兴通讯股份有限公司 | Log acquisition method and device, and network management server |
CN106412639A (en) * | 2016-10-14 | 2017-02-15 | 深圳Tcl数字技术有限公司 | Smart television remote debugging method and smart television remote debugging system |
CN108009785A (en) * | 2017-08-16 | 2018-05-08 | 北京车和家信息技术有限责任公司 | Work attendance method and device |
CN111212155A (en) * | 2019-12-30 | 2020-05-29 | 深圳Tcl新技术有限公司 | Log debugging method, television and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105611330B (en) | Smart television maintenance method and system, server and mobile terminal | |
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
US20220050765A1 (en) | Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server | |
CN109218407B (en) | Code management and control method based on log monitoring technology and terminal equipment | |
CN108710566B (en) | Power distribution dispatching master station integration test system and method | |
CN111858176A (en) | Remote monitoring fault self-healing system and method | |
CN110063042B (en) | Database fault response method and terminal thereof | |
CN103731663B (en) | The testing method of a kind of intelligent television and device | |
CN111625383B (en) | Process exception event processing method and device, electronic equipment and storage medium | |
CN113115351A (en) | Network exception processing method and device, terminal equipment and medium | |
CN115658420A (en) | Database monitoring method and system | |
CN110188028B (en) | Test method of computer system | |
CN114500305A (en) | Device monitoring method, device, storage medium and program product | |
CN112000560A (en) | Terminal log obtaining method and terminal log obtaining system | |
CN113132522A (en) | Test method, device, server and medium | |
CN101515251A (en) | Board-level platform debugging method, device and system | |
CN114826906B (en) | Flow control method, device, electronic equipment and storage medium | |
CN114244685A (en) | Cloud service center access exception handling system | |
CN113849135A (en) | Log access method and device and server | |
CN107766232A (en) | A kind of plug-in management method and device | |
CN113282506A (en) | Test data acquisition method, device, equipment and computer readable storage medium | |
CN110647474A (en) | Anti-interference method and device for automatic regression test, computer equipment and storage medium | |
CN108459940B (en) | Configuration information modification method and device of application performance management system and electronic equipment | |
CN111681397A (en) | Distribution network automation short message sending method, sending system and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201127 |