Creating a storage system connection and a credential using PowerShell cmdlets for SAP HANA database

You must create a storage virtual machine (SVM) connection and a credential before using PowerShell cmdlets to back up, restore, or clone SAP HANA databases.

Before you begin

About this task

The information regarding the parameters that can be used with the cmdlet and their descriptions can be obtained by running Get-Help command_name. Alternatively, you can also refer to the Cmdlet Reference Guide.

SnapCenter Software 4.4 Cmdlet Reference Guide


  1. Initiate a PowerShell connection session by using the Open-SmConnection cmdlet.
    PS C:\> Open-SmStorageConnection
  2. Create a new connection to the storage system by using the Add-SmStorageConnection cmdlet.
    PS C:\> Add-SmStorageConnection -Storage test_vs1 -Protocol Https 
    -Timeout 60
  3. Create a new credential by using the Add-SmCredential cmdlet.

    This example shows how to create a new credential named FinanceAdmin with Windows credentials:

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