< Home

terminal echo synchronous

Function

The terminal echo synchronous command enables a terminal to display debugging, log, or trap information synchronously.

The undo terminal echo synchronous command disables a terminal from displaying debugging, log, or trap information synchronously.

By default, a terminal displays debugging, log, and trap information asynchronously.

Format

terminal echo synchronous [ level { severity | all } | size size-number ] *

undo terminal echo synchronous

Parameters

Parameter Description Value
level severity Specifies an information severity.

The value is an integer ranging from 0 to 7. The default value is 0.

The information center classifies information into the following severities:

  • 0: emergency

  • 1: alert

  • 2: critical

  • 3: error

  • 4: warning

  • 5: notice

  • 6: informational

  • 7: debug

A smaller value indicates a higher severity. The information with a severity higher than a specified severity is displayed asynchronously.

all

Displays information of all severities.

size size-number

Specifies the total number of debugging, log, and trap records.

The value is an integer ranging from 1 to 1024. The default value is 512.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When a device generates debugging, log, or trap information, the information queues in the device process and is sent to a terminal sequentially. This output is called a synchronous output.

A synchronous output provides effectively organized output information, improving user experience. In asynchronous output mode, multiple types of information interlaces, which brings poor readability. An asynchronous output allows you to promptly obtain debugging and diagnosis information and therefore applies to debugging and diagnosis scenarios.

You can run the terminal echo synchronous command to enable a synchronous output on a terminal, facilitating subsequent operations.

  • When you enter a command, the entered command content is displayed after debugging, log, or trap information is displayed. This function is enabled by default. After a synchronous output is disabled, this function is still supported.

  • When no command is entered, the command prompt is displayed after debugging, log, or trap information is displayed. This function is enabled by default. After a synchronous output is disabled, this function is still supported.
  • When a command is being run, no debugging, log, or trap information is displayed. After the command is run, debugging, log, or trap information is displayed.
  • When you enter Y for the message "Are you sure to continue?[Y/N]," the [Y/N]: prompt is displayed after debugging, log, or trap information is displayed.
  • When you enter the More phase, the More prompt is displayed after debugging, log, or trap information is displayed.
  • If you run a command, for example, for decompressing or saving a file, the terminal does not display output information until the operation is complete. This process ensures monitoring continuity.

Prerequisites
  • Terminal display has been enabled using the terminal monitor command.

  • The terminal has been enabled to display debugging, log, or trap information using the terminal debugging, terminal logging, or terminal trapping command.

Example

# Enable a terminal to display debugging information synchronously.

<HUAWEI> terminal monitor
Info: Current terminal monitor is on.  
<HUAWEI> terminal debugging
Info: Current terminal debugging is on.  
<HUAWEI> terminal echo synchronous
Info: Current terminal synchronization is on.      
<HUAWEI> save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]:
Aug 23 2012 12:04:37.790.2 huawei VTY/7/Debug_Stat: 
 (0)VTY ACCEPT BEGIN ! 
Aug 23 2012 12:04:37.790.3 huawei VTY/7/Debug_Stat: 
 (1)SOCKET ACCEPT OK ! 
Aug 23 2012 12:04:37.790.4 huawei VTY/7/Debug_Stat: 
 (2)FIND LINE INDEX OK !
[Y/N]:
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >