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

Reminder

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

upgrade

Configuration Guide - Device Management

S7700 and S9700 V200R013C00

This document describes the configurations of Device Management, including device status query, hardware management, CSS, SVF, PoE, OPS, OIDS, 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).
Closing CLI Channel

Closing CLI Channel

Interface Name

Closing CLI channel

Application Phase

Execution phase

API Prototype

result1_value, result2_description = ops.cli.close(fd)

Description

Parameter

Description

Value

fd

Indicates a CLI channel handle.

The value is generated through Opening CLI Channel API.

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

After a device delivers commands, you can close the CLI channel to release the VTY resource.

Example

When a subscription event is matched, you can close the CLI channel.

value, descri_str = ops.cli.close(handle)
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065738

Views: 40301

Downloads: 37

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next