';
$blockBody['innotci'] .= '
Library | Slot | Barcode/Vol Name | Usage | Status/Access | Library Access | Utilisation | Reclaim | Last Read | Last Write |
';
$blockBody['innotci'] .= sprintf('%s |
',_('The following volumes are in a library, but NOT checked in.'));
$counter = 0;
foreach ($libraries->libVolumes(false) as $library => $volumes) {
foreach ($volumes as $element => $volume) {
$blockBody['innotci'] .= sprintf('%s | %s | %s | %s | %s/%s | %s | %s%% | %s%% | %s | %s |
',
$counter++%2 ? 'even' : 'odd',
isset($volume->lib['name']) ? $volume->lib['name'] : 'Unknown LIB',
isset($volume->location) ? $volume->location : $volume->lib['slot'],
$volume->name,
$volume->stgpool,
$volume->status['volume'],
$volume->access,
isset($volume->lib['access']) ? $volume->lib['access'] : 'N/A',
$volume->utilisation,
$volume->reclaim,
tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime'));
}
}
$blockBody['innotci'] .= ' |
';
# The following PRIMARY VOLUMES not in the library.
$blockBody['innotci'] .= sprintf('%s |
',_('The following PRIMARY pool volumes are NOT checked in a library.'));
$counter = 0;
foreach ($libvolumes->primaryNotInLib() as $volume) {
$blockBody['innotci'] .= sprintf('%s | %s | %s | %s | %s/%s | %s | %s%% | %s%% | %s | %s |
',
$counter++%2 ? 'even' : 'odd',
'N/A',
isset($volume->location) ? $volume->location : 'InLIB',
$volume->getName(),
$volume->stgpool,
$volume->status['volume'],
$volume->access,
'N/A',
$volume->utilisation,
$volume->reclaim,
tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime'));
}
$blockBody['innotci'] .= ' |
';
# The following COPY VOLUMES in the library can be checked out.
$blockBody['innotci'] .= sprintf('%s |
',_('The following COPY pool volumes can be checked out of the library(s).'));
$counter = 0;
foreach ($libvolumes->libCopyVolumes(true) as $volume) {
$blockBody['innotci'] .= sprintf('%s | %s | %s | %s | %s/%s | %s | %s%% | %s%% | %s | %s |
',
$counter++%2 ? 'even' : 'odd',
$volume->lib['name'],
isset($volume->location) ? $volume->location : 'InLIB',
$volume->getName(),
$volume->stgpool,
$volume->status['volume'],
$volume->access,
'N/A',
$volume->utilisation,
$volume->reclaim,
tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime'));
}
$blockBody['innotci'] .= ' |
';
# The following PRIMARY VOLUMES not in the library.
$blockBody['innotci'] .= sprintf('%s |
',_('The following COPY pool volumes are not checked in a library.'));
$counter = 0;
foreach ($libvolumes->libCopyVolumes(false) as $volume) {
$blockBody['innotci'] .= sprintf('%s | %s | %s | %s | %s/%s | %s | %s%% | %s%% | %s | %s |
',
$counter++%2 ? 'even' : 'odd',
'N/A',
isset($volume->location) ? $volume->location : 'InLIB',
$volume->getName(),
$volume->stgpool,
$volume->status['volume'],
$volume->access,
'N/A',
$volume->utilisation,
$volume->reclaim,
tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime'));
}
$blockBody['innotci'] .= '';
# End
render_page($blockTitle,$blockBody);
?>