keepalive-interval

Function

The keepalive-interval command sets a keepalive interval for the callhome keepalive function.

The undo keepalive-interval command restores the keepalive interval to the default value.

By default, the keepalive interval is 0, that is, the keepalive function is disabled.

Format

keepalive-interval intervalTime

undo keepalive-interval

Parameters

Parameter Description Value
intervalTime

Specify the interval value in minutes.

The value is an integer ranging from 0 to 60, in minutes. The default value is 0.

Views

Endpoint view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

If an NMS does not support automatic device discovery, the NMS cannot manage devices in a timely manner. To address this issue, configure the callhome function. After the callhome function is enabled on a device, the device proactively sends a NETCONF connection request to the NMS upon login and establishes a NETCONF connection with the NMS. In this manner, users can manage the device through the NMS in a timely manner.

If you want to keep the connection alive, run the keepalive-interval command to set a keepalive interval. The server sends a keepalive packet to the client at the interval specified by intervalTime in the command.

Example

# Set a callhome keepalive interval.
<HUAWEI> system
Enter system view, return user view with return command.
[~HUAWEI] netconf
[~HUAWEI-netconf] callhome cc
[*HUAWEI-netconf-callhome-cc] endpoint ee
[*HUAWEI-netconf-callhome-cc-endpoint-ee] keepalive-interval 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >