<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble using powershell new-smclone in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135027#M11618</link>
    <description>&lt;P&gt;Hi, the syntax looks correct and is working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7666i7225C917ECEB8765/image-size/original?v=1.0&amp;amp;px=-1" alt="1.JPG" title="1.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;and this is the clone in SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7667i61CECF2CBA5605BD/image-size/original?v=1.0&amp;amp;px=-1" alt="2.JPG" title="2.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the monitor tab in the SC gui to see if you can find some errors.&lt;/P&gt;&lt;P&gt;Please check alsto if the database name and the instance name are written properly.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 16:02:36 GMT</pubDate>
    <dc:creator>matte</dc:creator>
    <dc:date>2017-10-05T16:02:36Z</dc:date>
    <item>
      <title>Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135022#M11617</link>
      <description>&lt;P&gt;I'm having trouble trying to get a clone to work from powershell. We have a nightly backup that occurs, and I just want to use that to create a clone of one of the databases, or all, doesn't matter at this point to another host.&amp;nbsp; Right now the command looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\computer&amp;gt; New-SmClone -BackupName "SQL Nightly Backup 10-04-2017_22.00.15.0920" -Resources @{"Host"="sql1&lt;BR /&gt;6-test.domain.com";"Type"="SQL Database";"Names"="sql16-test\sql16-test"} -AppPluginCode smsql -CloneToInstance "sql16-&lt;BR /&gt;test" -Suffix _clone -AutoAssignMountPoint -LogRestoreType None&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Which isn't throwing any errors at all in powershell.&amp;nbsp; But, it's not doing anything either.&amp;nbsp; It does return the following results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result : SMCoreContracts.SMResult&lt;BR /&gt;TotalCount : 0&lt;BR /&gt;DisplayCount : 0&lt;BR /&gt;Context :&lt;BR /&gt;Job : SMCoreContracts.SmJob&lt;BR /&gt;Clones : {}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:31:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135022#M11617</guid>
      <dc:creator>mbros_bfischer</dc:creator>
      <dc:date>2025-06-04T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135027#M11618</link>
      <description>&lt;P&gt;Hi, the syntax looks correct and is working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7666i7225C917ECEB8765/image-size/original?v=1.0&amp;amp;px=-1" alt="1.JPG" title="1.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;and this is the clone in SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7667i61CECF2CBA5605BD/image-size/original?v=1.0&amp;amp;px=-1" alt="2.JPG" title="2.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the monitor tab in the SC gui to see if you can find some errors.&lt;/P&gt;&lt;P&gt;Please check alsto if the database name and the instance name are written properly.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:02:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135027#M11618</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2017-10-05T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135029#M11620</link>
      <description>&lt;P&gt;I think I have everything correct as far as hosts and instance names go.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your example looks like it is cloning to the original host of the backup, is that correct? I'm attempting to clone to a different host.&amp;nbsp; I wonder is that part of the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the -Resources flag I'm giving the following as inputs&amp;nbsp;@{"Host"="remote server FQDN";"Type"="SQL Database";"Names"="SQL Instance on remote server"} and for the -CloneToInstance I'm giving it the instance on the remote server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't I have to sepcify which database from the backup I'm looking to restore?&amp;nbsp; Or does it by default try to do the whole instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:56:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135029#M11620</guid>
      <dc:creator>mbros_bfischer</dc:creator>
      <dc:date>2017-10-05T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135121#M11627</link>
      <description>&lt;P&gt;Looks like your syntax is correct..&lt;/P&gt;&lt;P&gt;but in yuor case, does the clone job start? do you see the job and all its related errors in the monitor tab? that can help to understand the problem..&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:21:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135121#M11627</guid>
      <dc:creator>matte</dc:creator>
      <dc:date>2017-10-10T07:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135272#M11635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax looks correct but I would look at the job report to see the output, when you run the new-smclone it qeues the job so wouldn't know the result right way you need to look at the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--Run Clone command 

$clonejob = New-SmClone -CloneLastBackup 0 -Resources @{"host"="Server";"Type"="SQL Database";"
Names"="DBSERVER\DatabaseName"} -AppPluginCode SMSQL -CloneToInstance "CloneServer" -AssignMountPointUnderPath "C:\SQLmntp
nt"

--Get Clone output 

Get-SmJobSummaryReport -JobId $clonejob.Job.ID&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Oct 2017 22:37:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135272#M11635</guid>
      <dc:creator>akhil393</dc:creator>
      <dc:date>2017-10-15T22:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble using powershell new-smclone</title>
      <link>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135308#M11638</link>
      <description>&lt;P&gt;Here's what I get back after executing the clone, and then monitoring it. Obviously changing the variables to the correct server, database, and instance names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SmJobId : 2587&lt;BR /&gt;JobCreatedDateTime :&lt;BR /&gt;JobStartDateTime : 10/16/2017 12:34:35 PM&lt;BR /&gt;JobEndDateTime : 10/16/2017 12:34:42 PM&lt;BR /&gt;JobDuration : 00:00:06.2816300&lt;BR /&gt;JobName : Clone life cycle of Resource Group '' with policy ''&lt;BR /&gt;JobDescription :&lt;BR /&gt;Status : Failed&lt;BR /&gt;IsScheduled : False&lt;BR /&gt;JobError : Index was out of range. Must be non-negative and less than the size of the collection.&lt;BR /&gt;Parameter name: index&lt;BR /&gt;Index was out of range. Must be non-negative and less than the size of the collection.&lt;BR /&gt;Parameter name: index&lt;BR /&gt;JobType : CloneLifeCycle&lt;BR /&gt;PolicyName :&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:41:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Trouble-using-powershell-new-smclone/m-p/135308#M11638</guid>
      <dc:creator>mbros_bfischer</dc:creator>
      <dc:date>2017-10-16T17:41:26Z</dc:date>
    </item>
  </channel>
</rss>

