batch CLI 指令
使用 batch 指令可執行檔案中指定的多個指令。
語法
batch <filename.txt> -ssl
參數
- <filename.txt>
-
(必要。)此文字檔中包含一或多個指令,格式如下:
--commandName1 [commandParameters] --commandName2 [commandParameters]註: 僅在輸入檔中輸入指令名稱以及任何參數。請勿輸入完整的 java 指令,否則將收到錯誤。 - -ssl
- 如果已啟用 SSL (HTTPS),則為必要項目。
指令範例
batch todays_batch.txt
輸入檔範例
--viewLogicalLibraries
--viewIoStation
--viewAccessor
--viewRoles
--viewUsers
輸出範例
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