2011-06-24 01:27:21 +00:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
2011-06-26 12:20:12 +00:00
|
|
|
<td class="head" colspan="2">Information for this Library</td>
|
2011-06-24 01:27:21 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 40%;">Name</td>
|
2011-06-24 23:46:26 +00:00
|
|
|
<td style="width: 60%;" class="data"><?php printf('%s (%s)',$lo->display('LIBRARY_NAME'),$slots->ProductId); ?></td>
|
|
|
|
</tr>
|
2011-06-24 01:27:21 +00:00
|
|
|
<tr>
|
|
|
|
<td>Serial Number</td>
|
|
|
|
<td class="data"><?php echo $lo->display('LIBRARY_SERIAL'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Type</td>
|
|
|
|
<td class="data"><?php echo $lo->display('LIBRARY_TYPE'); ?></td>
|
|
|
|
</tr>
|
2011-06-24 23:46:26 +00:00
|
|
|
<tr>
|
|
|
|
<td>Drives</td>
|
|
|
|
<td class="data"><?php echo $slots->Drives; ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Slots/Changers</td>
|
2011-06-26 12:20:12 +00:00
|
|
|
<td class="data"><?php printf('%s/%s',$slots->Slots-$slots->Changers,$slots->Changers); ?></td>
|
2011-06-24 23:46:26 +00:00
|
|
|
</tr>
|
2011-06-24 01:27:21 +00:00
|
|
|
<tr>
|
|
|
|
<td>Shared</td>
|
|
|
|
<td class="data"><?php echo $lo->display('SHARED'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>LAN Free</td>
|
|
|
|
<td class="data"><?php echo $lo->display('LANFREE'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Auto Label</td>
|
|
|
|
<td class="data"><?php echo $lo->display('AUTOLABEL'); ?></td>
|
|
|
|
</tr>
|
2011-06-26 12:20:12 +00:00
|
|
|
<tr>
|
|
|
|
<td>Paths</td>
|
|
|
|
<td>
|
|
|
|
<table style="width: 100%;">
|
|
|
|
<?php $i=0; foreach ($lo->PATH->find_all() as $po) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td><?php echo $po->display('SOURCE_NAME'); ?></td>
|
|
|
|
<td><?php echo $po->display('SOURCE_TYPE'); ?></td>
|
|
|
|
<td><?php echo $po->display('DESTINATION_TYPE'); ?></td>
|
|
|
|
<td><?php echo $po->display('DEVICE'); ?></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td style="width: 100%; vertical-align: top;" rowspan="2">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="10">Library Volume Summary</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 40%;" colspan="2">Empty Slots</td>
|
|
|
|
<td style="width: 60%;" class="data" colspan="8"><?php echo $lo->numemptyslot(); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">Not Checked In</td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data" colspan="8"><?php echo count($lo->notcheckedinvol()); ?></td>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">Scratch</td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data" colspan="8"><?php echo count($lo->scratchvol()); ?></td>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">Read Only</td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data" colspan="8"><?php echo count($lo->readonlyvol()); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-11-26 05:57:18 +00:00
|
|
|
<td colspan="2">¹ Stale Storage Pool Volumes (<span class="data"><?php echo Kohana::$config->load('config')->tsmtapeage; ?></span> days)</td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data" colspan="8"><?php echo count($lo->stalevol()); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">² Removable Volumes</td>
|
|
|
|
<td class="data" colspan="8"><?php echo count($lo->removablelibvol()); ?></td>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="10">Storage Pool Volumes for this Library</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">Storage Type</td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<?php foreach (array('IN','OUT') as $inout) { ?>
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmvolstatus as $status) { ?>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="right"><?php printf('%s: %s',$inout,$status); ?></td>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td class="data" colspan="2">DB VOLS</td>
|
|
|
|
<?php foreach (array('IN','OUT') as $inout) { ?>
|
|
|
|
<td class="data-right"><?php echo count($lo->dbvolsloc($inout)); ?></td>
|
|
|
|
<td colspan="3"> </td>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php $i=0; foreach (Kohana::$config->load('config')->tsmdbtypes as $type) { ?>
|
2011-06-27 04:37:11 +00:00
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td> </td>
|
|
|
|
<td><?php echo $type; ?></td>
|
|
|
|
<?php foreach (array('IN','OUT') as $inout) { ?>
|
|
|
|
<td class="right"><?php echo count($lo->dbvolstype($inout,$type)); ?></td>
|
|
|
|
<td colspan="3"> </td>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
|
2011-06-26 12:20:12 +00:00
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td class="data" colspan="2"><?php echo $type; ?></td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<?php foreach (array('IN','OUT') as $inout) { ?>
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmvolstatus as $status) { ?>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data-right"><?php echo count($lo->volstype($type,$inout,$status)); ?></td>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<?php foreach ($lo->storagepoolstype($type) as $spo) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td> </td>
|
|
|
|
<td><?php echo $spo; ?></td>
|
2011-06-27 04:37:11 +00:00
|
|
|
<?php foreach (array('IN','OUT') as $inout) { ?>
|
2012-11-26 05:57:18 +00:00
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmvolstatus as $status) { ?>
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="right"><?php echo count($spo->libvolstype($inout,$status)); ?></td>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
2011-06-24 01:27:21 +00:00
|
|
|
</table>
|
|
|
|
</td>
|
2011-06-26 12:20:12 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2011-06-24 01:27:21 +00:00
|
|
|
<td style="width: 50%; vertical-align: top;">
|
2011-06-24 23:46:26 +00:00
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="5">Drives in this Library</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Name</td>
|
|
|
|
<td>Serial Number</td>
|
|
|
|
<td>Online</td>
|
|
|
|
<td>State</td>
|
|
|
|
<td>Volume</td>
|
|
|
|
</tr>
|
|
|
|
<?php $i=0;foreach ($lo->DRIVE->find_all() as $do) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td class="data"><?php echo $do->display('DRIVE_NAME'); ?></td>
|
|
|
|
<td class="data"><?php echo $do->display('DRIVE_SERIAL'); ?></td>
|
|
|
|
<td class="data"><?php echo $do->display('ONLINE'); ?></td>
|
|
|
|
<td class="data"><?php echo $do->display('DRIVE_STATE'); ?></td>
|
|
|
|
<td class="data"><?php echo $do->display('VOLUME_NAME'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php foreach ($do->PATH->find_all() as $po) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td> </td>
|
|
|
|
<td><?php echo $po->display('SOURCE_NAME'); ?></td>
|
|
|
|
<td><?php echo $po->display('SOURCE_TYPE'); ?></td>
|
|
|
|
<td><?php echo $po->display('DESTINATION_TYPE'); ?></td>
|
|
|
|
<td><?php echo $po->display('DEVICE'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|
2011-06-24 01:27:21 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 100%; vertical-align: top;" colspan="2">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="5">Volumes in this Library</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Barcode</td>
|
|
|
|
<td>Usage</td>
|
|
|
|
<td>Status/Access</td>
|
|
|
|
<td>Utilisation</td>
|
|
|
|
<td>Reclaim</td>
|
|
|
|
<td>Last Read</td>
|
|
|
|
<td>Last Write</td>
|
2011-06-26 12:20:12 +00:00
|
|
|
<td>Slot</td>
|
|
|
|
<td>Library Access</td>
|
2011-06-24 01:27:21 +00:00
|
|
|
</tr>
|
|
|
|
<?php $i=0; foreach ($slots as $slot) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
2011-06-27 04:37:11 +00:00
|
|
|
<td class="data"><?php echo HTML::nbsp($slot->barcodelabel().($slot->LIBVOLUME->VOLUME->recycle() ? ' ¹' : '').($slot->LIBVOLUME->removable() ? ' ²' : '')); ?></td>
|
2011-06-24 01:27:21 +00:00
|
|
|
<td class="data"><?php echo $slot->LIBVOLUME->volusage(); ?></td>
|
|
|
|
<td class="data"><?php echo HTML::nbsp($slot->LIBVOLUME->status()); ?></td>
|
|
|
|
<td class="data"><?php echo $slot->LIBVOLUME->VOLUME->display('PCT_UTILIZED'); ?></td>
|
|
|
|
<td class="data"><?php echo $slot->LIBVOLUME->VOLUME->display('PCT_RECLAIM'); ?></td>
|
|
|
|
<td class="data"><?php echo $slot->LIBVOLUME->VOLUME->display('LAST_READ_DATE'); ?></td>
|
|
|
|
<td class="data"><?php echo HTML::nbsp($slot->LIBVOLUME->lastwrite()); ?></td>
|
2011-06-26 12:20:12 +00:00
|
|
|
<td class="data"><acronym title="<?php printf('%s: %s',_('Element'),$slot->element); ?>"><?php echo $slot; ?></acronym></td>
|
|
|
|
<td class="data"><?php echo HTML::nbsp($slot->LIBVOLUME->access()); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 100%; vertical-align: top;" colspan="2">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="5">Volumes out of this Library</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Volume</td>
|
|
|
|
<td>Usage</td>
|
|
|
|
<td>Status/Access</td>
|
|
|
|
<td>Utilisation</td>
|
|
|
|
<td>Reclaim</td>
|
|
|
|
<td>Last Read</td>
|
|
|
|
<td>Last Write</td>
|
|
|
|
<td>Location</td>
|
|
|
|
</tr>
|
|
|
|
<?php $i=0; foreach ($lo->volsnotinlib() as $vo) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
2011-06-27 05:11:32 +00:00
|
|
|
<td class="data"><?php echo $vo.($vo->recycle() ? ' ¹' : ''); ?></td>
|
2011-06-26 12:20:12 +00:00
|
|
|
<td class="data"><?php echo $vo->STGPOOL_NAME; ?></td>
|
|
|
|
<td class="data"><?php printf('%s/%s',$vo->display('STATUS'),$vo->display('ACCESS')); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('PCT_UTILIZED'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('PCT_RECLAIM'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('LAST_READ_DATE'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('LAST_WRITE_DATE'); ?></td>
|
|
|
|
<td class="data"><?php echo $vo->display('LOCATION'); ?></td>
|
2011-06-24 01:27:21 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|