CM tunnel commands -- cloud-management keepalive

Use cloud-management keepalive to set the keepalive interval and the maximum number of keepalive attempts.

Use undo cloud-management-keepalive to restore the default.

Syntax

cloud-management keepalive interval time-interval times send-times

undo cloud-management keepalive

Default

The keepalive interval and the maximum number of keepalive attempts are 60 seconds and 3, respectively.

Views

CM tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval time-interval: Specifies the keepalive interval in the range of 1 to 600 seconds.

times send-times: Specifies the maximum number of keepalive attempts in the range of 1 to 10.

Usage guidelines

The device sends keepalive packets at the specified interval to the cloud server after the cloud management tunnel (CM tunnel) is established.

If the device fails to receive a response from the cloud server within the maximum number of keepalive attempts, the device sends a registration request to re-establish the tunnel.

Examples

# Set the keepalive interval and the maximum number of keepalive attempts to 100 seconds and 5, respectively.

<Sysname> system-view

[Sysname] interface CMTunnel 1

[Sysname-CMTunnel1] cloud-management keepalive interval 100 times 5

CM tunnel commands -- cloud-management server

Use cloud-management server to specify a cloud server.

Use undo cloud-management server to restore the default.

Syntax

cloud-management server { domain-name domain-name | ip ip-address }

undo cloud-management server

Default

No cloud server is specified.

Views

CM tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

domain-name domain-name: Specifies a cloud server by its domain name, a case-sensitive string of 1 to 255 characters.

ip ip-address: Specifies a cloud server by its IP address.

Usage guidelines

If you specify a cloud server by its domain name, make sure a DNS server is configured to translate the domain name.

Examples

# Specify the server with domain name abc.com as the cloud server.

<Sysname> system-view

[Sysname] interface CMTunnel 1

[Sysname-CMTunnel1] cloud-management server domain-name abc.com

# Specify the server with IP address 10.1.1.1 as the cloud server.

<Sysname> system-view

[Sysname] interface CMTunnel 1

[Sysname-CMTunnel1] cloud-management server ip 10.1.1.1

CM tunnel commands -- cloud-management source

Use cloud-management source to specify the source interface or source IP address for the device to connect to the cloud server.

Use undo cloud-management source to restore the default.

Syntax

cloud-management source { interface { interface-type interface-number } | ip ip-address } [ ssl ssl-policy-name ]

undo cloud-management source

Default

The source interface or source IP address for the device to connect to the cloud server is not configured.

Views

CM tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interface interface-type interface-number: Specifies an interface by its interface type and interface number.

ip ip-address: Specifies an IP address.

ssl ssl-policy-name: Specifies an SSL client policy name, a case-insensitive string of 1 to 31 characters. For more information about SSL client policies, see Security Configuration Guide.

Usage guidelines

Follow these guidelines when you specify the source interface or source IP address for the device to connect to the cloud server:

· Make sure the source interface is in up state and is configured with a primary IP address. The primary IP address is used as the source IP address.

· Make sure the source IP address exists and the interface that uses the IP address is in up state.

· If you configure this command multiple times, the most recent configuration takes effect.

Examples

# Specify the source IP address for the device to connect to the cloud server as 192.168.34.2.

<Sysname> system-view

[Sysname] interface cmtunnel 1

[Sysname-CMTunnel1] cloud-management source ip 192.168.34.2

CM tunnel commands -- display cloud-management cmtunnel

Use display cloud-management cmtunnel to display CM tunnel information.

Syntax

display cloud-management cmtunnel interface-number

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Views

Any view

Parameters

cmtunnel interface-number: Specifies a CM tunnel interface by its number in the range of 0 to 4093.

Examples

# Display information about the CM tunnel with CM tunnel interface CMTunnel 1.

<Sysname> display cloud-management cmtunnel1

CMTunnel1

State : Idle

Keepalive time-interval : 600(s)

Keepalive send-times : 5

Server information : abc.com

Source information : 192.168.34.2

SSL policy : abc

Table 1 Command output

Field | Description
State | CM tunnel status: · Idle—Not connected. · Register—Tunnel registration. · Request—Tunnel request. · Established—Tunnel established.
Keepalive time-interval | Keepalive interval.
Keepalive send-times | Maximum number of keepalive attempts.
Server information | Domain name or IP address of the cloud server.
Source information | Source interface or source IP address that is used to connect the device to the cloud server.
SSL policy | Name of the SSL client policy.

CM tunnel commands -- interface cmtunnel

Use interface cmtunnel to create a CM tunnel interface and enter its view.

Use undo interface cmtunnel to remove a CM tunnel interface.

Syntax

interface cmtunnel interface-number

undo interface cmtunnel interface-number

Default

No CM tunnel interfaces exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-number: Specifies a CM tunnel interface number in the range of 0 to 4093.

Usage guidelines

A device can have only one CM tunnel interface. To create a new CM tunnel interface, you must delete the original CM tunnel interface first.

A CM tunnel can be established only when the CM tunnel interface is up. If the CM tunnel interface goes down after the CM tunnel is established, the CM tunnel becomes unavailable.

Examples

# Create CM tunnel interface CMTunnel 1023 and enter its view.

<Sysname> system-view

[Sysname] interface CMTunnel 1023

[Sysname-CMTunnel1023]