Creating a storage system connection and a Run As account using PowerShell cmdlets

You must create a storage virtual machine (SVM) connection and a Run As account before using PowerShell cmdlets to back up, restore, or clone SAP HANA databases, custom plug-in resources, SQL Server databases, or Windows file systems.

Before you begin

You must have prepared the PowerShell environment to execute the PowerShell cmdlets.

About this task

For information about PowerShell cmdlets, use the SnapCenter cmdlet help or see the cmdlet reference information.

SnapCenter Software 4.0 Windows Cmdlet Reference Guide

Steps

  1. Initiate a PowerShell connection session by using the Open-SmConnection cmdlet.
    Example

    This example opens a PowerShell session:

    PS C:\> Open-SmStorageConnection
    
  2. Create a new connection to the storage system by using the Add-SmStorageConnection cmdlet.
    Example

    This example creates a new storage system connection:

    PS C:\> Add-SmStorageConnection -SVM test_vs1 -Protocol Https 
    -Timeout 60
    
  3. Create a new Run As account by using the Add-SmRunAs cmdlet.
    Example

    This example creates a new Run As account named FinanceAdmin with Windows credentials:

    PS C:> Add-SmRunAs -Name FinanceAdmin -AuthMode Windows 
    -Credential sddev\administrator