No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Configuration Guide - Device Management

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of Device Management, including device status query, hardware management, Stack, SVF, cloud-based management, PoE, monitoring interface, OPS, energy-saving management, information center, fault management, NTP, synchronous ethernet, PTP.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Displaying Prompt Information to a Terminal

Displaying Prompt Information to a Terminal

Interface Name

Displaying prompt information to a terminal

Application Phase

Execution phase

API Prototype

result1_value, result2_description = ops.terminal.write(msg, vty=None)






Indicates information displayed on a user screen.

The value is a string of 1 to 512 case-sensitive characters.


Indicates a user terminal.

The value is of the enumerated type:

  • None: VTY channel name obtained using ops.environment.get("_cli_vty").
  • "all": all VTYs, the console port, and non-master switch console ports in a stack system.

Return Value

The result1_value and result2_description in the API prototype indicate return values.

The result1_value is the first return value, 0 indicates success, and 1 indicates failure.

The result2_description is the second return value, indicating the failure cause. It is returned only when the first return value is 1.

Usage Description

This API displays user-defined information to a device to generate prompt information.


When a subscription event is matched, alarm generated is displayed on all the terminals.

value, descri_str = ops.terminal.write("alarm generated", vty="all")
Updated: 2019-04-20

Document ID: EDOC1100065674

Views: 75759

Downloads: 513

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next