CN104486309A - Terminal emulation communication protocol recording method - Google Patents

Terminal emulation communication protocol recording method Download PDF

Info

Publication number
CN104486309A
CN104486309A CN201410732260.8A CN201410732260A CN104486309A CN 104486309 A CN104486309 A CN 104486309A CN 201410732260 A CN201410732260 A CN 201410732260A CN 104486309 A CN104486309 A CN 104486309A
Authority
CN
China
Prior art keywords
terminal
data
emulation
unix
main frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410732260.8A
Other languages
Chinese (zh)
Inventor
关宁风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING TRUST&FOR CHANGYUAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING TRUST&FOR CHANGYUAN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING TRUST&FOR CHANGYUAN TECHNOLOGY Co Ltd filed Critical BEIJING TRUST&FOR CHANGYUAN TECHNOLOGY Co Ltd
Priority to CN201410732260.8A priority Critical patent/CN104486309A/en
Publication of CN104486309A publication Critical patent/CN104486309A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a terminal emulation communication protocol recording method. The terminal emulation communication protocol recording method is mainly implemented by a terminal emulation protocol redirector, and the main steps include data storage, replay process and automated execution. The terminal emulation communication protocol recording method utilizes the terminal emulation protocol redirector to record and store data LOGs received from hosts and data LOGs sent to the hosts in the RAW format and add time stamps, utilizes the terminal emulation protocol redirector to transmit the data LOGs received from the hosts to a terminal emulation program again to implement the step of replay process, and utilizes the terminal emulation protocol redirector to transmit the data LOGs sent to the hosts to the UNIX and LINUX hosts again to implement the step of automated execution. The terminal emulation communication protocol recording method can greatly reduce the workload of system maintainers, automates repetitive work, and has great popularization value.

Description

A kind of method of terminal emulation communications protocol record
Technical field
The present invention relates to field of computer technology, particularly the method for terminal emulation protocol data processing and record in computer communication field.
Background technology
Terminal emulation protocol, as the Man Machine Interface of standard, is widely used in computer, comprises PC, server, minicomputer, and stores, network, even single-chip microcomputer, the various aspects such as mobile phone.The terminal-emulation software of current main flow, as Netterm, Putty etc. basic framework as shown in Figure 1: UNIX with LINUX main frame is connected with terminal-emulation software with Telnet agreement by serial ports, and terminal-emulation software exports Log file.The journal file LOG that this scheme terminal-emulation software is formed can only realize the object of checking, cannot recycle.
Of the present inventionly in addition relate to port repeat program, the basic framework of traditional port repeat is as shown in Figure 2: UNIX and LINUX main frame is by Telnet agreement and port repeat software communication, and port repeat software is communicated with terminal-emulation software by Telnet agreement.
The present invention relates to the basic framework of terminal emulation protocol port repeat program as shown in Figure 3: UNIX with LINUX main frame is communicated with terminal emulation protocol retransmission process with Telnet agreement by serial ports, terminal emulation protocol retransmission process directly exports LOG file, and terminal emulation protocol retransmission process is communicated with terminal-emulation software by Telnet agreement.The playback that the present invention can realize journal file utilizes, and makes journal file breach the scope of application that can only check, provides a kind of easy method to the automatic business processing of man-machine interaction.
The original meaning that the present invention relates to noun RAW is exactly without processing.
Summary of the invention
The method of a kind of terminal emulation communications protocol record of the present invention is in terminal-emulation software protocol forward program development process, in order to realize the playback of terminal operation and terminal operation automation and invent specially.
The bright specific implementation step of this law is:
(1) data store
1) data that UNIX and LINUX main frame sends send to terminal-emulation software first through terminal emulation protocol retransmission process through serial ports and Telnet agreement, the data that terminal emulation protocol retransmission process record UNIX and LINUX main frame send are formed from host receiving data LOG, UNIX and LINUX main frame sends to the data of terminal-emulation software to send terminal-emulation software to by terminal emulation protocol retransmission process simultaneously;
2) terminal-emulation software sends data to UNIX and LINUX main frame first through terminal emulation protocol retransmission process, terminal-emulation software sends to the data of UNIX and LINUX main frame to be formed and is sent to host data LOG by terminal emulation protocol retransmission process, is sent to by terminal-emulation software the data of UNIX and LINUX main frame to send UNIX and LINUX main frame to by serial ports and Telnet agreement simultaneously;
3) data record adopt RAW form, being left intact, is in order to complete playback terminal operation;
(2) playback program
1) terminal emulation protocol retransmission process reads from host receiving data LOG, and again sends the data of record to terminal-emulation software according to the RAW form from host receiving data LOG, thus on terminal-emulation software, realize the operation of playback program;
(3) automated execution
1) terminal emulation protocol retransmission process reads and is sent to host data LOG, and again send the data of record to UNIX and LINUX main frame by serial ports and Telnet agreement according to the RAW form being sent to host data LOG, thus the automation realizing manual debugging recording on UNIX and LINUX main frame repeats;
Data storage file record format of the present invention adopts binding time stamp class XML mode to preserve.
Above-mentioned from host receiving data LOG and be sent to host data LOG RAW mode preserving type add at log file the timestamp sending and receive, adopt class XML format, specific as follows:
During <T: point: second: millisecond > data </T>.
After joining day stamp, there is following benefit:
1. achieve the tracking to terminal operation and location.Such as main frame generation problem sometime, can by the terminal operation of terminal journal file inquiry in that moment, localizing faults reason and person liable.
2. can realize progress bar when terminal playback operation, can fast forward to sometime, and then the terminal operation that playback is later.
3. can realize progress when terminal operation automation controlled, according to timestamp transmitting terminal operational order, avoid occurring that previous order does not also execute, have transmission Next Command, cause system congestion.
Accompanying drawing explanation
The basic framework figure of Tu1Shi main flow terminal simulation software;
Fig. 2 is the basic framework figure of traditional port repeat software;
Fig. 3 is the basic framework figure relating to terminal emulation protocol port repeat program of the present invention;
Fig. 4 is data Stored Procedure figure of the present invention;
Fig. 5 is playback program flow chart of the present invention;
Fig. 6 is automated execution flow chart of the present invention;
Fig. 7 is the computer example screenshot figure that the RAW mode of the LOG of joining day of the present invention stamp is preserved.
Embodiment
Method referring to Fig. 3 to Fig. 6 a kind of terminal emulation communications protocol record of the present invention completes primarily of terminal emulation protocol retransmission process, and key step comprises data and stores, playback program, and automated execution, is specifically described below:
(1) data store
1) data that UNIX and LINUX main frame sends send to terminal-emulation software first through terminal emulation protocol retransmission process through serial ports and Telnet agreement, the data that terminal emulation protocol retransmission process record UNIX and LINUX main frame send are formed from host receiving data LOG, UNIX and LINUX main frame sends to the data of terminal-emulation software to send terminal-emulation software to by terminal emulation protocol retransmission process simultaneously;
2) terminal-emulation software sends data to UNIX and LINUX main frame first through terminal emulation protocol retransmission process, terminal-emulation software sends to the data of UNIX and LINUX main frame to be formed and is sent to host data LOG by terminal emulation protocol retransmission process, is sent to by terminal-emulation software the data of UNIX and LINUX main frame to send UNIX and LINUX main frame to by serial ports and Telnet agreement simultaneously;
3) data record adopt RAW form, being left intact, is in order to complete playback terminal operation;
(2) playback program
1) terminal emulation protocol retransmission process reads from host receiving data LOG, and again sends the data of record to terminal-emulation software according to the RAW form from host receiving data LOG, thus on terminal-emulation software, realize the operation of playback program;
(3) automated execution
1) terminal emulation protocol retransmission process reads and is sent to host data LOG, and again send the data of record to UNIX and LINUX main frame by serial ports and Telnet agreement according to the RAW form being sent to host data LOG, thus the automation realizing manual debugging recording on UNIX and LINUX main frame repeats.
Data storage file record format of the present invention adopts binding time stamp class XML mode to preserve.
Above-mentioned from host receiving data LOG and be sent to host data LOG RAW mode preserving type add at log file the timestamp sending and receive, adopt class XML format, specific as follows:
During <T: point: second: millisecond > data </T>.Exemplary reference Fig. 7.

