Aktionen

BackupExec 2012 - Status etc. per Commandline abfragen

Aus znilwiki

Die druckbare Version wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.

Sammlung , Seite wird nicht weiter gepflegt da es bereits neuere Versionen von BackupExec gibt: BackupExec 2015 - Status etc. per Commandline abfragen


Alle BackupJobs abfragen:

Get-BEJob -JobType Backup

Alle geplanten BackupJobs abfragen:

Get-BEJob -JobType Backup -Status Scheduled

Deteils zu einem Job abfragen

Get-BEJobHistory -Fromlastjobrun "w12*" | Get-BEJobLog

An das Eingemachte

Liste der geplanten Jobs mit ID etc. (Ideal für Zabbix-Autodiscover):

Get-BEJob -JobType Backup -Status Scheduled | select-object -property *

Beispielausgabe:

Name                  : SERVER01.domain.local Backup 00101-Gesamt
Id                    : 39286314-303e-41d1-95bc-305cdd8821b0
TaskName              : Gesamt
IsActive              : False
Status                : Scheduled
SubStatus             : Ok
JobType               : Backup
TaskType              : Full
Schedule              : Montag, Dienstag, Mittwoch, Donnerstag, Freitag every 1 week(s) at 21:00 effective on 09.11.2013.
SelectionSummary      : W08NAS1.intax.local (Partial), D: (Excluded), Microsoft SQL Server Instances (Excluded)
NextStartDate         : 24.04.2014 21:00:00
Priority              : High
Storage               : Beliebiger Festplattenspeicher
StorageId             : 00000006-0001-0000-0000-000000000000
KeepDiskDataFor       : 2.00:00:00
MediaSet              :
MediaSetId            : 00000009-03eb-0000-0000-000000000000
MediaVault            :
MediaVaultId          : 00000000-0000-0000-0000-000000000000
IsBackupDefinitionJob : True
BackupDefinition      : SERVER01.domain.local Backup 00101
BackupDefinitionId    : af9a60b7-8a9c-4715-8f53-a00bf8634d6b
AgentServer           : SERVER01.intax.local
AgentServerId         : 994b983a-9cb0-4b81-9c57-ecef6b79a7a3
BackupExecServer      :
BackupExecServerId    : 00000000-0000-0000-0000-000000000000
SupersedingJob        :
SupersedingJobId      : 00000000-0000-0000-0000-000000000000

Name                  : vCenter Backup-Gesamt
Id                    : 1ee8097d-df50-446d-8972-a89542d01c47
TaskName              : Gesamt
IsActive              : False
Status                : Scheduled
SubStatus             : Ok
JobType               : Backup
TaskType              : Full
Schedule              : Montag, Dienstag, Mittwoch, Donnerstag, Freitag every 1 week(s) at 23:00 effective on 17.04.2014.
SelectionSummary      : VMVCB::\\vCenter\Virtual Center (Partial), Citrix\Terminalserver (Excluded), Citrix\virtuelle Desktops (Excluded), Templates (Excluded), ZabbixProxy (Excluded)
NextStartDate         : 24.04.2014 23:00:00
Priority              : Normal
Storage               : Backup Exec Speicher
StorageId             : 8b810d60-3a9c-4972-9975-a55b72cbc456
KeepDiskDataFor       : 3.00:00:00
MediaSet              :
MediaSetId            : 00000009-03eb-0000-0000-000000000000
MediaVault            :
MediaVaultId          : 00000000-0000-0000-0000-000000000000
IsBackupDefinitionJob : True
BackupDefinition      : vCenter Backup
BackupDefinitionId    : 67670be5-70ab-4a81-b0b8-ac4c05d3360a
AgentServer           :
AgentServerId         : 2a12db74-7cc6-4a6d-a937-967ca7be0f8c
BackupExecServer      :
BackupExecServerId    : 00000000-0000-0000-0000-000000000000
SupersedingJob        :
SupersedingJobId      : 00000000-0000-0000-0000-000000000000






Eine Liste des letzten Status geplanter Jobs:

Get-BEJob -JobType Backup -Status Scheduled | Get-BEJobHistory -FromLastJobRun | select-object -property *

Beispielausgabe:

Name                 : SERVER01.domain.local Backup 00101-Gesamt
Id                   : 428fdae7-d5a8-457f-b8c7-e9aea36646be
JobName              : SERVER01.domain.local Backup 00101-Gesamt
JobStatus            : Succeeded
StartTime            : 23.04.2014 21:00:00
EndTime              : 23.04.2014 22:04:06
ElapsedTime          : 01:04:06
TotalDataSizeBytes   : 44931528890
JobRateMBPerMinute   : 689,8954
DeduplicationRatio   : 0
JobType              : Backup
PercentComplete      : 100
StorageName          : Backup Exec Speicher
BackupExecServerName : SERVER01
Job                  : SERVER01.domain.local Backup 00101-Gesamt
JobId                : 39286314-303e-41d1-95bc-305cdd8821b0
AgentServer          : SERVER01.intax.local
AgentServerId        : 994b983a-9cb0-4b81-9c57-ecef6b79a7a3
JobLogFilePath       : C:\Program Files\Symantec\Backup Exec\Data\BEX_SERVER01_04155.xml
ErrorCode            : 0
ErrorCategory        : 0

Name                 : vCenter Backup-Gesamt
Id                   : 310b9130-dcd1-43b4-ad29-0a6dd0e4cd89
JobName              : vCenter Backup-Gesamt
JobStatus            : Canceled
StartTime            : 24.04.2014 11:43:53
EndTime              : 24.04.2014 11:45:40
ElapsedTime          : 00:01:47
TotalDataSizeBytes   : 5893386294
JobRateMBPerMinute   : 7842,008
DeduplicationRatio   : 0
JobType              : Backup
PercentComplete      : -1
StorageName          : Backup Exec Speicher
BackupExecServerName : SERVER01
Job                  : vCenter Backup-Gesamt
JobId                : 1ee8097d-df50-446d-8972-a89542d01c47
AgentServer          :
AgentServerId        : 2a12db74-7cc6-4a6d-a937-967ca7be0f8c
JobLogFilePath       : C:\Program Files\Symantec\Backup Exec\Data\BEX_SERVER01_04160.xml
ErrorCode            : 0
ErrorCategory        : 1




Gezielt einen Bestimmten Job anhand der Id abfragen:

Get-BEJob -Id 1ee8097d-df50-446d-8972-a89542d01c47 | Get-BEJobHistory -FromLastJobRun | select-object -property *

Beispielausgabe:

Name                 : vCenter Backup-Gesamt
Id                   : 310b9130-dcd1-43b4-ad29-0a6dd0e4cd89
JobName              : vCenter Backup-Gesamt
JobStatus            : Canceled
StartTime            : 24.04.2014 11:43:53
EndTime              : 24.04.2014 11:45:40
ElapsedTime          : 00:01:47
TotalDataSizeBytes   : 5893386294
JobRateMBPerMinute   : 7842,008
DeduplicationRatio   : 0
JobType              : Backup
PercentComplete      : -1
StorageName          : Backup Exec Speicher
BackupExecServerName : SERVER01
Job                  : vCenter Backup-Gesamt
JobId                : 1ee8097d-df50-446d-8972-a89542d01c47
AgentServer          :
AgentServerId        : 2a12db74-7cc6-4a6d-a937-967ca7be0f8c
JobLogFilePath       : C:\Program Files\Symantec\Backup Exec\Data\BEX_SERVER01_04160.xml
ErrorCode            : 0
ErrorCategory        : 1