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.
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. |
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.
<HUAWEI> system-view [~HUAWEI] pm [~HUAWEI-pm] pm-server a [*HUAWEI-pm-server-a] protocol sftp ip-address 192.168.10.3 port 1025
<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