Creating a storage system connection and a Run As account using PowerShell cmdlets for SAP HANA database

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

About this task

The SnapCenter cmdlet help and the cmdlet reference information contain more information about PowerShell cmdlets.

SnapCenter Software 4.1 Windows Cmdlet Reference Guide

Steps

  1. Initiate a PowerShell connection session by using the Open-SmConnection cmdlet.
    Example
    PS C:\> Open-SmStorageConnection
    
  2. Create a new connection to the storage system by using the Add-SmStorageConnection cmdlet.
    Example
    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 shows how to create a new Run As account named FinanceAdmin with Windows credentials:

    PS C:> Add-SmRunAs -Name FinanceAdmin -AuthMode Windows 
    -Credential sddev\administrator
    
  4. Add the SAP HANA communication host to SnapCenter Server.
    Example
    PS C:> Add-SmHost -HostName 10.232.204.61 -OSType Windows -RunAsName FinanceAdmin -PluginCode hana
    
  5. Install the package and the SnapCenter Plug-in for SAP HANA Database on the host.
    For Linux:
    Example
    PS C:> Install-SmHostPackage -HostNames 10.232.204.61 -ApplicationCode hana
    
    For Windows:
    Example
    Install-SmHostPackage -HostNames 10.232.204.61 -ApplicationCode hana -FilesystemCode scw -RunAsName FinanceAdmin
    
    
  6. Set the path to the HDBSQL client.
    For Windows:
    Example
    PS C:> Set-SmConfigSettings -Plugin -HostName 10.232.204.61 -PluginCode hana -configSettings @{"HANA_HDBSQL_CMD" = "C:\Program Files\sap\hdbclient\hdbsql.exe"}
    
    For Linux:
    Example
    Set-SmConfigSettings -Plugin -HostName scs-hana.gdl.englab.netapp.com -PluginCode hana -configSettings @{"HANA_HDBSQL_CMD"="/usr/sap/hdbclient/hdbsql"}