'; $blockBody['volinfo'] .= ''; # The following COPY VOLUMES in the library can be checked out. if (count($volumes->libCopyVolumes(true))) { $blockBody['volinfo'] .= sprintf('',_('The following COPY pool volumes can be checked out of the library(s).')); $counter = 0; foreach ($volumes->libCopyVolumes(true) as $volume) { $blockBody['volinfo'] .= sprintf('', $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['volinfo'] .= ''; } # Non-Read/Write Volumes that need to be fixed. if (count($volumes->nonReadWriteVolumes())) { $blockBody['volinfo'] .= sprintf('',_('NON READ/WRITE volumes that need to be addressed.')); $counter = 0; foreach ($volumes->nonReadWriteVolumes() as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $volume->lib['name'] : ' ', isset($volume->location) ? $volume->location : 'InLIB', $volume->name, $volume->stgpool, $volume->status['volume'], $volume->access, 'N/A', $volume->utilisation, $volume->reclaim, tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime')); } $blockBody['volinfo'] .= ''; } # Non-Read/Write Volumes that need to be fixed. if (count($volumes->reclaimVolumes())) { $blockBody['volinfo'] .= sprintf('',_('The following volumes should be RECLAIMed (automatically).')); $counter = 0; foreach ($volumes->reclaimVolumes() as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $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['volinfo'] .= ''; } # Following volumes have had errors. if (count($volumes->errorVolumes())) { $blockBody['volinfo'] .= sprintf('',_('The following volumes have had ERRORS.')); $counter = 0; foreach ($volumes->errorVolumes() as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $volume->lib['name'] : ' ', isset($volume->location) ? $volume->location : 'InLIB', $volume->name, $volume->stgpool, $volume->status['volume'], $volume->access, 'N/A', $volume->utilisation, $volume->reclaim, tsmDate($volume->last['read'],'notime'),$volume->error['read'], tsmDate($volume->last['write'],'notime'),$volume->error['write']); } $blockBody['volinfo'] .= ''; } # Following volumes have not been read/written to for a long time. if (count($volumes->staleVolumes($app['server']->getValue('system','tapeage')))) { $blockBody['volinfo'] .= sprintf('',sprintf(_('The following volumes have NOT been read/written to for %s days.'),$app['server']->getValue('system','tapeage'))); $counter = 0; foreach ($volumes->staleVolumes($app['server']->getValue('system','tapeage')) as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $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['volinfo'] .= ''; } # Following volumes are empty or pending. if (count($volumes->pendingVolumes()) || count($volumes->emptyVolumes())) { $blockBody['volinfo'] .= sprintf('',_('The following volumes are either EMPTY or PENDING.')); $counter = 0; foreach ($volumes->pendingVolumes() as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $volume->lib['name'] : ' ', isset($volume->location) ? $volume->location : 'InLIB', $volume->name, $volume->stgpool, tsmDate($volume->pending['start'],'notime'),tsmDate($volume->pending['end'],'notime'), $volume->status['volume'], $volume->access, 'N/A', $volume->utilisation, $volume->reclaim, tsmDate($volume->last['read'],'notime'),tsmDate($volume->last['write'],'notime')); } $counter = 0; foreach ($volumes->emptyVolumes() as $volume) { $blockBody['volinfo'] .= sprintf('', $counter++%2 ? 'even' : 'odd', isset($volume->lib['name']) ? $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['volinfo'] .= '
LibrarySlotBarcode/Vol NameUsageStatus/AccessLibrary AccessUtilisationReclaimLast ReadLast Write
%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
 
%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
 
%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
 
%s
%s%s%s%s%s/%s%s%s%%%s%%%s (%s)%s (%s)
 
%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
 
%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
%s%s%s%s%s/%s%s%s%%%s%%%s%s
'; # End render_page($blockTitle,$blockBody); ?>