protocol

Function

The protocol command configures a PM server to which performance statistics files are uploaded.

The undo protocol command deletes the PM server configuration.

By default, no PM server to which performance statistics files are uploaded is configured.

Format

protocol { ftp | sftp } ip-address ip-address [ port port-number | { net-manager-vpn | vpn-instance vpn-instance-name } ] *

undo protocol

Parameters

Parameter Description Value
ftp

Specifies the FTP protocol for uploading performance statistics files.

-

sftp

Specifies the SFTP protocol for uploading performance statistics files.

-

ip-address ip-address

Specifies the IP address of the PM server.

The value is in dotted decimal notation.

port port-number

Specifies the listening port number of the PM server.

If the port number is not specified, the default port number is used.

The value is an integer ranging from 1 to 65535. The default standard port number is 21 (using FTP) or 22 (using SFTP).

net-manager-vpn

Indicates the network management VPN.

-

vpn-instance vpn-instance-name

Specifies a VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

PM server view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
perf-mgr write

Usage Guidelines

Usage Scenario

To upload performance statistics files to a PM server, run the protocol command to specify the PM server with a specified IP address and port number.

If the IP address of the PM server is a private address, configure net-manager-vpn for files to be uploaded, or specify vpn-instance vpn-instance-name for files to be uploaded.

Precautions

Using FTP to upload performance statistics files is not secure. Therefore, using SFTP is recommended.

Example

# Configure the device to upload performance statistics files to a PM server with the IP address of 192.168.10.3 and the listening port number of 1025.
<HUAWEI> system-view
[~HUAWEI] pm
[~HUAWEI-pm] pm-server a
[*HUAWEI-pm-server-a] protocol sftp ip-address 192.168.10.3 port 1025
# Configure the network management VPN for files to be uploaded to a PM server with the IP address of 192.168.10.2.
<HUAWEI> system-view
[~HUAWEI] pm
[~HUAWEI-pm] pm-server a
[*HUAWEI-pm-server-a] protocol sftp ip-address 192.168.10.2 net-manager-vpn
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >