Oracle ZS4-4 Manuel D'entretien page 344

Masquer les pouces Voir aussi pour ZS4-4:
Table des Matières

Publicité

Exemple : sélection du type de périphérique
if (err.code != EAKSH_ENTITY_BADSELECT)
throw (err);
}
}
}, {
step: 'Finding disks of specified type',
execute: function (params) {
/*
* In this step, we will iterate over all chassis, and for
* each chassis iterates over all disks in the chassis,
* looking for disks that match the specified type.
*/
var chassis, name, disks;
var i, j;
run('cd /');
run('maintenance hardware');
chassis = list();
params.disks = [];
for (i = 0; i < chassis.length; i++) {
run('select ' + chassis[i]);
name = get('name');
run('select disk');
disks = list();
for (j = 0; j < disks.length; j++) {
run('select ' + disks[j]);
if (get('use') == params.type) {
params.disks.push(name + '/' +
}
run('cd ..');
}
run('cd ../..');
}
if (params.disks.length === 0)
throw ('No ' + params.type + ' disks found');
run('cd /');
}
}, {
step: 'Creating worksheet',
execute: function (params) {
/*
* In this step, we're ready to actually create the worksheet
* itself: we have the disks of the specified type and
* we know that we can create the worksheet. Note that we
* create several datasets: first, I/O bytes broken down
344
Manuel d'entretien client des systèmes Oracle ZFS Storage Appliance, version 2013.1.3.0 • Décembre 2014
get('label'));

Publicité

Table des Matières
loading

Produits Connexes pour Oracle ZS4-4

Ce manuel est également adapté pour:

Zs3-4Zs3-27420732071207 20 série

Table des Matières