58ddb97d87
Added schedules Added management classes for a node Added clientopts to nodes Added schedule and event information
93 lines
3.2 KiB
PHP
93 lines
3.2 KiB
PHP
<table width="100%">
|
|
<tr>
|
|
<td style="width: 50%; vertical-align: top;">
|
|
<table class="box-full">
|
|
<tr>
|
|
<td class="head" colspan="2">TSM Node Schedules</td>
|
|
</tr>
|
|
<?php if ($node->ASSOCIATION->find_all()) { ?>
|
|
<tr>
|
|
<td class="spacer"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Schedule</td>
|
|
<td>Start Time</td>
|
|
<td>Duration</td>
|
|
<td>Repeat</td>
|
|
<td>Valid Day</td>
|
|
<td>Priority</td>
|
|
</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>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php } else { ?>
|
|
<tr><td>There are no TSM schedules define for this Node.</td></tr>
|
|
<?php } ?>
|
|
</table>
|
|
</td>
|
|
<td style="width: 50%; vertical-align: top;" rowspan="2">
|
|
<table class="box-full">
|
|
<tr>
|
|
<td class="head" colspan="2">Summary Activity</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="spacer"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Start</td>
|
|
<td>End</td>
|
|
<td>Activity</td>
|
|
<td>Schedule</td>
|
|
<td>MB</td>
|
|
</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>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width: 50%; vertical-align: top;">
|
|
<table class="box-full">
|
|
<tr>
|
|
<td class="head" colspan="2">Schedule Activity</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="spacer"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Sched Start</td>
|
|
<td>Act Start</td>
|
|
<td>Schedule Name</td>
|
|
<td>Status</td>
|
|
<td>Completed</td>
|
|
<td>Result</td>
|
|
<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>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|