EasyManua.ls Logo

Oracle ZFS Storage Appliance

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
Loading...
Using the Children Function
properties: {
advanced_analytics: false,
session_timeout: 15,
login_screen: 'status/dashboard',
locale: 'C'
}
}, {
name: 'exceptions',
list: [{
name: 'auth-000',
properties: {
allow_configure: false,
scope: 'alert'
}
}, {
name: 'auth-001',
properties: {
allow_workgroup: false,
allow_domain: false,
name: '*',
scope: 'ad'
}
}]
}]
}]
Using the Children Function
Even in a context with static children, it can be useful to iterate over those children
programmatically. This can be done by using the children function, which returns an array of
static children.
1.
For example, here's a script that iterates over every service, printing out the
status of the service:
configuration services
script
var svcs = children();
for (var i = 0; i < svcs.length; ++i) {
run(svcs[i]);
try {
printf("%-10s %s\n", svcs[i], get('<status>'));
} catch (err) { }
run("done");
50 Oracle ZFS Storage Appliance Administration Guide, Release OS8.6.x • September 2016

Table of Contents

Other manuals for Oracle ZFS Storage Appliance

Related product manuals