The attach as command allows you to log in to an AS from the parent.
This command can only be executed on a parent switch.
Parameter | Description | Value |
---|---|---|
name as-name | Specifies the name of an AS for login. |
The value must have an existing AS name. |
Usage Scenario
In addition to local login through a console port, you can log in to an AS from the parent. This login mode is supported in two service configuration modes: centralized mode and independent mode.
After you log in to an AS in centralized mode, you can configure only commands related to file management and service diagnosis for fault location.
After you log in to an AS in independent mode, you can use more commands to configure services on the AS.
Prerequisites
In centralized mode, an AS administrator profile has been bound to the AS, and an AS user name and password have been configured.
In independent mode, an AS user name and password have been configured in the uni-mng view using the independent-as-admin command.
Precautions
After an AS user name and password are configured, you need to enter the correct user name and password when logging in to an AS through the console port. When you log in to an AS from the parent using the attach as command, you can log in to the AS without entering the user name or password.
In versions earlier than V200R011C10, at most one VTY user can log in to an AS at a time. In V200R011C10 and later versions, at most four VTY users can log in to an AS at a time.
# In centralized mode, log in to the AS as1 from the parent.
<HUAWEI> system-view [HUAWEI] uni-mng [HUAWEI-um] as-admin-profile name profile_1 [HUAWEI-um-as-admin-profile_1] user asuser password Pwd@123456 [HUAWEI-um-as-admin-profile_1] quit [HUAWEI-um] as-group name group_1 [HUAWEI-um-as-group-group_1] as name as1 [HUAWEI-um-as-group-group_1] as-admin-profile profile_1 [HUAWEI-um-as-group-group_1] quit [HUAWEI-um] commit as all Info: Commiting the configuration will take a long time. Are you sure you want to commit the configuration? [Y/N]: y [HUAWEI-um] attach as name as1
# In independent mode, log in to the AS as1 from the parent. Before the login, the independent mode needs to be enabled on the fabric-port connected to the AS as1. The following uses a level-1 AS as the AS as1.
<HUAWEI> system-view [HUAWEI] uni-mng [HUAWEI-um] independent-as-admin user asuser password Pwd@123456 [HUAWEI-um] interface fabric-port 1 [HUAWEI-um-fabric-port-1] port connect independent-as [HUAWEI-um-fabric-port-1] quit [HUAWEI-um] attach as name as1