powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-ScsiLunPath



NAME
Set-ScsiLunPath

SYNOPSIS
Configures a vmhba path to a SCSI device.

SYNTAX
Set-ScsiLunPath [[-Active] []] [-ScsiLunPath] [-Preferred] [-WhatIf] [-Confirm] [ rameters>]


DESCRIPTION
Configures a vmhba path to a SCSI device.


PARAMETERS
-Active []
Indicate that the specified path is active.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-ScsiLunPath
Specify a path to the SCSI logical unit you want to configure.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Preferred
Indicate that the specified path is preferred. Only one path can be preferred, so when a path is made preferred
, the preference is removed from the previously preferred path.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Shows the effects of the command without running it.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
ScsiLunPath


NOTES




-------------- Example 1 --------------

C:\PS>$scsilun = Get-ScsiLun -VMHost 10.23.123.100 -LunType disk

$scsipath = Get-ScsiLunPath -ScsiLun $scsilun

Set-ScsiLunPath -ScsiLunPath $sp -Preferred $true


Sets the specified SCSI Lun path as preferred.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-ScsiLunPath.html
Get-ScsiLunPath
Get-ScsiLun
Set-ScsiLun