< Home

switch cluster

Function

The switch cluster command switches the CLI among cluster members.

Format

switch cluster { to master | node node-id }

Parameters

Parameter Description Value
to master

Switches to the CLI of the cluster master.

-

node node-id

Specifies the ID of a cluster member.

The value is an integer ranging from 1 to 8.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Prerequisites

Before the switch cluster command is run, ensure that cluster members use the same SSH user name and password and the SSH login function has been enabled on the negotiation interface. The configuration procedure is as follows:
  1. Enable SSH and configure the permission on the SSH service for administrator admin.

    <sysname> system-view
    [sysname] stelnet server enable
    [sysname] ssh client first-time enable
    [sysname] ssh user admin service-type stelnet
    [sysname] ssh user admin authentication-type password
    [sysname] aaa
    [sysname-aaa] manager-user admin
    [sysname-aaa-manager-user-admin] service-type web ssh terminal
    [sysname-aaa-manager-user-admin] quit
    [sysname-aaa] quit
  2. Enable SSH login on the negotiation interface (Eth-Trunk 1 in this example).

    [sysname] interface Eth-Trunk 1
    [sysname-Eth-Trunk1] service-manage ssh permit

Usage Scenarios

The cluster provides unified configuration management. The cluster supports the CLI switching between the master and members.

Precautions

The cluster does not support the CLI switching between cluster members.

Example

# Switch the master CLI to the CLI of cluster member 2.

C_No3_M<sysname> switch cluster node 2

After the switching, the CLI of cluster member 2 is displayed.

C_No2_S<sysname> 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >