EasyManuals Logo

Oracle ZFS Storage Appliance User Manual

Oracle ZFS Storage Appliance
650 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #52 background imageLoading...
Page #52 background image
Using the Choices Function
set('pool', pools[p]);
projects = list();
for (i = 0; i < projects.length; i++) {
run('select ' + projects[i]);
shares = list();
for (j = 0; j < shares.length; j++) {
run('select ' + shares[j]);
share = pools[p] + ':' + projects[i] + '/' + shares[j];
printf(fmt, share, get('space_data'),
get('space_available'));
run('cd ..');
}
run('cd ..');
}
}
2.
Here is the output of running the script:
SHARE USED AVAILABLE
pond:projectA/fs1 31744 566196178944
pond:projectA/fs2 31744 566196178944
pond:projectB/lun1 21474836480 587670999040
puddle:deptA/share1 238475 467539219283
puddle:deptB/share1 129564 467539219283
puddle:deptB/share2 19283747 467539219283
Using the Functions for Generating Output
Reporting state on the system requires generating output. Scripts have several built-in functions
made available to them to generate output:
TABLE 10
Built-in Functions for Generating Output
Function Description
dump
Dumps the specified argument to the terminal, without
expanding embedded newlines. Objects will be displayed
in a JSON-like format. Useful for debugging.
print
Prints the specified object as a string, followed by a
newline. If the object does not have a toString method,
it will be printed opaquely.
printf
Like C's printf(3C), prints the specified arguments
according to the specified formatting string.
52 Oracle ZFS Storage Appliance Administration Guide, Release OS8.6.x • September 2016

Table of Contents

Other manuals for Oracle ZFS Storage Appliance

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Oracle ZFS Storage Appliance and is the answer not in the manual?

Oracle ZFS Storage Appliance Specifications

General IconGeneral
Connectivity10GbE, 40GbE, InfiniBand, Fibre Channel
ProtocolsNFS, SMB, iSCSI, Fibre Channel, HTTP
Operating SystemOracle Solaris
Data Protectionsnapshots, clones, remote replication
Data ReductionInline compression, deduplication
High AvailabilityRedundant hardware components (controllers, power supplies, fans). Automatic failover between controllers. Hot-swappable drives and components. Cluster configurations for increased availability and scalability.
Management InterfaceWeb-based GUI, CLI, REST API
Storage TypeHybrid (SSD + HDD), All-Flash
Storage CapacityUp to several petabytes
EncryptionAES-256 encryption at rest

Related product manuals