batch CLI command
Use the batch command to run multiple commands specified in a file.
Syntax
batch <filename.txt> -ssl
Parameters
- <filename.txt>
-
(Required.) A text file containing one or more commands, in the following format:
--commandName1 [commandParameters] --commandName2 [commandParameters]
Note: Enter only the command name and any parameters in the input file. Do not enter the full java command or you will receive an error. - -ssl
- Required if SSL (HTTPS) is enabled.
Example command
batch todays_batch.txt
Example input file
--viewLogicalLibraries
--viewIoStation
--viewAccessor
--viewRoles
--viewUsers
Example output
Name, Type, Assigned Cartridges, Virtual I/0 cartridges, Drives, Encryption Method, Queued Exports, VOLSER Reporting (6/8 characters)
GVGNFLOW, 3592, 0, 0, 0, No, Hide, 6
Library1, 3592, 0, 0, 0, No, Show, 6
Volume Serial, Logical Library, Element Address, Media Type, Location(F,C,R), Encryption
M000NTJL, Logical Library 1, 1046, JAG, I/O Slot(F1,C5,R4,T1), Not Encrypted
M001NTJL, Logical Library 1, 1294, JAG, I/O Slot(F1,C6,R29,T0), Not Encrypted
Availability
, Accessor A
Accessor, OK - Online
Gripper 1, OK - Online
Gripper 2, OK - Online
Usage Statistics
, Accessor A Component
Pivots, 267
Gripper 1 gets, 104
Gripper 1 puts, 103
Gripper 2 gets, 46
Gripper 2 puts, 46
Bar code scans, 5724
X travel (meters), 86
Y travel (meters), 114
Role, Mapped users
Administrator, 12
Superuser, 0
Service, 1
Monitor, 1
Name, Locked, State, Role, Email, Last login
jecervan, , Disconnected, Administrator, jecervan@mx1.ibm.com,
service, , Disconnected, Service, service@service.com,
temporal, , Disconnected, Administrator, , lunes, noviembre 25, 2013, 09:40:22 AM CST