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

S12700 V200R013C00 Configuration Guide - Basic Configuration

This document describes the configurations of Basic, including CLI Overview, EasyDeploy Configuration, USB-based Deployment Configuration, Logging In to a Device for the First Time, CLI Login Configuration, Web System Login Configuration, File Management, Configuring System Startup, ISSU Configuration, BootLoad Menu Operation.
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

You can make a script using either of the following methods:

  • Making a script online: Run the batch-cmd begin command to start batch online editing of commands to save them as a script. After entering the commands, press Ctrl+C to exit the editing mode. If you run this command again, the edited commands will be cleared.

    NOTE:

    A script made online is saved in the memory of the Commander. If the Commander restarts, all the commands edited online are cleared.

  • Making a script offline: Edit commands to be executed to a batch processing file one by one. The batch processing file can be edited in .txt format. When editing the file, ensure that one command occupies one line and change the file name extension to .txt or .bat.

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.

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. Then, 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 format. Save it in the *.txt or *.bat format and upload the script file to the root directory of the Commander.

    NOTE:
    • Scripts cannot contain Chinese characters.
    • For security purposes, scripts made offline should not contain password information.
    • If a large number of commands need to be configured, you are advised to make a script offline. If you want to make a script online, ensure that the entered information is correct because the entered information cannot be modified or viewed. Therefore, if you enter an incorrect value, you can only exit and enter the editing mode again.

  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.

Verifying the Configuration

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

Translation
Download
Updated: 2019-04-08

Document ID: EDOC1100065643

Views: 10933

Downloads: 35

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