GetActlogBackupSummary($yesterDate,$todayDate); # Database Summary Information $blockTitle['sched'] = sprintf(_('Client Schedule Activity on %s'),$app['server']->getValue('server','name')); $blockBody['sched'] = ''; $blockBody['sched'] .= ''; if ($graph) { $_SESSION['graph']['backupevent'] = $graph; $blockBody['sched'] .= sprintf('', $app['server']->getIndex()); } $blockBody['sched'] .= '
'; $blockBody['sched'] .= sprintf('', 'Client','Schedule','Sched Status','Sched Start'); $counter = 0; $events = $app['server']->GetEvents($yesterDate,$todayDate,'ACTUAL_START'); if (count($events['detail'])) { foreach ($events['detail'] as $index => $tsmEvent) { $node = $nodes->getNode($tsmEvent['NODE_NAME']); $blockBody['sched'] .= sprintf('', $tsmEvent['STATUS'] == 'Failed' ? 'highlight' : ($counter++%2==0?'even':'odd'), $node->os, $node->level['tsm_ver'],$node->level['tsm_rel'],$node->level['tsm_lvl'],$node->level['tsm_slv'], $tsmEvent['NODE_NAME'], $tsmEvent['SCHEDULE_NAME'], $tsmEvent['RESULT'],$tsmEvent['STATUS'], tsmDate($tsmEvent['ACTUAL_START'])); $key = $tsmEvent['STATUS'].' '.$tsmEvent['RESULT']; @$graph['data'][$tsmEvent['SCHEDULE_NAME']][$key]++; @$graph['legend'][$key]++; } } else { $graph = false; } $blockBody['sched'] .= '
%s%s%s%s
%s%s%s%s
'; $blockTitle['backup'] = sprintf(_('Client Backup Session Summary on %s'),$app['server']->getValue('server','name')); $blockBody['backup'] = ''; $blockBody['backup'] .= sprintf('', 'Client','Sched','Date','Type','Session','Inspected','Backed Up','Failed','Time','MB','Agg Rate Kb/s','Compressed'); $counter = 0; $summary = $summaryInfo->getSummary($yesterDate,$todayDate); if (! count($summary)) $blockBody['backup'] .= sprintf('','No summary'); else foreach ($summary as $tsmSession) { if (! in_array($tsmSession['ACTIVITY'],array('BACKUP','ARCHIVE'))) continue; # Summary Information $client_summary = sprintf('Update: %s, Rebound: %s, Delete: %s, Expire: %s.', (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Update']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Update'] : '-'), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Rebound']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Rebound'] : '-'), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Delete']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Delete'] : '-'), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Expire']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Expire'] : '-')); $blockBody['backup'] .= sprintf('', ($counter++%2==0?'even':'odd'), $tsmSession['ENTITY'], $tsmSession['SCHEDULE_NAME'], tsmDate($tsmSession['START_TIME'],'daytime'), $client_summary, $tsmSession['ACTIVITY'], $tsmSession['NUMBER'], number_format($tsmSession['EXAMINED']), $tsmSession['AFFECTED'], (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Failed']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Failed'] : '-'), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['ProcTime']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['ProcTime'] : '-'), sprintf('%3.2f',$tsmSession['BYTES']/1024/1024), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['AggRate']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['AggRate'] : '-'), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Compress']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['Compress'] : '-')); } $blockBody['backup'] .= '
%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
'; $counter = 0; $blockTitle['restore'] = sprintf(_('Client Restore Session Summary on %s'),$app['server']->getValue('server','name')); $blockBody['restore'] = ''; $blockBody['restore'] .= sprintf('', 'Client','Time','Session','Type','Restored','Failed','Media W','Time','MB','Agg Rate Kb/s'); foreach ($summary as $tsmSession) { if (! in_array($tsmSession['ACTIVITY'],array('RESTORE','RETRIEVE'))) continue; $blockBody['restore'] .= sprintf('', ($counter++%2==0?'even':'odd'), $tsmSession['ENTITY'], tsmDate($tsmSession['START_TIME'],'nosec'), $tsmSession['NUMBER'], $tsmSession['ACTIVITY'], $tsmSession['AFFECTED'], $tsmSession['FAILED'], $tsmSession['MEDIAW'], (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['ProcTime']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['ProcTime'] : '-'), sprintf('%3.1fMB',$tsmSession['BYTES']/1024/1024), (isset($tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['AggRate']) ? $tsmBackupSummary['detail'][$tsmSession['ENTITY']][$tsmSession['NUMBER']]['AggRate'] : '-'), $tsmSession['SCHEDULE_NAME']); } $blockBody['restore'] .= '
%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); ?>