Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Command execution result analysis method and system based on virtual terminal

A command execution, virtual terminal technology, applied in software emulation/interpretation/simulation, comprehensive factory control, instruments, etc., can solve problems such as batch execution disorder, unfavorable analysis command execution results, garbled characters, etc.

Pending Publication Date: 2022-05-31
INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] (1) When there is no command terminator in the execution result or the command terminator is included in other positions in the result, the position of the terminator cannot be effectively judged, resulting in incomplete command results or out-of-order batch execution;
[0004] (2) The execution result contains not only readable text characters, but also ANSI and VT100 terminal control characters. These control characters are mixed in the normal text results, which not only interfere with the judgment of the command terminator, but also cause a large number of recorded results to appear The garbled characters are not conducive to analyzing the command execution results;
[0005] (3) The data dependencies between commands cannot be handled. Sometimes, the input parameters when the next command is executed depend on the data in the execution result of the previous command

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Command execution result analysis method and system based on virtual terminal
  • Command execution result analysis method and system based on virtual terminal
  • Command execution result analysis method and system based on virtual terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] The present invention is based on the virtual terminal command execution result analysis method, such as figure 1 As shown, the method includes the following steps:

[0071] S100, after sending the command to the target device, create a virtual terminal window in the memory;

[0072] S200, adding the returned command execution result data to the virtual terminal window, the command execution result data includes text characters and control characters, and the control characters include characters in ANSI format and VT100 format;

[0073] S300. Analyze and filter the command execution result data, remove the control characters and retain the extracted text characters in the memory, and format the text characters based on the control characters to obtain the final command execution result data, and restore the final command execution result data The original format and content of the command execution result;

[0074] S400. Analyze the final command execution result dat...

Embodiment 2

[0098] The command execution result analysis system based on the virtual terminal of the present invention includes a configuration module, a reading module, a parsing and screening module, and an information extraction module. The configuration module is used to create a virtual terminal window in the memory after sending a command to the target device; the reading module For adding command execution result data to the virtual terminal window, the command execution result data includes text characters and control characters, and the control characters include characters in ANSI format and VT100 format; the parsing and filtering module is used to perform command execution result data Parse and filter, remove the control characters and retain the extracted text characters in memory, and format the text characters based on the control characters to obtain the final command execution result data, the final command execution result data restores the original format of the command ex...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a command execution result analysis method and system based on a virtual terminal, belongs to the technical field of command batch processing, and aims to solve the technical problems of how to analyze a command execution result, remove invalid characters, process a data dependency relationship between commands and effectively extract valid data. Comprising the following steps: after a command is sent to target equipment, creating a virtual terminal window in a memory; the returned command execution result data is added to the virtual terminal window, the command execution result data comprises text characters and control characters, and the control characters comprise characters in an ANSI format and a VT100 format; analyzing and screening the command execution result data, removing the control characters, retaining the extracted text characters in the memory, and formatting the text characters based on the control characters to obtain final command execution result data; and analyzing the final command execution result data, and extracting effective command execution result information.

Description

technical field [0001] The invention relates to the technical field of command batch processing, in particular to a method and system for analyzing command execution results based on a virtual terminal. Background technique [0002] In the communication network operation and maintenance work, it is often necessary to perform batch processing operations on multiple network devices or host devices. A common operation is to automatically execute a batch of commands in an unattended manner. The general steps of traditional batch processing operations are to issue a command, receive the command result and judge whether it contains the command terminator, and if it contains the command terminator, issue the next command, and so on, until all commands are executed. The traditional batch processing method is convenient to implement, but there are several problems, such as: [0003] (1) When there is no command terminator in the execution result or the command terminator is included...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45583G06F2009/45595Y02P90/02
Inventor 李鹏杨刘从坤
Owner INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products