Minor cosmetic updates
This commit is contained in:
parent
7a480dba58
commit
dcd6a54cb9
@ -30,10 +30,16 @@ class Model_VOLUME extends ORMTSM {
|
||||
),
|
||||
);
|
||||
|
||||
// Show the number of filespaces on a volume
|
||||
// $dtype is BACKUP or ARCHIVE
|
||||
public function getFSOnVol($dtype) {
|
||||
return $this->VOLUMEUSAGE->where('COPY_TYPE','=',$dtype)->find_all()->count();
|
||||
}
|
||||
|
||||
// Show the number of nodes on a volume
|
||||
// $dtype is BACKUP or ARCHIVE
|
||||
public function getNodesOnVol($dtype) {
|
||||
return $this->VOLUMEUSAGE->where('COPY_TYPE','=',$dtype)->find_all()->count();
|
||||
return $this->VOLUMEUSAGE->select('NODE_NAME')->distinct(TRUE)->where('COPY_TYPE','=',$dtype)->find_all()->count();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -63,7 +63,7 @@ class ORM extends Kohana_ORM {
|
||||
if (isset($this->_object_formated[$column]))
|
||||
return $this->_object_formated[$column];
|
||||
else
|
||||
return $value ? $value : ' ';
|
||||
return strlen((string)$value) ? $value : ' ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -8,6 +8,8 @@ tr.subhead { background-color: #BBBBDD; }
|
||||
td.head { font-weight: bold; }
|
||||
td.bold { font-weight: bold; }
|
||||
td.bold-right { font-weight: bold; text-align: right; }
|
||||
td.data { font-weight: bold; }
|
||||
td.data-right { font-weight: bold; text-align: right; }
|
||||
td.right { text-align: right; }
|
||||
tr.odd { background-color: #FCFCFE; }
|
||||
tr.even { background-color: #F6F6F8; }
|
||||
|
@ -10,37 +10,37 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40%;">Node Name</td>
|
||||
<td style="width: 60%;" class="head"><?php echo $node->display('NODE_NAME'); ?> (<?php echo $node->display('TCP_ADDRESS'); ?>)</td>
|
||||
<td style="width: 60%;" class="data"><?php echo $node->display('NODE_NAME'); ?> (<?php echo $node->display('TCP_ADDRESS'); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Operating Sytem</td>
|
||||
<td class="head"><?php printf('%s (%s)',$node->display('PLATFORM_NAME'),$node->display('CLIENT_OS_LEVEL')); ?></td>
|
||||
<td class="data"><?php printf('%s (%s)',$node->display('PLATFORM_NAME'),$node->display('CLIENT_OS_LEVEL')); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TSM Client Version</td>
|
||||
<td class="head"><?php echo $node->tsmclientversion(); ?></td>
|
||||
<td class="data"><?php echo $node->tsmclientversion(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="spacer"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date Registered</td>
|
||||
<td class="head"><?php echo $node->display('REG_TIME'); ?> (by <?php echo $node->display('REG_ADMIN'); ?>)</td>
|
||||
<td class="data"><?php echo $node->display('REG_TIME'); ?> (by <?php echo $node->display('REG_ADMIN'); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date Last Password Change</td>
|
||||
<td class="head"><?php echo $node->display('PWSET_TIME'); ?></td>
|
||||
<td class="data"><?php echo $node->display('PWSET_TIME'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="spacer"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password Expiry</td>
|
||||
<td class="head"><?php echo $node->passexp(); ?></td>
|
||||
<td class="data"><?php echo $node->passexp(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invalid Password Count</td>
|
||||
<td class="head"><?php echo $node->display('INVALID_PW_COUNT'); ?> (<?php echo $node->LOCKED == 'NO' ? _('Not Locked') : _('Locked'); ?>)</td>
|
||||
<td class="data"><?php echo $node->display('INVALID_PW_COUNT'); ?> (<?php echo $node->LOCKED == 'NO' ? _('Not Locked') : _('Locked'); ?>)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -54,43 +54,43 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40%;">Last Access</td>
|
||||
<td style="width: 60%;" class="head"><?php echo $node->display('LASTACC_TIME'); ?></td>
|
||||
<td style="width: 60%;" class="data"><?php echo $node->display('LASTACC_TIME'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Sent</td>
|
||||
<td class="head"><?php echo number_format($node->LASTSESS_SENT/1024/1024,2); ?> MB</td>
|
||||
<td class="data"><?php echo number_format($node->LASTSESS_SENT/1024/1024,2); ?> MB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Receive</td>
|
||||
<td class="head"><?php echo number_format($node->LASTSESS_RECVD/1024/1024,2); ?> MB</td>
|
||||
<td class="data"><?php echo number_format($node->LASTSESS_RECVD/1024/1024,2); ?> MB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Duration</td>
|
||||
<td class="head"><?php echo number_format($node->LASTSESS_DURATION/60,2); ?> min</td>
|
||||
<td class="data"><?php echo number_format($node->LASTSESS_DURATION/60,2); ?> min</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Idle Wait Percent</td>
|
||||
<td class="head"><?php echo $node->display('LASTSESS_IDLEWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_IDLEWAIT/100),2); ?>s)</td>
|
||||
<td class="data"><?php echo $node->display('LASTSESS_IDLEWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_IDLEWAIT/100),2); ?>s)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Comm Wait Percent</td>
|
||||
<td class="head"><?php echo $node->display('LASTSESS_COMMWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_COMMWAIT/100),2); ?>s)</td>
|
||||
<td class="data"><?php echo $node->display('LASTSESS_COMMWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_COMMWAIT/100),2); ?>s)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Media Wait Percent</td>
|
||||
<td class="head"><?php echo $node->display('LASTSESS_MEDIAWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_MEDIAWAIT/100),2); ?>s)</td>
|
||||
<td class="data"><?php echo $node->display('LASTSESS_MEDIAWAIT'); ?>% (<?php echo number_format($node->LASTSESS_DURATION*($node->LASTSESS_MEDIAWAIT/100),2); ?>s)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Transfer Percent</td>
|
||||
<td class="head"><?php echo number_format($node->lasttransferpercent(),2); ?>% (<?php echo number_format($node->lasttransfertime(),2); ?>s)</td>
|
||||
<td class="data"><?php echo number_format($node->lasttransferpercent(),2); ?>% (<?php echo number_format($node->lasttransfertime(),2); ?>s)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Send Performance</td>
|
||||
<td class="head"><?php echo number_format($node->lastsendperformance(),2); ?> MB/s (<?php echo number_format($node->lastsendaggperformance(),2); ?> MB/s Aggregate)</td>
|
||||
<td class="data"><?php echo number_format($node->lastsendperformance(),2); ?> MB/s (<?php echo number_format($node->lastsendaggperformance(),2); ?> MB/s Aggregate)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Last Session Receive Performance</td>
|
||||
<td class="head"><?php echo number_format($node->lastreceiveperformance(),2); ?> MB/s (<?php echo number_format($node->lastreceiveaggperformance(),2); ?> MB/s Aggregate)</td>
|
||||
<td class="data"><?php echo number_format($node->lastreceiveperformance(),2); ?> MB/s (<?php echo number_format($node->lastreceiveaggperformance(),2); ?> MB/s Aggregate)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -106,31 +106,31 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 40%;">Client Option Set</td>
|
||||
<td style="width: 60%;" class="head"><?php echo $node->display('OPTION_SET'); ?></td>
|
||||
<td style="width: 60%;" class="data"><?php echo $node->display('OPTION_SET'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Collocation Group</td>
|
||||
<td class="head"><?php echo $node->COLLOCGROUP_NAME ? $node->display('COLLOCGROUP_NAME') : 'Not Set'; ?></td>
|
||||
<td class="data"><?php echo $node->COLLOCGROUP_NAME ? $node->display('COLLOCGROUP_NAME') : 'Not Set'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Client Compression</td>
|
||||
<td class="head"><?php echo $node->display('COMPRESSION'); ?></td>
|
||||
<td class="data"><?php echo $node->display('COMPRESSION'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TXN Group Max</td>
|
||||
<td class="head"><?php echo $node->txngroupmax(); ?></td>
|
||||
<td class="data"><?php echo $node->txngroupmax(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Delete Archives</td>
|
||||
<td class="head"><?php echo $node->display('ARCHDELETE'); ?></td>
|
||||
<td class="data"><?php echo $node->display('ARCHDELETE'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Delete Backups</td>
|
||||
<td class="head"><?php echo $node->display('BACKDELETE'); ?></td>
|
||||
<td class="data"><?php echo $node->display('BACKDELETE'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Keep Mount Points</td>
|
||||
<td class="head"><?php echo $node->display('KEEP_MP'); ?> (<?php echo $node->display('MAX_MP_ALLOWED'); ?>)</td>
|
||||
<td class="data"><?php echo $node->display('KEEP_MP'); ?> (<?php echo $node->display('MAX_MP_ALLOWED'); ?>)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -160,12 +160,12 @@
|
||||
</tr>
|
||||
<?php $i=0; foreach ($node->MGMTCLASS->where('SET_NAME','=','ACTIVE')->find_all() as $mco) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
|
||||
<td class="head"><?php echo $mco->display('MIGDESTINATION'); ?></td>
|
||||
<td class="head"><?php echo $mco->COPYGROUP_BU->display('DESTINATION'); ?></td>
|
||||
<td class="head"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VEREXISTS'),$mco->COPYGROUP_BU->display('RETEXTRA')); ?></td>
|
||||
<td class="head"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VERDELETED'),$mco->COPYGROUP_BU->display('RETONLY')); ?></td>
|
||||
<td class="head"><?php echo $mco->COPYGROUP_BU->display('FREQUENCY'); ?></td>
|
||||
<td class="data"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
|
||||
<td class="data"><?php echo $mco->display('MIGDESTINATION'); ?></td>
|
||||
<td class="data"><?php echo $mco->COPYGROUP_BU->display('DESTINATION'); ?></td>
|
||||
<td class="data"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VEREXISTS'),$mco->COPYGROUP_BU->display('RETEXTRA')); ?></td>
|
||||
<td class="data"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VERDELETED'),$mco->COPYGROUP_BU->display('RETONLY')); ?></td>
|
||||
<td class="data"><?php echo $mco->COPYGROUP_BU->display('FREQUENCY'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
@ -181,9 +181,9 @@
|
||||
</tr>
|
||||
<?php $i=0; foreach ($node->MGMTCLASS->where('SET_NAME','=','ACTIVE')->find_all() as $mco) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
|
||||
<td class="head"><?php echo $mco->COPYGROUP_AR->display('DESTINATION'); ?></td>
|
||||
<td class="head"><?php echo $mco->COPYGROUP_AR->display('RETVER'); ?></td>
|
||||
<td class="data"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
|
||||
<td class="data"><?php echo $mco->COPYGROUP_AR->display('DESTINATION'); ?></td>
|
||||
<td class="data"><?php echo $mco->COPYGROUP_AR->display('RETVER'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
@ -205,10 +205,10 @@
|
||||
<?php if ($node->OPTION_SET) { ?>
|
||||
<?php $i=0; foreach ($node->CLIENTOPT->find_all() as $coo) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $coo->display('OPTION_NAME'); ?></td>
|
||||
<td class="head"><?php echo $coo->display('SEQNUMBER'); ?></td>
|
||||
<td class="head"><?php echo $coo->display('OPTION_VALUE'); ?></td>
|
||||
<td class="head"><?php echo $coo->display('FORCE'); ?></td>
|
||||
<td class="data"><?php echo $coo->display('OPTION_NAME'); ?></td>
|
||||
<td class="data"><?php echo $coo->display('SEQNUMBER'); ?></td>
|
||||
<td class="data"><?php echo $coo->display('OPTION_VALUE'); ?></td>
|
||||
<td class="data"><?php echo $coo->display('FORCE'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
|
@ -12,22 +12,22 @@
|
||||
<tr>
|
||||
<td>File Space</td>
|
||||
<td>Last Date</td>
|
||||
<td style="text-align: right;">Utilisation</td>
|
||||
<td class="right">Utilisation</td>
|
||||
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
||||
if (count($pools = $node->getStoragePoolsType('Bkup',$type)))
|
||||
foreach ($pools as $pool_name) { ?>
|
||||
<td style="text-align: right;"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
||||
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||||
<td class="head"><?php echo $fso->display('BACKUP_END'); ?></td>
|
||||
<td class="head" style="text-align: right;"><?php echo number_format($fso->utilsation(),2); ?></td>
|
||||
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||||
<td class="data"><?php echo $fso->display('BACKUP_END'); ?></td>
|
||||
<td class="data-right"><?php echo number_format($fso->utilsation(),2); ?></td>
|
||||
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
||||
if (count($pools = $node->getStoragePoolsType('Bkup',$type)))
|
||||
foreach ($pools as $pool_name) { ?>
|
||||
<td class="head" style="text-align: right; vertical-align: top;"><?php echo number_format($fso->pool_logical_util($pool_name,'Bkup'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'BACKUP'); ?>)</td>
|
||||
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,'Bkup'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'BACKUP'); ?>)</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -46,14 +46,14 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Storage Type</td>
|
||||
<td>Files</td>
|
||||
<td>MB</td>
|
||||
<td class="right">Files</td>
|
||||
<td class="right">MB</td>
|
||||
</tr>
|
||||
<?php $i=0; foreach (Kohana::config('config.tsmpooltypes') as $type) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $type; ?></td>
|
||||
<td class="head"><?php echo $node->getStorageTypeFiles($type); ?></td>
|
||||
<td class="head"><?php echo $node->getStorageTypeData($type); ?></td>
|
||||
<td class="data"><?php echo $type; ?></td>
|
||||
<td class="data-right"><?php echo $node->getStorageTypeFiles($type); ?></td>
|
||||
<td class="data-right"><?php echo $node->getStorageTypeData($type); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
@ -74,16 +74,16 @@
|
||||
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
||||
if (count($pools = $node->getStoragePoolsType('Arch',$type)))
|
||||
foreach ($pools as $pool_name) { ?>
|
||||
<td style="text-align: right;"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
||||
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||||
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||||
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
||||
if (count($pools = $node->getStoragePoolsType('Arch',$type)))
|
||||
foreach ($pools as $pool_name) { ?>
|
||||
<td class="head" style="text-align: right; vertical-align: top;"><?php echo number_format($fso->pool_logical_util($pool_name,'Arch'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'ARCHIVE'); ?>)</td>
|
||||
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,'Arch'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'ARCHIVE'); ?>)</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
@ -19,12 +19,12 @@
|
||||
</tr>
|
||||
<?php $i=0;foreach ($node->ASSOCIATION->find_all() as $ao) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $ao->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="head"><?php echo $ao->SCHEDULE_CLIENT->display('STARTTIME'); ?></td>
|
||||
<td class="head"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->DURATION,$ao->SCHEDULE_CLIENT->DURUNITS); ?></td>
|
||||
<td class="head"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->PERIOD,$ao->SCHEDULE_CLIENT->PERUNITS); ?></td>
|
||||
<td class="head"><?php echo $ao->SCHEDULE_CLIENT->display('DAYOFWEEK'); ?></td>
|
||||
<td class="head"><?php echo $ao->SCHEDULE_CLIENT->display('PRIORITY'); ?></td>
|
||||
<td class="data"><?php echo $ao->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('STARTTIME'); ?></td>
|
||||
<td class="data"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->DURATION,$ao->SCHEDULE_CLIENT->DURUNITS); ?></td>
|
||||
<td class="data"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->PERIOD,$ao->SCHEDULE_CLIENT->PERUNITS); ?></td>
|
||||
<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('DAYOFWEEK'); ?></td>
|
||||
<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('PRIORITY'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
@ -49,11 +49,11 @@
|
||||
</tr>
|
||||
<?php $i=0;foreach ($node->SUMMARY->find_all() as $so) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $so->display('START_TIME'); ?></td>
|
||||
<td class="head"><?php echo $so->display('END_TIME'); ?></td>
|
||||
<td class="head"><?php echo $so->display('ACTIVITY'); ?></td>
|
||||
<td class="head"><?php echo $so->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="head" style="text-align: right;"><?php printf('%3.2f',round($so->display('BYTES')/1024/1024,2)); ?></td>
|
||||
<td class="data"><?php echo $so->display('START_TIME'); ?></td>
|
||||
<td class="data"><?php echo $so->display('END_TIME'); ?></td>
|
||||
<td class="data"><?php echo $so->display('ACTIVITY'); ?></td>
|
||||
<td class="data"><?php echo $so->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="data" style="text-align: right;"><?php printf('%3.2f',round($so->display('BYTES')/1024/1024,2)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
@ -78,12 +78,12 @@
|
||||
<tr>
|
||||
<?php $i=0;foreach ($node->EVENT->find_all() as $eo) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $eo->display('SCHEDULED_START'); ?></td>
|
||||
<td class="head"><?php echo $eo->ACTUAL_START ? $eo->display('ACTUAL_START') : ' '; ?></td>
|
||||
<td class="head"><?php echo $eo->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="head"><?php echo $eo->display('STATUS'); ?></td>
|
||||
<td class="head"><?php echo $eo->COMPLETED ? $eo->display('COMPLETED') : ' '; ?></td>
|
||||
<td class="head"><?php printf('%s %s',$eo->RESULT,$eo->display('REASON')); ?></td>
|
||||
<td class="data"><?php echo $eo->display('SCHEDULED_START'); ?></td>
|
||||
<td class="data"><?php echo $eo->ACTUAL_START ? $eo->display('ACTUAL_START') : ' '; ?></td>
|
||||
<td class="data"><?php echo $eo->display('SCHEDULE_NAME'); ?></td>
|
||||
<td class="data"><?php echo $eo->display('STATUS'); ?></td>
|
||||
<td class="data"><?php echo $eo->COMPLETED ? $eo->display('COMPLETED') : ' '; ?></td>
|
||||
<td class="data"><?php printf('%s %s',$eo->RESULT,$eo->display('REASON')); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
@ -16,25 +16,27 @@
|
||||
<td>Last Write Date</td>
|
||||
<td>Access</td>
|
||||
<td>Status</td>
|
||||
<td>Errors R/W</td>
|
||||
<td>Utilisation</td>
|
||||
<td>Reclaim</td>
|
||||
<td>Nodes on Vol</td>
|
||||
<td class="right">Errors R/W</td>
|
||||
<td class="right">Util %</td>
|
||||
<td class="right">Reclaim</td>
|
||||
<td class="right">Other FS</td>
|
||||
<td class="right">Other Node</td>
|
||||
</tr>
|
||||
<?php $i=0; foreach ($node->volumes($dtype) as $stgpool => $vols) {
|
||||
$spo = ORM::factory('STGPOOL',$stgpool); ?>
|
||||
<tr class="subhead"><td colspan="9"><?php printf('%s: Reclaim: %s%%, Scratch Usage: %s/%s, Device Type: %s',$spo->STGPOOL_NAME,$spo->RECLAIM,$spo->NUMSCRATCHUSED,$spo->MAXSCRATCH,$spo->DEVCLASSES->DEVTYPE); ?></td></tr>
|
||||
<tr class="subhead"><td colspan="10"><?php printf('%s: Reclaim: %s%%, Scratch Usage: %s/%s, Device Type: %s',$spo->STGPOOL_NAME,$spo->RECLAIM,$spo->NUMSCRATCHUSED,$spo->MAXSCRATCH,$spo->DEVCLASSES->DEVTYPE); ?></td></tr>
|
||||
<?php foreach ($vols as $vol) { ?>
|
||||
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||||
<td class="head"><?php echo $vol->VOLUME_NAME; ?></td>
|
||||
<td class="head"><?php echo $vol->display('LAST_READ_DATE'); ?></td>
|
||||
<td class="head"><?php echo $vol->display('LAST_WRITE_DATE'); ?></td>
|
||||
<td class="head"><?php echo $vol->display('ACCESS'); ?></td>
|
||||
<td class="head"><?php echo $vol->display('STATUS'); ?></td>
|
||||
<td class="head"><?php printf('%s/%s',$vol->READ_ERRORS,$vol->WRITE_ERRORS); ?></td>
|
||||
<td class="head"><?php echo $vol->display('EST_CAPACITY_MB'); ?></td>
|
||||
<td class="head"><?php echo $vol->display('PCT_RECLAIM'); ?></td>
|
||||
<td class="head"><?php echo $vol->getNodesOnVol($dtype); ?></td>
|
||||
<td class="data"><?php echo $vol->VOLUME_NAME; ?></td>
|
||||
<td class="data"><?php echo $vol->display('LAST_READ_DATE'); ?></td>
|
||||
<td class="data"><?php echo $vol->display('LAST_WRITE_DATE'); ?></td>
|
||||
<td class="data"><?php echo $vol->display('ACCESS'); ?></td>
|
||||
<td class="data"><?php echo $vol->display('STATUS'); ?></td>
|
||||
<td class="data-right"><?php printf('%s/%s',$vol->READ_ERRORS,$vol->WRITE_ERRORS); ?></td>
|
||||
<td class="data-right"><?php echo $vol->display('EST_CAPACITY_MB'); ?></td>
|
||||
<td class="data-right"><?php echo $vol->display('PCT_RECLAIM'); ?></td>
|
||||
<td class="data-right"><?php echo $vol->getFSOnVol($dtype); ?></td>
|
||||
<td class="data-right"><?php echo $vol->getNodesOnVol($dtype); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
Reference in New Issue
Block a user