Function
The command autobat is used to execute the CLI command scripts.
Format
autobat -i Host IP address -u user name -p password -f file
Parameters
Keyword and Value Description Default Value
-i Host IP address File Transfer Protocol (FTP)
Server IP address. It is
requested that the FTP server
can access the storage
network.
None.
-u user name The user name of the FTP
server.
None.
-p password The password of the FTP
server.
None.
-f file The path where the batch file
is stored on the FTP server,
and the file name.
None.
Modes
Normal mode.
Level
Super administrator level and administrator level.
Usage Guidelines
When using this command, note the following items:
l One line is for one command only.
l Commands such as chgpasswd that require manual entering the parameter cannot be used.
Example
Execute the cmdfile script. The IP address of the FTP server is 10.10.10.1. The user name is
root, and the password is 123456. The batch process file, whose name is cmdfile, is stored in
the path /home/ISM/ on the FTP server.
OceanStor: admin> autobat -i 10.10.10.1 -u root -p 123456 -f /home/ISM/cmdfile
Lun ID Name Status
0 LUNXX fault
Raid Group ID Name Level Status
0 RAIDXX 10 fault
OceanStor S2600 Storage System
Command Reference 3 Basic Operation Commands
Issue 07 (2010-05-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-5