メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

PDF

Batch mode

To execute a sequence of multiple commands, create and run a batch file. A batch file is an unformatted text file that contains two or more commands. Store the batch file in the home directory.

Use the vi editor or any other editor to create the batch file, then use the batch command to run the file. To run a series of commands in batch mode (non-interactive processing), use the batch command. OS10 automatically commits all commands in a batch file — you do not have to enter the commit command.

If a command in the batch file fails, batch operation stops at that command. The remaining commands are not executed.

  • Create a batch file — for example, b.cmd — on a remote device by entering a series of commands.
    interface ethernet 1/1/1
    no shutdown
    no switchport
    ip address 172.17.4.1/24
  • Copy the command file to the home directory on the switch.
    OS10# copy scp://os10user:os10passwd@10.11.222.1/home/os10/b.cmd home://b.cmd
    
    OS10# dir home
      
    Directory contents for folder: home
    Date (modified)        Size (bytes)  Name
    ---------------------  ------------  ------
    2017-02-15T19:25:35Z   77            b.cmd                                                                           
    ...
  • Execute the batch file using the batch /home/username/filename command in EXEC mode.
    OS10# batch /home/admin/b.cmd
    Jun 26 18:29:12 OS10 dn_l3_core_services[723]: Node.1-Unit.1:PRI:notice [os10:trap], 
    %Dell EMC (OS10) %log-notice:IP_ADDRESS_ADD: IP Address add is successful. 
    IP 172.17.4.1/24 in VRF:default added successfully
  • (Optional) Verify the new commands in the running configuration.
    OS10# show running-configuration interface ethernet 1/1/1
    !
    interface ethernet1/1/1
    no shutdown
    no switchport
    ip address 172.17.4.1/24

このコンテンツを評価する

正確
有益
分かりやすい
この記事は役に立ちましたか?
0/3000 characters
  1~5個の星の数で評価してください。
  1~5個の星の数で評価してください。
  1~5個の星の数で評価してください。
  この記事は役に立ちましたか?
  コメントでは、以下の特殊文字は利用できません: <>()\