Claims (1)

1. the method for a terminal emulation communications protocol record completes primarily of terminal emulation protocol retransmission process, and specific implementation step of the present invention is:
(1) data store
1) data that UNIX and LINUX main frame sends send to terminal-emulation software first through terminal emulation protocol retransmission process through serial ports and Telnet agreement, the data that terminal emulation protocol retransmission process record UNIX and LINUX main frame send are formed from host receiving data LOG, UNIX and LINUX main frame sends to the data of terminal-emulation software to send terminal-emulation software to by terminal emulation protocol retransmission process simultaneously;
2) terminal-emulation software sends data to UNIX and LINUX main frame first through terminal emulation protocol retransmission process, terminal-emulation software sends to the data of UNIX and LINUX main frame to be formed and is sent to host data LOG by terminal emulation protocol retransmission process, is sent to by terminal-emulation software the data of UNIX and LINUX main frame to send UNIX and LINUX main frame to by serial ports and Telnet agreement simultaneously;
3) data record adopt RAW form, being left intact, is in order to complete playback terminal operation;
(2) playback program
1) terminal emulation protocol retransmission process reads from host receiving data LOG, and again sends the data of record to terminal-emulation software according to the RAW form from host receiving data LOG, thus on terminal-emulation software, realize the operation of playback program;
(3) automated execution
1) terminal emulation protocol retransmission process reads and is sent to host data LOG, and again send the data of record to UNIX and LINUX main frame by serial ports and Telnet agreement according to the RAW form being sent to host data LOG, thus the automation realizing manual debugging recording on UNIX and LINUX main frame repeats;
Data storage file record format of the present invention adopts binding time stamp class XML mode to preserve;
Above-mentioned from host receiving data LOG and be sent to host data LOG RAW mode preserving type add at log file the timestamp sending and receive, adopt class XML format, specific as follows:
During <T: point: second: millisecond > data </T>.
CN201410732260.8A 2014-12-06 2014-12-06 Terminal emulation communication protocol recording method Pending CN104486309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410732260.8A CN104486309A (en) 2014-12-06 2014-12-06 Terminal emulation communication protocol recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410732260.8A CN104486309A (en) 2014-12-06 2014-12-06 Terminal emulation communication protocol recording method

Publications (1)

Publication Number Publication Date
CN104486309A true CN104486309A (en) 2015-04-01

Family

ID=52760813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410732260.8A Pending CN104486309A (en) 2014-12-06 2014-12-06 Terminal emulation communication protocol recording method

Country Status (1)

