< Home

api call-home connect

Function

The api call-home connect command enables the call-home host connection.

The undo api call-home connect command disables the call-home host connection.

By default, the call-home host connection function is disabled.

Format

api call-home connect [ host hostname ]

undo api call-home connect [ host hostname ]

Parameters

Parameter

Description

Value

host hostname

Specifies the call-home host name.

The value is a string of 1 to 31 case-sensitive characters. Spaces are not supported.

The call-home host must already exist.

If no host name is specified, the connections of all configured call-home hosts are enabled or disabled.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the api call-home connect command only after configuring call-home hosts.

After the call-home host connection is enabled, if the connection fails, the device will try twice (totally three times). If the connection still fails, the device will initiate the connection again 3 minutes later.

Example

# Enable the connections of all call-home hosts.

<sysname> system-view
[sysname] api call-home connect
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >