Workflow to create SP Copies

Last post 10-29-2015, 6:27 PM by ameykarandikar. 16 replies.
Sort Posts: Previous Next
  • Workflow to create SP Copies
    Posted: 10-01-2015, 3:42 PM

    Hi All,

     

    I'm trying to create a workflow using the sandbox Create S.P. Copy xml and was wondering if anyone know what the copy type sould be for a selected copy?  I have tried entering SELECTIVE from the error below, but the workflow still creates a synchronous copy. 

     

    Thanks in advance!!! 

    <App_CreateStoragePolicyCopyReq>
     <copyName></copyName>
      <storagePolicyCopyInfo>
      <copyType></copyType>

     


    Error Code: [19:857] Description: execute: Error 0x90c: Invalid Enum value for Field:"copyType" FieldValue:selective expected values are={MIRROR | NONE | SELECTIVE | SILO | SNAP | SYNCHRONOUS | TAPEIMPORT | TRANSITIVE | VAULT | } Source: lab1-cs01, Process: Workflow 

     

  • Re: Workflow to create SP Copies
    Posted: 10-02-2015, 11:37 AM
    • isle is not online. Last active: 06-04-2019, 3:28 PM isle
    • Top 25 Contributor
    • Joined on 08-21-2012
    • NJ
    • Adept
    • Points 308

    looks like you double posted, may want to delete the other one Undecided

     

     

    Any chance you could share your workflow, I will take a quick look?

  • Re: Workflow to create SP Copies
    Posted: 10-03-2015, 3:50 PM

    I have attached the the workflow and the xml i'm trying to manipulate is below. Please note that all of the Process Blocks perform the same operatons and I did not start teh configurations for each.  The one that I'm testing against is the BKOS-GFS option. 

    Thanks for your help.

     

     

    <App_CreateStoragePolicyCopyReq>
     <copyName>xpath:{/workflow/PopupInput_1/CopyName}</copyName>
    <storagePolicyCopyInfo>
     <copyType>selective</copyType>
     <active>1</active>
     <isSnapCopy>0</isSnapCopy>
     <isMirrorCopy>0</isMirrorCopy>
     <deferAuxiliaryCopyDays>0</deferAuxiliaryCopyDays>
     <hardWareCompression>0</hardWareCompression>
     <provisioningPolicyName/>
     <vFilerName/>
     <throttleNetworkBandWidthMBHR/>
    <StoragePolicyCopy>
     <storagePolicyName>xpath:{/workflow/PopupInput_1/StoragePolicy}</storagePolicyName>
     </StoragePolicyCopy>
    <copyFlags>
     <multiplexSourceStreams>1</multiplexSourceStreams>
     <combineStreams>1</combineStreams>
     <switchIfOffline>2</switchIfOffline>
     <switchIfBusy>2</switchIfBusy>
     <demultiplexOnCopy>2</demultiplexOnCopy>
     <markMediaToBeErasedAfterRecycling>2</markMediaToBeErasedAfterRecycling>
     <archiveCheckAll>2</archiveCheckAll>
     <archiveCheckFull>2</archiveCheckFull>
     <archiveCheckBitmap>2</archiveCheckBitmap>
     <roundRobbinDataPath>1</roundRobbinDataPath>
     <inlineAuxCopy>2</inlineAuxCopy>
     <enableParallelCopy>2</enableParallelCopy>
     <lastFull>2</lastFull>
     <lastFullWait>2</lastFullWait>
     <autoAddDataPaths>2</autoAddDataPaths>
     <noInlineCopyToSameLibrary>2</noInlineCopyToSameLibrary>
     <noAuxCopyToSameLibrary>2</noAuxCopyToSameLibrary>
     <storeKeyOnMedia>2</storeKeyOnMedia>
     <sourceCopyForSnapToTape>2</sourceCopyForSnapToTape>
     <siloCopy>2</siloCopy>
     <auxCopyReencryptData>2</auxCopyReencryptData>
     <wormCopy>2</wormCopy>
     <enableMediaRefresh>2</enableMediaRefresh>
     <useHardwareSnapshot>2</useHardwareSnapshot>
     <enableLanFreeReservationOnly>2</enableLanFreeReservationOnly>
     <useStreamsOverMultiplexing>2</useStreamsOverMultiplexing>
     <useDirectAttachedNASDrivePool>2</useDirectAttachedNASDrivePool>
     <deleteCopyAfterJobsAreDeleted>2</deleteCopyAfterJobsAreDeleted>
     </copyFlags>
    <extendedFlags>
     <dynamicStreamAllocation>2</dynamicStreamAllocation>
     <secondarySiloCopy>2</secondarySiloCopy>
     </extendedFlags>
    <library>
     <libraryName>xpath:{/workflow/PopupInput_1/Libraries}</libraryName>
     </library>
    <mediaAgent>
     <mediaAgentName>lab1-cs01</mediaAgentName>
     </mediaAgent>
    <drivePool>
     <drivePoolName/>
     <libraryName/>
     </drivePool>
    <spareMediaGroup>
     <spareMediaGroupName/>
     <libraryName/>
     </spareMediaGroup>
    <dataPathConfiguration>
    <resourcesOfflineWaitTimeInHoursMinutes>
     <hours/>
     <minutes/>
     </resourcesOfflineWaitTimeInHoursMinutes>
    <resourcesBusyWaitTimeInHoursMinutes>
     <hours/>
     <minutes/>
     </resourcesBusyWaitTimeInHoursMinutes>
     </dataPathConfiguration>
    <dataVerification>
     <allJobs>2</allJobs>
     <allFullJobs>2</allFullJobs>
     <verificationExpiresAfterMonths/>
    <jobsOnOrAfterDate>
     <timeValue/>
     </jobsOnOrAfterDate>
     </dataVerification>
    <dataEncryption>
     <encryptData>2</encryptData>
     <encryptionType/>
     <encryptionKeyLength/>
     <reEncryptDataUsingCipher>2</reEncryptDataUsingCipher>
     <viaMediaPassword>2</viaMediaPassword>
     </dataEncryption>
    <retentionRules>
     <retainBackupDataForDays>35</retainBackupDataForDays>
     <retainBackupDataForCycles>1</retainBackupDataForCycles>
     <retainArchiverDataForDays>365</retainArchiverDataForDays>
     <jobs>0</jobs>
    <retentionFlags>
     <extendedRetentionFirst>2</extendedRetentionFirst>
     <enableDataAging>2</enableDataAging>
     <enableManagedDiskSpace>2</enableManagedDiskSpace>
     <selectJobsFromPreviousTier>2</selectJobsFromPreviousTier>
     <retainFullAndLastDifferential>2</retainFullAndLastDifferential>
     <jobBasedRetention>2</jobBasedRetention>
     <grcRemoteCopy>2</grcRemoteCopy>
     <flagsMask>2</flagsMask>
     </retentionFlags>
    <extendedRetentionRuleOne>
     <endDays>365</endDays>
     <graceDays>0</graceDays>
     <isEnabled>1</isEnabled>
     <rule>EXTENDED_MONTH</rule>
     </extendedRetentionRuleOne>
    <extendedRetentionRuleTwo>
     <endDays>2555</endDays>
     <graceDays>1</graceDays>
     <isEnabled>1</isEnabled>
     <rule>EXTENDED_YEAR</rule>
     </extendedRetentionRuleTwo>
    <extendedRetentionRuleThree>
     <endDays>1825</endDays>
     <graceDays>2</graceDays>
     <isEnabled>2</isEnabled>
     <rule>EXTENDED_MONTH</rule>
     </extendedRetentionRuleThree>
    <financialCalendarXML>
     <calendarId>1</calendarId>
     <monthStartsOn>1</monthStartsOn>
     <startingMonthOfYear>JANUARY</startingMonthOfYear>
     <weekStartsOn>FRIDAY</weekStartsOn>
     </financialCalendarXML>
     </retentionRules>
    <mediaProperties>
     <multiplexingFactor>2</multiplexingFactor>
     <numberOfStreamsToCombine>2</numberOfStreamsToCombine>
    <mediaRefreshProperties>
     <percentage>51</percentage>
    <refreshFlags>
     <enableMediaRetirementThreshold>2</enableMediaRetirementThreshold>
     </refreshFlags>
    <monthsAfterMediaWritten>
     <months>12</months>
     </monthsAfterMediaWritten>
    <monthsBeforeMediaAged>
     <months>3</months>
     </monthsBeforeMediaAged>
     </mediaRefreshProperties>
     </mediaProperties>
    <selectiveCopyRules>
     <selectiveRule/>
     <dayStartsAt/>
     <weekDayStartsOn/>
     <monthStartsOn/>
     <startingMonthOfYear/>
     <everyXCycles/>
     <everyXHours/>
     <everyXDays/>
     <everyXWeeks/>
     <everyXMonths/>
     <firstFullBackup>2</firstFullBackup>
     <selectMostRecentJob>2</selectMostRecentJob>
     <doNotAutomaticallySelectJobs>2</doNotAutomaticallySelectJobs>
     <moveJobSelectionStartTime/>
     </selectiveCopyRules>
    <auxCopyFallenBehind>
     <enableAuxCopyFallenBehindAlert>2</enableAuxCopyFallenBehindAlert>
     <enableToBeCopiedDataTB>2</enableToBeCopiedDataTB>
     <toBeCopiedDataTB/>
     <enableDaysOldJobs>2</enableDaysOldJobs>
     <daysOldJobs/>
     <enableHoursToCopyData>2</enableHoursToCopyData>
     <hoursToCopyData/>
     </auxCopyFallenBehind>
    <sourceCopy>
     <copyName/>
     <storagePolicyName/>
     </sourceCopy>
    <DDBPartitionInfo>
    <maInfoList>
    <mediaAgent>
     <mediaAgentName/>
     </mediaAgent>
    <subStoreList>
     <diskFreeThresholdMB>5120</diskFreeThresholdMB>
     <diskFreeWarningThreshholdMB>10240</diskFreeWarningThreshholdMB>
    <accessPath>
     <path/>
     </accessPath>
     </subStoreList>
     </maInfoList>
    <sidbStoreInfo>
     <operation>1</operation>
     <copyName/>
     <enableNumberOfSilosToBeKeptInCache>2</enableNumberOfSilosToBeKeptInCache>
     <numberOfSilosToBeKeptInCache>1</numberOfSilosToBeKeptInCache>
    <sidbStoreFlags>
     <enableSoftwareCompression>2</enableSoftwareCompression>
     </sidbStoreFlags>
    <mediaAgentForSiloRestores>
     <mediaAgentName/>
     </mediaAgentForSiloRestores>
    <destinationClientForSiloRestores>
     <mediaAgentName/>
     </destinationClientForSiloRestores>
     </sidbStoreInfo>
     </DDBPartitionInfo>
    <dedupeFlags>
     <useDDBPrimingOption>2</useDDBPrimingOption>
     <optimizeHighLatencyNetwork>2</optimizeHighLatencyNetwork>
     <minimumPartitionsToBeAvailableForJobsToRun>2</minimumPartitionsToBeAvailableForJobsToRun>
     <enableSIDBArchive>2</enableSIDBArchive>
     <enableDeduplication>2</enableDeduplication>
     <temporarilyDisableDeduplication>2</temporarilyDisableDeduplication>
     <enableClientSideDedup>2</enableClientSideDedup>
     <backupSiloEnabled>2</backupSiloEnabled>
     <isSilosToBeKeptInCache>2</isSilosToBeKeptInCache>
     <enableDASHFull>2</enableDASHFull>
     <enableSiloDiskSpaceManagement>2</enableSiloDiskSpaceManagement>
     <pauseAndRecoverCurrentDDB>2</pauseAndRecoverCurrentDDB>
     <automaticallyPauseAndRecoverDDB>2</automaticallyPauseAndRecoverDDB>
     <useGlobalDedupStore>2</useGlobalDedupStore>
     <hostGlobalDedupStore>2</hostGlobalDedupStore>
     <markClientCacheDbDirty>2</markClientCacheDbDirty>
     <enableSourceSideDiskCache>2</enableSourceSideDiskCache>
     </dedupeFlags>
    <createNewDDBOptions>
     <createNewDDBeveryXdays>2</createNewDDBeveryXdays>
     <days>30</days>
     <createNewDDBeveryXtb>2</createNewDDBeveryXtb>
     <tb>100</tb>
     <createNewDDBeveryXmonths>2</createNewDDBeveryXmonths>
     <months>1</months>
    <startingFromDate>
     <timeValue/>
     </startingFromDate>
     </createNewDDBOptions>
    <associations>
    <client>
     <clientName/>
     </client>
    <appType>
     <appName/>
     <clientName/>
     </appType>
    <instance>
     <instanceName/>
     <clientName/>
     </instance>
    <backupSet>
     <backupsetName/>
     <clientName/>
     </backupSet>
    <subClient>
     <subclientName/>
     <instanceName/>
     <backupsetName/>
     <clientName/>
     </subClient>
     </associations>
    <resourcePoolsList>
     <operation>1</operation>
     <resourcePoolName/>
     </resourcePoolsList>
     </storagePolicyCopyInfo>
    <useGlobalPolicy>
     <storagePolicyName/>
     </useGlobalPolicy>
     </App_CreateStoragePolicyCopyReq>

    Attachment: BKOS-Workflow.zip
  • Re: Workflow to create SP Copies
    Posted: 10-07-2015, 10:32 AM

    Hi Jedi_knight_82

    From the error message, it reports that it reads the "copytype" as 'selective' but shows it all lower case. Lowercase does not match the syntax of "expected values".

    Error Code: [19:857] Description: execute: Error 0x90c: Invalid Enum value for Field:"copyType" FieldValue:selective expected values are={MIRROR | NONE | SELECTIVE | SILO | SNAP | SYNCHRONOUS | TAPEIMPORT | TRANSITIVE | VAULT | } Source: lab1-cs01, Process: Workflow

    Though passing arguments in Windows is not supposed to be case sensitive, I am wondering, have you tried entering SELECTIVE using all caps? 

    I have seen capitalization interfere with command line operations in the past. 

     

     

  • Re: Workflow to create SP Copies
    Posted: 10-07-2015, 10:37 AM
    • isle is not online. Last active: 06-04-2019, 3:28 PM isle
    • Top 25 Contributor
    • Joined on 08-21-2012
    • NJ
    • Adept
    • Points 308

    Took a look at the workflow, and I think that error is misleading.

    Plugging your XML into a qoperation leads to other failures that are not selective.

     

    You may want to adjust this qopereation with the xml to work without workflow before continuing.

  • Re: Workflow to create SP Copies
    Posted: 10-07-2015, 5:05 PM

    Hi,

    Selective copies expect selection rule. Please specify one of the following for field selectiveRule

    • SELECTIVE_ALLFULL
    • SELECTIVE_DAY
    • SELECTIVE_WEEK
    • SELECTIVE_MONTH
    • SELECTIVE_QUARTER
    • SELECTIVE_HALFYEAR
    • SELECTIVE_YEAR
    • SELECTIVE_ADVANCED

    Example :

    <App_CreateStoragePolicyCopyReq>

      <copyName>TEST</copyName>

     <storagePolicyCopyInfo>

      <copyType>SELECTIVE</copyType>

      <active>1</active>

      <isSnapCopy>0</isSnapCopy>

      <isMirrorCopy>0</isMirrorCopy>

      <deferAuxiliaryCopyDays>0</deferAuxiliaryCopyDays>

      <hardWareCompression>0</hardWareCompression>

      <provisioningPolicyName />

      <vFilerName />

      <throttleNetworkBandWidthMBHR />

    <StoragePolicyCopy>

      <storagePolicyName>a2</storagePolicyName>

      </StoragePolicyCopy>

    <copyFlags>

      <multiplexSourceStreams>2</multiplexSourceStreams>

      <combineStreams>2</combineStreams>

      <switchIfOffline>2</switchIfOffline>

      <switchIfBusy>2</switchIfBusy>

      <demultiplexOnCopy>2</demultiplexOnCopy>

      <markMediaToBeErasedAfterRecycling>2</markMediaToBeErasedAfterRecycling>

      <archiveCheckAll>2</archiveCheckAll>

      <archiveCheckFull>2</archiveCheckFull>

      <archiveCheckBitmap>2</archiveCheckBitmap>

      <roundRobbinDataPath>2</roundRobbinDataPath>

      <inlineAuxCopy>2</inlineAuxCopy>

      <enableParallelCopy>2</enableParallelCopy>

      <lastFull>2</lastFull>

      <lastFullWait>2</lastFullWait>

      <autoAddDataPaths>2</autoAddDataPaths>

      <noInlineCopyToSameLibrary>2</noInlineCopyToSameLibrary>

      <noAuxCopyToSameLibrary>2</noAuxCopyToSameLibrary>

      <storeKeyOnMedia>2</storeKeyOnMedia>

      <sourceCopyForSnapToTape>2</sourceCopyForSnapToTape>

      <siloCopy>2</siloCopy>

      <auxCopyReencryptData>2</auxCopyReencryptData>

      <wormCopy>2</wormCopy>

      <enableMediaRefresh>2</enableMediaRefresh>

      <useHardwareSnapshot>2</useHardwareSnapshot>

      <enableLanFreeReservationOnly>2</enableLanFreeReservationOnly>

      <useStreamsOverMultiplexing>2</useStreamsOverMultiplexing>

      <useDirectAttachedNASDrivePool>2</useDirectAttachedNASDrivePool>

      <deleteCopyAfterJobsAreDeleted>2</deleteCopyAfterJobsAreDeleted>

      </copyFlags>

    <extendedFlags>

      <dynamicStreamAllocation>2</dynamicStreamAllocation>

      <secondarySiloCopy>2</secondarySiloCopy>

      </extendedFlags>

    <library>

      <libraryName>test22</libraryName>

      </library>

    <mediaAgent>

      <mediaAgentName>tom</mediaAgentName>

      </mediaAgent>

    <drivePool>

      <drivePoolName />

      <libraryName />

      </drivePool>

    <spareMediaGroup>

      <spareMediaGroupName />

      <libraryName />

      </spareMediaGroup>

    <dataPathConfiguration>

    <resourcesOfflineWaitTimeInHoursMinutes>

      <hours />

      <minutes />

      </resourcesOfflineWaitTimeInHoursMinutes>

     <resourcesBusyWaitTimeInHoursMinutes>

      <hours />

      <minutes />

      </resourcesBusyWaitTimeInHoursMinutes>

      </dataPathConfiguration>

    <dataVerification>

      <allJobs>2</allJobs>

      <allFullJobs>2</allFullJobs>

      <verificationExpiresAfterMonths />

     <jobsOnOrAfterDate>

      <timeValue />

      </jobsOnOrAfterDate>

      </dataVerification>

     <dataEncryption>

      <encryptData>2</encryptData>

      <encryptionType />

      <encryptionKeyLength />

      <reEncryptDataUsingCipher>2</reEncryptDataUsingCipher>

      <viaMediaPassword>2</viaMediaPassword>

      </dataEncryption>

    <retentionRules>

      <retainBackupDataForDays>-1</retainBackupDataForDays>

      <retainBackupDataForCycles>-1</retainBackupDataForCycles>

      <retainArchiverDataForDays>-1</retainArchiverDataForDays>

      <jobs />

    <retentionFlags>

      <extendedRetentionFirst>2</extendedRetentionFirst>

      <enableDataAging>2</enableDataAging>

      <enableManagedDiskSpace>2</enableManagedDiskSpace>

      <selectJobsFromPreviousTier>2</selectJobsFromPreviousTier>

      <retainFullAndLastDifferential>2</retainFullAndLastDifferential>

      <jobBasedRetention>2</jobBasedRetention>

      <grcRemoteCopy>2</grcRemoteCopy>

      <flagsMask>2</flagsMask>

      </retentionFlags>

    <extendedRetentionRuleOne>

      <endDays>90</endDays>

      <graceDays>0</graceDays>

      <isEnabled>2</isEnabled>

      <rule>EXTENDED_ALLFULL</rule>

      </extendedRetentionRuleOne>

    <extendedRetentionRuleTwo>

      <endDays>365</endDays>

      <graceDays>1</graceDays>

      <isEnabled>2</isEnabled>

      <rule>EXTENDED_WEEK</rule>

      </extendedRetentionRuleTwo>

    <extendedRetentionRuleThree>

      <endDays>1825</endDays>

      <graceDays>2</graceDays>

      <isEnabled>2</isEnabled>

      <rule>EXTENDED_MONTH</rule>

      </extendedRetentionRuleThree>

    <financialCalendarXML>

      <calendarId>1</calendarId>

      <monthStartsOn>1</monthStartsOn>

      <startingMonthOfYear>JANUARY</startingMonthOfYear>

      <weekStartsOn>FRIDAY</weekStartsOn>

      </financialCalendarXML>

      </retentionRules>

    <mediaProperties>

      <multiplexingFactor>0</multiplexingFactor>

      <numberOfStreamsToCombine />

    <mediaRefreshProperties>

      <percentage>51</percentage>

    <refreshFlags>

      <enableMediaRetirementThreshold>2</enableMediaRetirementThreshold>

      </refreshFlags>

    <monthsAfterMediaWritten>

      <months>12</months>

      </monthsAfterMediaWritten>

    <monthsBeforeMediaAged>

      <months>3</months>

      </monthsBeforeMediaAged>

      </mediaRefreshProperties>

      </mediaProperties>

    <selectiveCopyRules>

      <selectiveRule>SELECTIVE_ALLFULL</selectiveRule>

      <dayStartsAt />

      <weekDayStartsOn />

      <monthStartsOn />

      <startingMonthOfYear />

      <everyXCycles />

      <everyXHours />

      <everyXDays />

      <everyXWeeks />

      <everyXMonths />

      <firstFullBackup>2</firstFullBackup>

      <selectMostRecentJob>2</selectMostRecentJob>

      <doNotAutomaticallySelectJobs>2</doNotAutomaticallySelectJobs>

      <moveJobSelectionStartTime />

      </selectiveCopyRules>

    <auxCopyFallenBehind>

      <enableAuxCopyFallenBehindAlert>2</enableAuxCopyFallenBehindAlert>

      <enableToBeCopiedDataTB>2</enableToBeCopiedDataTB>

      <toBeCopiedDataTB />

      <enableDaysOldJobs>2</enableDaysOldJobs>

      <daysOldJobs />

      <enableHoursToCopyData>2</enableHoursToCopyData>

      <hoursToCopyData />

      </auxCopyFallenBehind>

    <sourceCopy>

      <copyName />

      <storagePolicyName />

      </sourceCopy>

    <DDBPartitionInfo>

    <maInfoList>

    <mediaAgent>

      <mediaAgentName />

      </mediaAgent>

    <subStoreList>

      <diskFreeThresholdMB>5120</diskFreeThresholdMB>

      <diskFreeWarningThreshholdMB>10240</diskFreeWarningThreshholdMB>

    <accessPath>

      <path />

      </accessPath>

      </subStoreList>

      </maInfoList>

    <sidbStoreInfo>

      <operation>1</operation>

      <copyName />

      <enableNumberOfSilosToBeKeptInCache>2</enableNumberOfSilosToBeKeptInCache>

      <numberOfSilosToBeKeptInCache>1</numberOfSilosToBeKeptInCache>

    <sidbStoreFlags>

      <enableSoftwareCompression>2</enableSoftwareCompression>

      </sidbStoreFlags>

    <mediaAgentForSiloRestores>

      <mediaAgentName />

      </mediaAgentForSiloRestores>

    <destinationClientForSiloRestores>

      <mediaAgentName />

      </destinationClientForSiloRestores>

      </sidbStoreInfo>

      </DDBPartitionInfo>

    <dedupeFlags>

      <useDDBPrimingOption>2</useDDBPrimingOption>

      <optimizeHighLatencyNetwork>2</optimizeHighLatencyNetwork>

      <minimumPartitionsToBeAvailableForJobsToRun>2</minimumPartitionsToBeAvailableForJobsToRun>

      <enableSIDBArchive>2</enableSIDBArchive>

      <enableDeduplication>2</enableDeduplication>

      <temporarilyDisableDeduplication>2</temporarilyDisableDeduplication>

      <enableClientSideDedup>2</enableClientSideDedup>

      <backupSiloEnabled>2</backupSiloEnabled>

      <isSilosToBeKeptInCache>2</isSilosToBeKeptInCache>

      <enableDASHFull>2</enableDASHFull>

      <enableSiloDiskSpaceManagement>2</enableSiloDiskSpaceManagement>

      <pauseAndRecoverCurrentDDB>2</pauseAndRecoverCurrentDDB>

      <automaticallyPauseAndRecoverDDB>2</automaticallyPauseAndRecoverDDB>

      <useGlobalDedupStore>2</useGlobalDedupStore>

      <hostGlobalDedupStore>2</hostGlobalDedupStore>

      <markClientCacheDbDirty>2</markClientCacheDbDirty>

      <enableSourceSideDiskCache>2</enableSourceSideDiskCache>

      </dedupeFlags>

    <createNewDDBOptions>

      <createNewDDBeveryXdays>2</createNewDDBeveryXdays>

      <days>30</days>

      <createNewDDBeveryXtb>2</createNewDDBeveryXtb>

      <tb>100</tb>

      <createNewDDBeveryXmonths>2</createNewDDBeveryXmonths>

      <months>1</months>

    <startingFromDate>

      <timeValue />

      </startingFromDate>

      </createNewDDBOptions>

    <associations>

    <client>

      <clientName />

      </client>

    <appType>

      <appName />

      <clientName />

      </appType>

    <instance>

      <instanceName />

      <clientName />

      </instance>

    <backupSet>

      <backupsetName />

      <clientName />

      </backupSet>

    <subClient>

      <subclientName />

      <instanceName />

      <backupsetName />

      <clientName />

      </subClient>

      </associations>

    <resourcePoolsList>

      <operation>1</operation>

      <resourcePoolName />

      </resourcePoolsList>

      </storagePolicyCopyInfo>

    <useGlobalPolicy>

      <storagePolicyName />

      </useGlobalPolicy>

      </App_CreateStoragePolicyCopyReq>

     

    Depending on the selective rule you need to fill one or more fields from bellow. 

     

      <dayStartsAt />

      <weekDayStartsOn />

      <monthStartsOn />

      <startingMonthOfYear />

      <everyXCycles />

      <everyXHours />

      <everyXDays />

      <everyXWeeks />

      <everyXMonths />

      <firstFullBackup>2</firstFullBackup>

      <selectMostRecentJob>2</selectMostRecentJob>

      <doNotAutomaticallySelectJobs>2</doNotAutomaticallySelectJobs>

      <lastFull>2</lastFull>

      <lastFullWait>2</lastFullWait>

     

    Please visit the following documentation page if you need more information : 

    http://documentation.commvault.com/commvault/v10/article?p=features/storage_policy_copy/copy_xml_files.htm#Creating_a_Selective_Copy

     

     

  • Re: Workflow to create SP Copies
    Posted: 10-12-2015, 1:21 PM

    Thanks for your response.  I'm trying to run the work flow, but I'm getting the error below.  I've tried creating a new workflow, ran qlogout -all, recycle the CV services, and rebooting the CS but i have had any luck yet.

    The workflow task also completes successfully, which is ODD!!! 

    Response from QSDK Server failed with Error code [0x9] Error string [QSDK Server failed to find a connection to the Commserver, Relogin required]

     

    any suggestions

     

  • Re: Workflow to create SP Copies
    Posted: 10-12-2015, 7:35 PM

    can you post the logs for the execution of this activity and also the workflow again?

    Thanks

  • Re: Workflow to create SP Copies
    Posted: 10-23-2015, 2:36 PM

    I've added the updated XML also that I'm using to pass 3 user inputs to. I also wnted to note tha the Workflow completes successfully, but does not add the SP Copy.

     

    Qcommand.log 

    8268  597c  10/23 14:28:31 ### Command Line Parameters: qoperation execute -af C:\Program Files\CommVault\Simpana\Base\Temp\7c2bacfa-cdd4-4d9c-8ca3-9ae9cfbf1e6b.xml -cs COMMSERV -tk 3d62f3da1d7d086bf0beed432f0bfd44918f48f50f7f8fd4a6fe40d0a1ed61aff1141f3646bec73ce504e803406d76b58403946ec3b166e44daf48e91541e452b211cdcada1b763732fd83258a4e0cfb20eadc3fcdd1a82a788a24074f70a5749d94b23dc8043cbe871bb703a3df44c039d94ed5eca3b30f2d50aa1efb8e8e6f56c636fd850808b906ea4e959dcd5b0f47e32721144765725b741d70cd6da66972a8fb8409734ff2ca13e4f28839486ad1970cb2e5a706fc88ca50368965390455f1297bdb28f0b26bc5df82b385f241dfa0a2405519beac79c25bee725ad92bdd49722787710e7583a8279337ee99fed2ffb05afe02c2e052240f9e0d07ecabb0ff9ae77616f7dd6abbb1afa27a79b5ca2c26fc7ac0b78a1
    8268  597c  10/23 14:28:31 ### Input File[C:\Program Files\CommVault\Simpana\Base\Temp\7c2bacfa-cdd4-4d9c-8ca3-9ae9cfbf1e6b.xml]
    8268  597c  10/23 14:28:31 ### QSDKInitializeWithLoginFlag() - loginFlag:[false],QInitializeParameters:[
    CommServe:[COMMSERV]
    VM Name:[]
    Token File Location:[]
    use Token File :[0]
    use Token String :[0]
    use SessionFile :[1]
    Port Type:[0]
    CsClientName:[]]
    8268  597c  10/23 14:28:31 ### QSDKInitializeWithLoginFlag() - CommServer Host Name User Input:[COMMSERV]
    8268  597c  10/23 14:28:31 ### CommServer client Name:[cltcvcsrv01] from Registry
    8268  597c  10/23 14:28:31 ### QSDKInitializeWithLoginFlag() - Login with csClientName:[COMMSERV]
    8268  597c  10/23 14:28:31 ### Cvcl::init() - CVCL: Running in FIPS Mode
    8268  597c  10/23 14:28:32 ### Sending commandline request [GalaxyOperations_QExecuteReqMsg] to QSDK Server
    8268  597c  10/23 14:28:32 ### Received response [GalaxyOperations_QExecuteRespMsg] from QSDK Server
    8268  597c  10/23 14:28:32 ### Response from QSDK Server failed with Error code [0x9] Error string [QSDK Server failed to find a connection to the Commserver, Relogin required]
    8268  597c  10/23 14:28:32 ### Retrying Connection to QSDK Server
    8268  597c  10/23 14:28:32 ### GetQSDKCSSessionsFilePath()() - GetQSDKCSSessionsFilePath():QSDK Session File Path: C:\Program Files\CommVault\Simpana\qsessions.SYSTEM
    8268  597c  10/23 14:28:32 ### readAndDescrambleData()() - File Handle is NULL:Error[QERROR_API_OPENSESSFILEFAILED]
    8268  597c  10/23 14:28:32 ### Sending commandline request [QSDKLogin_QLoginInfoMsg] to QSDK Server
    8268  597c  10/23 14:28:33 ### Received response [QSDKLogin_QLoginRespMsg] from QSDK Server
    8268  597c  10/23 14:28:33 ### constructQSDKTokenString()() - constructQSDKTokenString()
    8268  597c  10/23 14:28:33 ### constructQSDKTokenString()() - Token Info:[
    CommServer:[COMMSERV]
    User:[]
    CsClientName:[COMMSERV]
    8268  597c  10/23 14:28:33 ### Sending commandline request [GalaxyOperations_QExecuteReqMsg] to QSDK Server
    8268  597c  10/23 14:28:34 ### Received response [GalaxyOperations_QExecuteRespMsg] from QSDK Server
    8268  597c  10/23 14:28:34 ### qoperation execute returned with error code:0

     

    WorkflowEngin.log

    13884 46452 10/23 14:28:34 5608114 CommandActivity              : command succeeded with result [<?xml version="1.0" encoding="UTF-8" standalone="no" ?><App_CreateStoragePolicyCopyResp><error errorCode="587203817" errorMessage="Please check for invalid or missing arguments."/></App_CreateStoragePolicyCopyResp>]
    13884 46452 10/23 14:28:34 5608114 WorkflowStep                 : completing activity [QOperationExecute (Execute_2)] with status [COMPLETED], outputs [<Execute_2><system><startTime>1445624911</startTime><status>RUNNING</status><timedOut>false</timedOut></system><outputXml>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;&lt;App_CreateStoragePolicyCopyResp&gt;&lt;error errorCode="587203817" errorMessage="Please check for invalid or missing arguments."/&gt;&lt;/App_CreateStoragePolicyCopyResp&gt;</outputXml><exitCode>0</exitCode><commandOutput>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;&lt;App_CreateStoragePolicyCopyResp&gt;&lt;error errorCode="587203817" errorMessage="Please check for invalid or missing arguments."/&gt;&lt;/App_CreateStoragePolicyCopyResp&gt;</commandOutput></Execute_2>]

  • Re: Workflow to create SP Copies
    Posted: 10-27-2015, 9:06 AM

    Hi,

     

    I was able to configure this to use the a disk target instead of the intial tape target.  I think the issue is around our naming convention ([NAS]MSDP-NAS3TL01.  Is there a way to pass special characters through XML?

  • Re: Workflow to create SP Copies
    Posted: 10-27-2015, 2:11 PM
    • isle is not online. Last active: 06-04-2019, 3:28 PM isle
    • Top 25 Contributor
    • Joined on 08-21-2012
    • NJ
    • Adept
    • Points 308

    Are they in quotes? That may do it- not able to test at the moment

  • Re: Workflow to create SP Copies
    Posted: 10-27-2015, 4:11 PM

    The name ([NAS]MSDP-NAS3TL01 does not really have any special characters that are not allowed in xml. So you should be able to use it as is?

  • Re: Workflow to create SP Copies
    Posted: 10-27-2015, 4:32 PM

    I stlll get the errors i posted last week, and I have attached the XML.

    Attachment: NewSP-CopyXML.txt
  • Re: Workflow to create SP Copies
    Posted: 10-27-2015, 4:38 PM

    No, the library name is [NAS]MS-NAS2BKLIB01.

  • Re: Workflow to create SP Copies
    Posted: 10-28-2015, 3:11 PM
    • isle is not online. Last active: 06-04-2019, 3:28 PM isle
    • Top 25 Contributor
    • Joined on 08-21-2012
    • NJ
    • Adept
    • Points 308

    Jedi_knight_82:

    I stlll get the errors i posted last week, and I have attached the XML.

    I dont see quotes around the name did you try it?

     

        <library>
     <libraryName>"[NAS]MS-NAS2BKLIB01"</libraryName>
        </library>
      
  • Re: Workflow to create SP Copies
    Posted: 10-28-2015, 3:15 PM
    • isle is not online. Last active: 06-04-2019, 3:28 PM isle
    • Top 25 Contributor
    • Joined on 08-21-2012
    • NJ
    • Adept
    • Points 308

    Give this a try instead of quotes

     

    http://www.dvteclipse.com/documentation/svlinter/How_to_use_special_characters_in_XML.3F.html

    Code	Name	Displayed as

    &#91; Left square bracket [
    &#93; Right square bracket ]
     
     
        <library>
    <libraryName>&#91;NAS&#93;MS-NAS2BKLIB01</libraryName>
    </library>
  • Re: Workflow to create SP Copies
    Posted: 10-29-2015, 6:27 PM

    Actually [NAS]MS-NAS2BKLIB01 is a valid name. Square brackets do not need to be encoded for xml to work. What error did you get?

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Close
Copyright © 2019 Commvault | All Rights Reserved. | Legal | Privacy Policy