- Table of Contents
-
- 12-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-iNQA commands
- 04-NTP commands
- 05-PTP commands
- 06-Network synchronization commands
- 07-PoE commands
- 08-SNMP commands
- 09-RMON commands
- 10-NETCONF commands
- 11-SmartMC commands
- 12-EPA commands
- 13-CWMP commands
- 14-EAA commands
- 15-Process monitoring and maintenance commands
- 16-Sampler commands
- 17-Mirroring commands
- 18-NetStream commands
- 19-IPv6 NetStream commands
- 20-NetAnalysis commands
- 21-sFlow commands
- 22-Information center commands
- 23-GOLD commands
- 24-Packet capture commands
- 25-VCF fabric commands
- 26-Cloud connection commands
- 27-EPS agent commands
- 28-eMDI commands
- 29-SQA commands
- 30-Performance management commands
- 31-TCP connection trace commands
- Related Documents
-
Title | Size | Download |
---|---|---|
26-Cloud connection commands | 78.24 KB |
cloud-management server domain
cloud-management server password
cloud-management unbinding-code
display cloud-management state
Cloud connection commands
cloud-management keepalive
Use cloud-management keepalive to set the keepalive interval for the local device to send keepalive packets to the H3C cloud server.
Use undo cloud-management keepalive to restore the default.
Syntax
cloud-management keepalive interval
undo cloud-management keepalive
Default
The keepalive interval is 180 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
interval: Specifies the keepalive interval in the range of 180 to 600 seconds.
Usage guidelines
If the device does not receive a response from the H3C cloud server within three keepalive intervals, the device sends a registration request to re-establish the cloud connection.
Examples
# Set the keepalive interval to 360 seconds.
<Sysname> system-view
[Sysname] cloud-management keepalive 360
cloud-management server domain
Use cloud-management server domain to configure the domain name of the H3C cloud server.
Use undo cloud-management server domain to restore the default.
Syntax
cloud-management server { domain domain-name [ vpn-instance vpn-instance-name ] [ source-ip ipv4-address ] | port port-number }
cloud-management server ipv6 domain domain-name [ vpn-instance vpn-instance-name ] [ source-ip ipv6-address ]
undo cloud-management [ ipv6 ] server domain
Default
The domain name of the H3C cloud server is not configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6: Specifies the IPv6 domain name of the H3C cloud server. To configure an IPv4 domain name of the H3C cloud server, do not specify this keyword.
domain-name: Specifies the domain name of the H3C cloud server, a case-sensitive string of 1 to 253 characters.
port port-number: Specifies the TCP port by its number for the device to authenticate to the cloud server, in the range of 1 to 65535. If you do not specify this option, the system uses the port number configured by using the cloud-management server port command.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance of the cloud server by its name for the device to connect to, a case-sensitive string of 1 to 31 characters. To use a cloud server that resides in the public network, do not specify this option.
source-ip ipv4-address: Specifies the source IPv4 address for the device to connect to the cloud server. The address must be an existing IPv4 address on the device. If you do not specify this option, the system uses the primary IPv4 address of the outgoing interface to establish a cloud connection.
source-ip ipv6-address: Specifies the source IPv6 address for the device to connect to the cloud server. The address must be an existing IPv6 address on the device. If you do not specify this option, the system uses the primary IPv6 address of the outgoing interface to establish a cloud connection.
Usage guidelines
Before you configure the domain name of the H3C cloud server, make sure a DNS server has been configured to translate the domain name.
If you execute the command multiple times, the most recent configuration takes effect.
Examples
# Configure the domain name of the H3C cloud server as example.com.
<Sysname> system-view
[Sysname] cloud-management server domain example.com
cloud-management server password
Use cloud-management server password to set the password for establishing cloud connections to the cloud server.
Use cloud-management server password to restore the default.
Syntax
cloud-management server password { cipher | simple } string
undo cloud-management server password
Default
No password is set for establishing cloud connections to the cloud server.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
cipher: Specifies the password in encrypted form.
simple: Specifies the password in plaintext form. For security purposes, the password specified in plaintext form will be stored in encrypted form.
string: Specifies the password. The plaintext form is a case-sensitive string of 1 to 63 characters. The encrypted form is a case-sensitive string of 1 to 117 characters.
Usage guidelines
After you change the password, the device terminates the cloud connections that have been established (if any) and uses the new password to establish cloud connections.
Examples
# Set the password for establishing cloud connections to the cloud server to 12345678TESTplat&! in plaintext format.
<Sysname> system-view
[Sysname] cloud-management server password simple 12345678TESTplat&!
cloud-management server port
Use cloud-management server port to specify the TCP port number used to establish cloud connections.
Use undo cloud-management server port to restore the default.
Syntax
cloud-management server port port-number
undo cloud-management server port
Default
TCP port number 443 is used to establish cloud connections.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
port-number: Specifies a TCP port number in the range of 1 to 65535.
Usage guidelines
After you change the port number, the device terminates the cloud connections that have been established and uses the new port number to establish cloud connections.
Examples
# Specify the TCP port number used to establish cloud connections as 80.
<Sysname> system-view
[Sysname] cloud-management server port 80
cloud-management unbinding-code
Use cloud-management unbinding-code to send the verification code for device unbinding to the Oasis server.
Syntax
cloud-management unbinding-code code
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
code: Specifies the verification code obtained from the Oasis server. The verification code is a case-sensitive string of 16 characters.
Usage guidelines
A device can be registered on the Oasis server by only one user.
To register a device that has been registered by another user, you need to take the following steps:
1. Obtain a verification code for device unbinding from the Oasis server.
2. Execute this command on the device to send the verification code to the Oasis server.
3. Register the device on the Oasis server.
Examples
# Send the verification code for device unbinding to the Oasis server.
[Sysname] cloud-management unbinding-code A6B9C3C2D5A8Z1S7
Related commands
cloud-management server domain
display cloud-management state
Use display cloud-management state to display cloud connection state information.
Syntax
display cloud-management state
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Examples
# Display cloud connection state information.
<Sysname> display cloud-management state
Cloud connection state : Established
Device state : Request_success
Cloud server address : 10.1.1.1
Cloud server domain name : example.com
Cloud server port : 443
Connected at : Wed Jan 27 14:18:40 2019
Duration : 00d 00h 02m 01s
Process state : Message received
Failure reason : N/A
Table 1 Command output
Field |
Description |
Cloud connection state |
Cloud connection state: Unconnected, Request, and Established. |
Device state |
Local device state: · Idle—In idle state. · Connecting—Connecting to the H3C cloud server. · Request_CAS_url—Sent a central authentication service (CAS) URL request. · Request_CAS_url_success—Requesting CAS URL succeeded. · Request_CAS_TGT—Sent a ticket granting ticket (TGT) request. · Request_CAS_TGT_success—Requesting TGT succeeded. · Request_CAS_ST—Sent a service ticket (ST) request. · Request_CAS_ST_success—Requesting ST succeeded. · Request_cloud_auth—Sent an authentication request. · Request_cloud_auth_success—Authentication succeeded. · Register—Sent a registration request. · Register_success—Registration succeeded. · Request—Sent a handshake request. · Request_success—Handshake succeeded. |
Cloud server address |
IP address of the H3C cloud server. |
Cloud server domain name |
Domain name of the H3C cloud server. |
Cloud server port |
TCP port number used to establish cloud connections. |
Connected at |
Time when the cloud connection was established. |
Duration |
Duration since the establishment of the cloud connection. |
Process state |
Cloud connection processing state: · DNS not parsed. · DNS parsed. · Message not sent. · Message sent. · Message not received. · Message received. |
Failure reason |
Cloud connection failure reason: · DNS parse failed. · Socket connection failed. · SSL creation failed. · Sending CAS url request failed. · Sending CAS TGT failed. · Sending CAS ST failed. · Sending cloud auth request failed. · Sending registration request failed. · Processing CAS URL response failed. · Processing CAS TGT response failed. · Processing CAS ST response failed. · Processing cloud auth response failed. · Processing registration response failed. · Sending handshake request failed. · Processing handshake failed. · Sending websocket request failed. · Processing websocket packet failed. |
reset cloud-management tunnel
Use reset cloud-management tunnel to re-establish the cloud connection to the H3C cloud server.
Syntax
reset cloud-management tunnel
Views
User view
Predefined user roles
network-admin
mdc-admin
Examples
# Re-establish the cloud connection to the H3C cloud server.
<Sysname> reset cloud-management tunnel