No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Basic Configuration

S9300, S9300E, and S9300X V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Implementing a Batch Configuration Using the Commander

Implementing a Batch Configuration Using the Commander

Context

To implement a batch configuration of clients on a network supporting EasyDeploy, edit commands to be executed, save them as a script, and deliver the edited commands to clients using the Commander.

You can make scripts in online or offline mode. If a script contains many commands, the offline mode is recommended. If you want to use the online mode, ensure that your inputs are correct. The commands entered in online mode cannot be modified or queried. If an error occurs in online mode, you need to exit from the editing mode and then enter the editing mode to enter all the commands once again.

Pre-configuration Tasks

Before implementing a batch configuration using the Commander, complete the following tasks:

Procedure

  1. Create a group if you want to deliver commands to a group.

    1. Run the system-view command to enter the system view.

    2. Run the easy-operation command to enter the Easy-Operation view.

    3. Perform either of the following steps based on the group type:

      • Configure a matching rule for a built-in group.

        1. Run the group build-in device-type command to create a built-in group and enter the group view.

      • Configure a matching rule for a customized group.
        1. Run the group custom { mac-address | esn | ip-address | model | device-type } group-name command to create a customized group and enter the group view.

        2. Run the match { mac-address mac-address [ mac-mask | mac-mask-length ] | esn esn | ip-address ip-address [ ip-mask | ip-mask-length ] | model model | device-type device-type } command to define the matching rule for the customized group.

  2. Edit commands and save them as a script.

    • Make a script online.

      1. Run the system-view command to enter the system view.

      2. Run the easy-operation command to enter the Easy-Operation view.

      3. Run the batch-cmd begin command to enter the batch command editing mode.

        • Only one network administrator is allowed to edit commands online at one time.
        • If no operation is performed in the batch command editing mode within 30 seconds, the system automatically exits from the editing mode displays the Easy-Operation view. The complied commands are saved in the script.

      4. Edit commands in the script.

        • The maximum length of a command (including the incomplete command) to be entered is 510 characters. If the command contains more than 510 characters, it cannot be saved in the script.

        • A script can contain a maximum of 200 commands.

        • After you enter a command, press Enter to confirm the input. After that, you cannot modify the inputted command.

      5. Press Ctrl+C to exit the batch command editing mode.

    • Make a script offline.

      To make a script offline, add commands to be executed to a batch processing file one by one. The batch processing file can be edited in .txt mode. Save it in the *.txt or *.bat format and upload the script file to the root directory of the Commander.

      The format of the offline script must be the same as the format of a script made online. Scripts cannot contain Chinese characters. To ensure security, scripts made offline should not contain password information.

  3. Deliver commands.

    • Run the execute [ script-file ] to client { client-id1 [ to client-id2 ] }&<1–10> command to deliver commands to a specified client.
    • Run the execute [ script-file ] to client all command to deliver commands to all clients.
    • Run the execute [ script-file ] to group { name group-name }&<1–10> command to deliver commands to a specified group.
    • Run the execute [ script-file ] to group all command to deliver commands to all groups.

    If script-file is not specified, the Commander delivers a script made online. If script-file is specified, the Commander delivers a specific script made offline.

    Command execution results are saved in the memory of clients. If the script contains commands used to clear the client memory, such as the reboot command, you cannot run the display easy-operation batch-cmd result command to check the command execution result after the commands are delivered to clients.

Verifying the Configuration

  • Run the display easy-operation batch-cmd result command to check the command execution results.

Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000178413

Views: 68631

Downloads: 109

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next