Sample Scripts - Dell DL4000 User Manual

Tape library
Hide thumbs Also See for DL4000:
Table of Contents

Advertisement

# working with Log Truncation Job
TransferJob {
$TransferJobRequestObject = $TransferJobRequest -as
[Replay.Core.Contracts.Transfer.TransferJobRequest];
echo 'Transfer job results:';
if($TransferJobRequestObject -eq $null) {
}
else {
$TransferJobRequestObject.TransferConfiguration;
$TransferJobRequestObject.StorageConfiguration;
}
echo 'LatestEpochSeenByCore:' $LatestEpochSeenByCore;
$TakeSnapshotResponseObject = $TakeSnapshotResponse -as
[Replay.Agent.Contracts.Transfer.TakeSnapshotResponse];
if($TakeSnapshotResponseObject -eq $null) {
}
else {
$TakeSnapshotResponseObject.Id;
}
break;
}
}

Sample scripts

The following sample scripts are provided to assist administrative users in executing PowerShell scripts.
The sample scripts include:
PreTransferScript.ps1
PostTransferScript.ps1
PreExportScript.ps1
PostExportScript.ps1
PreNightlyJobScript.ps1
PostNightlyJobScript.ps1
174
echo 'TransferJobRequestObject parameter is null';
echo 'TransferConfiguration:'
echo 'StorageConfiguration:'
echo 'TakeSnapshotResponseObject parameter is null';
echo 'ID of this transfer session:'
echo 'Volumes:' $TakeSnapshotResponseObject.Volumes;

Advertisement

Table of Contents
loading

Table of Contents