"Browser User Interface (BUI)" on page 22
■
"Command Line Interface (CLI)" on page 33
■
Working with CLI Scripting
The CLI is designed to provide a powerful scripting environment for performing repetitive
tasks.
You can use Batching Commands or Scripting Commands (or some combination), but in any
case the automated infrastructure requires automated access to the appliance. This must be done
by user configuration, user authorizations, and setting SSH public keys using the CLI.
For information about configuring users, see the following:
"Configuring Users" on page 160
■
"User Authorizations" on page 178
■
"Setting SSH Public Keys (CLI)" on page 184
■
To use CLI scripting, use the following sections:
Using Batch Commands
■
Understanding the CLI Scripting Commands
■
Accessing the CLI Script Environment
■
Understanding the Built-in CLI Functions
■
Using the Run Function
■
Using the Get Function
■
Using the List Function
■
Using the Children Function
■
Using the Choices Function
■
Using the Functions for Generating Output
■
Understanding CLI Scripting Errors
■
Using Batch Commands
The simplest scripting mechanism is to batch appliance shell commands. For example, to
automatically take a snapshot called "newsnap" in the project "myproj" and the filesystem
"myfs", put the following commands in a file:
shares
select myproj
Working with CLI Scripting
About the Oracle ZFS Storage Appliance
43
Need help?
Do you have a question about the ZFS Storage Appliance and is the answer not in the manual?
Questions and answers