Country Link
CN (1) CN104486309A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040167976A1 (en) * 2003-02-21 2004-08-26 Peer Francis Wayne Methods and apparatus for automated software generic information retrieval
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20070192416A1 (en) * 2006-02-10 2007-08-16 Oracle International Corporation Electronic mail recovery utilizing recorded mapping table
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 Automatized test method for broadband accessing server
CN101808112A (en) * 2010-02-06 2010-08-18 大连大学 Remote device maintenance method based on TELNET and proxy
CN101951366A (en) * 2010-08-31 2011-01-19 深圳市络道科技有限公司 Single-point logon method and system based on character terminal
CN102035889A (en) * 2010-12-16 2011-04-27 上海泰捷通信技术有限公司 Software testing method for telecommunication terminal
CN102333090A (en) * 2011-09-28 2012-01-25 辽宁国兴科技有限公司 Internal control bastion host and security access method of internal network resources
CN102387137A (en) * 2011-10-11 2012-03-21 杭州东信北邮信息技术有限公司 Implementation method and system of intelligent operation logic of a plurality of network devices
US8176553B1 (en) * 2001-06-29 2012-05-08 Mcafee, Inc. Secure gateway with firewall and intrusion detection capabilities
CN103152363A (en) * 2006-10-20 2013-06-12 思杰系统有限公司 Methods and systems for recording and real-time playback and seeking of a presentation layer protocol data stream

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176553B1 (en) * 2001-06-29 2012-05-08 Mcafee, Inc. Secure gateway with firewall and intrusion detection capabilities
US20040167976A1 (en) * 2003-02-21 2004-08-26 Peer Francis Wayne Methods and apparatus for automated software generic information retrieval
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20070192416A1 (en) * 2006-02-10 2007-08-16 Oracle International Corporation Electronic mail recovery utilizing recorded mapping table
CN103152363A (en) * 2006-10-20 2013-06-12 思杰系统有限公司 Methods and systems for recording and real-time playback and seeking of a presentation layer protocol data stream
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 Automatized test method for broadband accessing server
CN101808112A (en) * 2010-02-06 2010-08-18 大连大学 Remote device maintenance method based on TELNET and proxy
CN101951366A (en) * 2010-08-31 2011-01-19 深圳市络道科技有限公司 Single-point logon method and system based on character terminal
CN102035889A (en) * 2010-12-16 2011-04-27 上海泰捷通信技术有限公司 Software testing method for telecommunication terminal
CN102333090A (en) * 2011-09-28 2012-01-25 辽宁国兴科技有限公司 Internal control bastion host and security access method of internal network resources
CN102387137A (en) * 2011-10-11 2012-03-21 杭州东信北邮信息技术有限公司 Implementation method and system of intelligent operation logic of a plurality of network devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范增震: "网络安全管理系统集中日志审计子系统的设计与测试", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Similar Documents

Publication Publication Date Title
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
CN102497427B (en) Method and device for realizing data acquisition services of renewable energy source monitoring system
US8819286B2 (en) Methods, systems, and apparatus for processing messaging data sets using structured data sets
CN103198007A (en) Multi-process log output method and system
CN103795762A (en) Reverse agent test system and method
CN112685248A (en) Intelligent network card monitoring log obtaining method and device, electronic equipment and storage medium
CN112463511B (en) Automatic test system and test method for serial port equipment of Internet of things
CN107566513B (en) Test equipment DOS environmental data acquisition method and system
CN111881044B (en) Automatic test case matching system according to configuration files
CN111526046A (en) Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN105407150A (en) Remote control method of application program
CN103560918A (en) Method and system for managing CPE port
CN103916413A (en) Control method and device for heterogeneous minicomputers, and cloud computing system
CN102736926A (en) Upgrade method, device and batch upgrade system based on task template
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN104486309A (en) Terminal emulation communication protocol recording method
CN107911157B (en) Universal satellite command automation technology data processing system and method
CN107451435B (en) Management and control method, management and control machine and management and control system of hardware encryption machine
CN116319723A (en) Remote connection debugging method, device and medium for android device
CN115348333A (en) Data transmission method, system and equipment based on UDP (user Datagram protocol) double-end communication interaction
CN105721101B (en) A kind of method and device for realizing civil aviaton&#39;s Message processing
CN109347656B (en) Method and system for configuring virtual host uplink network card
CN107277107A (en) Using adjustment method, apparatus and system
CN102662716A (en) Method for realizing startup guiding control in computer system by using interface access
CN105281984A (en) Virtual terminal and method for message capturing and filtering

Legal Events

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

Application publication date: 20150401

WD01 Invention patent application deemed withdrawn after publication