Using the DS CLI interactive command mode (history and reports)
Use the DS CLI interactive command mode when you must process multiple transactions that cannot be incorporated into a script. The interactive command mode provides a history function that makes repeating or checking prior command usage easy to do.
About this task
In addition to being able to enter DS CLI commands at the DS CLI command prompt, a history function provides a view of the last DS CLI commands that you used. You can also repeat any of the last commands more quickly than having to type out the entire command. The example at the end of this process shows how the history function works.
The Windows platform allows the user to retrieve prior commands by using the up arrow, but this is a feature of the Windows platform and is not built into the DS CLI. While other platforms might not allow the up arrow feature, all of the supported platforms have the history function described here.
Complete the following steps to use the DS CLI in the interactive command mode:
Procedure
Example
- Issue an exclamation mark (!) to display CLI commands that you used in
the current session. For example: dscli> ! results in a list of commands such
as the following
example:[4] lsarraysite -dev IBM.2107-1300771
[3] lsarray -dev IBM.2107-1300771
[2] lsextpool -dev IBM.2107-1300771
[1] lsextpool -dev IBM.2107-1300771 - Issue dscli> !1 to reissue the last command. Or, issue dscli> !3 to reissue command [3].