Data Backup and Recovery

Snapcenter 4.6 Flexclone operation via Powershell Cmdlet

tbshpgn
2,093 Views

Hello community,

we are using Snapcenter Powershell Cmdlets to deploy on-demand Flexclones of our ERP database for testing purposes.

 

After updating our Snapcenter installation to version 4.6, the cmdlet "Add-SmCloneJob" fails with error message:

 

--

Add-SmCloneJob : Operation unauthorized. The user you are trying to operate does not have a valid token.
In Zeile:1 Zeichen:15
+ ... mclonejob = Add-SmCloneJob $instance -PluginCode SMSQL -ClonetoInstan ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (SnapManager.Client.PSModule.AddCloneJob:AddCloneJob) [Add-SmCloneJob], Exception
+ FullyQualifiedErrorId : -1,SnapManager.Client.PSModule.AddCloneJob

--

 

Resourcegroup is created in Snapcenter - but no clone operations are triggered. No authentication error, while login to Snapcenter via Powershell. Username and password are correct.

 

Do you have any ideas? Im not sure what's meant with "token" in this context.

 

All this works in further versions of Snapcenter.

 

Greets

Tobi

 

 

1 ACCEPTED SOLUTION

tbshpgn
1,898 Views

Hello @hmoubra,

 

we are not using SCV in our environment. 

 

We could fix the issue yesterday with NetApp tech support. The solution was to install the whole Snapcenter Plugin for Windows on the host running the script.

 

Seems like NetApp improved something with version 4.6. In earlier version it was sufficient to install the Snapcenter Powershell Toolkit.

 

Greets,

tbshpgn

View solution in original post

2 REPLIES 2

hmoubara
1,899 Views

Hello @tbshpgn

 

Are you able to perform a clone from the Snapcenter GUI or only erroring out when doing it via powershell?

For security, a token is usually passed with each request and in used in all API calls for client validation. You would need to refresh that by pushing the server credentials within Snapcenter.

 

  1. Login to the SnapCenter webpage
  2. Selects Hosts
  3. Click the SCV hostname
  4. Check the box to Push server credentials
  5. Click Submit

Hope this answer your question.

 

Thanks

tbshpgn
1,899 Views

Hello @hmoubra,

 

we are not using SCV in our environment. 

 

We could fix the issue yesterday with NetApp tech support. The solution was to install the whole Snapcenter Plugin for Windows on the host running the script.

 

Seems like NetApp improved something with version 4.6. In earlier version it was sufficient to install the Snapcenter Powershell Toolkit.

 

Greets,

tbshpgn

Public