This is an archive version of the document. To get the most up-to-date information, see the current version.

Set-NetAppHost

Short Description

Modifies NetApp storage system settings.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Set-NetAppHost -Host <CNaHost> [-Name <string>] [-Description <string>] [-UserName <string>] [-Password <string[-Credentials <CInternalCredentials>] [-IsHTTP <bool>] [-Port <int>] [-Proxy <IProxy[]>] [-MountServer <CHost>] [-VolumeScanType <VBRVolumeScanType> {All | Exclude | Include}] [-IncludedVolume <CSanInfrastructureVolume[]>] [-IncludedWildcard <string[]>] [-ExcludedWildcard <string[]>] [-ExcludedVolume <CSanInfrastructureVolume[]>] [-EnableProxyAutoSelection] [-ProtocolPolicy <VBRStorageProtocolPolicy>][-WhatIf] [-Confirm][<CommonParameters>]

Detailed Description

This cmdlet modifies settings of NetApp storage systems. When you modify storage system settings, the cmdlet automatically rescans storage systems.

To modify settings, enter the necessary parameters with new values. The parameters that you omit will remain unchanged.

Set-NetAppHost Tip:

You can specify the scope of volumes that you want to rescan with the VBRVolumeScanType parameter.

Run Get-NetAppInfrastructureVolume to get an array of volumes from NetApp storage system.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Host

Specifies a storage that you want to modify.

True

Named

True (ByValue,
ByProperty
Name)

False

Name

Specifies the storage IP address or DNS name.

True

Named

False

False

Description

Specifies a description of the storage.

False

Named

False

False

UserName

Specifies a username that you want to use for authenticating with the storage.

True

Named

False

False

Password

Specifies the password you want to use for authenticating with the storage.

True

Named

False

False

Credentials

Specifies the CCredentials object containing the credentials record you want to use for authenticating with the storage.

True

Named

False

False

IsHTTP

If set to TRUE, the cmdlet will use the HTTP protocol for connecting with the NetApp storage. Otherwise, HTTPS protocol will be selected.

False

Named

False

False

Port

Specifies the port for connecting with the NetApp storage.

Default: 443.

False

Named

False

False

Proxy

Specifies an array of proxies you want to use with this storage.

False

Named

False

False

EnableProxyAutoSelection

Indicates that Veeam Backup & Replication will use automatic proxy selection.

False

Named

False

False

ProtocolPolicy

Specifies the protocol policy for the storage.

Accepts the VBRStorageProtocolPolicy type.

False

Named

False

False

MountServer

Specifies the mount server that you want to use to work with this storage.

False

Named

False

False

VolumeScanType

Specifies the scope of volumes that you want to rescan.

You can use the following options to rescan the volumes:

  • All - choose this option to scan all volumes that were added to your backup infrastructure with the initial scan.
  • Exclude - choose this option to exclude volumes from scan.
    NOTE: Veeam Backup & Replication will not show excluded volumes in the backup infrastructure after the rescan.
    Use the ExcludedVolume parameter to specify the excluded volumes.
  • Include - choose this option to scan only the specified storage volumes.
    Use the IncludedVolume parameter to specify the included volumes.

False

Named

False

 

IncludedVolume

For the VolumeScanType parameter with the include option.

Specifies an array of storage volumes that you want to rescan.

NOTE: Veeam Backup & Replication will show only rescanned volumes in the backup infrastructure.

Accepts the CSanInfrastructureVolume type.

False

Named

False

 

IncludedWildcard

For the VolumeScanType parameter with the include option.

Specifies an array of storage volumes with wildcard characters. Veeam Backup & Replication will rescan only those volumes which names are specified with these wildcard characters.

False

Named

False

False

ExcludedVolume

For the VolumeScanType parameter with the exclude option.

Specifies an array of storage volumes that you do not want to rescan.

NOTE: Veeam Backup & Replication will not show the excluded volumes in the backup infrastructure after the rescan.

Accepts the CSanInfrastructureVolume type.

False

Named

False

 

ExcludedWildcard

For the VolumeScanType parameter with the exclude option.

Specifies an array of storage volumes with wildcard characters. Veeam Backup & Replication will not rescan the volumes which names are specified with these wildcard characters.

False

Named

False

True

WhatIf

Defines whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

False

Named

False

False

Confirm

Defines that the cmdlet will ask if the user accepts the TLS certificate thumbprint that is installed on the NetApp storage.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This example shows how to change the port number and protocol for connecting with NetApp storage system.

  1. Run Get-NetAppHost to get a storage system that you want to modify. Save the result to the $storage variable.
  2. Run Set-NetAppHost with the $storage variable.

$storage = Get-NetAppHost -Name "NetApp Store"

Set-NetAppHost -Host $storage -IsHTTP $true -Port 80

Example 2

This example shows how to exclude specified NetApp storage volumes from the rescan session.

  1. Run Get-NetAppHost to get the storage system whose settings you want to modify. Save the result to the $storage variable.
  2. Run Get-NetAppInfrastructureVolume to get volumes that you do not want to rescan. Save the result to the $volumes variable.
  3. Run Set-NetAppHost with the $storage and $volumes variables.

$storage = Get-NetAppHost -Name "NetApp Store"

$volumes = Get-NetAppInfrastructureVolume -Name "ISCSI Volume4", "ISCSI Volume5", "NFS Volume1"

Set-NetAppHost -Host $storage -VolumeScanType Exclude -ExcludedVolume $volumes

Example 3

This example shows shows how to rescan all volumes added to an NetApp storage system.

  1. Run Get-NetAppHost to get the storage system whose settings you want to modify. Save the result to the $storage variable.
  2. Run Get-NetAppInfrastructureVolume with the Host parameter to get volumes that you want to rescan. Save the result to the $volumes variable.
  3. Run Set-NetAppHost with the $storage and $volumes variables.

$storage = Get-NetAppHost -Name "NetApp Store"

$volumes = Get-NetAppInfrastructureVolume -Host $storage

Set-NetAppHost -Host $storage -VolumeScanType Include -Included $volumes

Related Commands

Get-NetAppHost

Get-VBRCredentials

Get-VBRViProxy

New-VBRStorageProtocolPolicy

Get-NetAppInfrastructureVolume