New-VBRStorageProtocolPolicy

Short Description

Creates protocol policies for storage systems.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

New-VBRStorageProtocolPolicy [-iSCSI] [-FibreChannel] [-NFS] [-SMB] [-CreateExportRulesAutomatically]  [<CommonParameters>]

Detailed Description

This cmdlet creates a protocol policy for storage systems.

You can select a protocol over which you want to work with the storage system: iSCSI, FibreChannel, NFS or SMB.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

iSCSI

Defines that the storage works over the iSCSI protocol.

SwitchParameter

False

Named

False

FibreChannel

Defines that the storage works over the FibreChannel protocol.

SwitchParameter

False

Named

False

NFS

Defines that the storage works over the NFS protocol.

SwitchParameter

False

Named

False

SMB

Defines that the storage works over the SMB protocol.

SwitchParameter

False

Named

False

CreateExportRulesAutomatically

For SMB and NFS protocols.

Defines whether to automatically create export rules on the storage system during storage rescan, backup and restore operations.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRStorageProtocolPolicy

Examples

New-VBRStorageProtocolPolicyExample 1. Creating iSCSI Protocol Policy

This command creates an iSCSI protocol policy. Save it to the $protocol variable for future needs.

$protocol = New-VBRStorageProtocolPolicy -iSCSI

New-VBRStorageProtocolPolicyExample 2. Changing iSCSI Protocol for HPE 3PAR StoreServ Storage

This example shows how to change the protocol over which the HPE 3PAR StoreServ storage is connected.

$storage = Get-HP3Storage -Name "HPE 3PAR StoreServ"

$protocol = New-VBRStorageProtocolPolicy -iSCSI

Set-HP3Storage -Host $storage -ProtocolPolicy $protocol

Perform the following steps:

  1. Run the Get-HP3Storage cmdlet. Specify the Name parameter value. Save the result to the $storage variable.
  2. Run the New-VBRStorageProtocolPolicy cmdlet. Provide the iSCSI parameter. Save the result to the $protocol variable.
  3. Run the Set-HP3Storage cmdlet. Set the $storage variable as the Host parameter value. Set the $protocol variable as the ProtocolPolicy parameter value.

Related commands

Page updated 2/16/2024

Page content applies to build 12.3.0.310