NAME
Set-DcsPhysicalDiskIndicatorLed
SYNOPSIS
Turns on or off the physical disk indicator LED light.
SYNTAX
Set-DcsPhysicalDiskIndicatorLed -Disk <Object> [-Server <Object>] -LedIndicatorEnabled <Object> [<CommonParameters>]
DESCRIPTION
Turns on or off the physical disk indicator LED light. To execute this command, the physical disk must be attached to a backplane that supports SCSI Enclosure Services (SES).
PARAMETERS
- -Disk <Object>
- PhysicalDiskData object that identifies the physical disk for which the LED light will be turned on or off, either by ID or caption. The PhysicalDiskData object can be obtained from the cmdlet Get-DcsPhysicalDisk
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Server <Object>
- ServerHostData object, computer name, or ID that identifies the server where the physical disk resides. The computer name must be unique or fully qualified.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -LedIndicatorEnabled <Object>
- Boolean value that specifies whether the LED indicator will be turned on (True) or off (False).
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- <CommonParameters>
-
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
PhysicalDiskData object
OUTPUTS
None
NOTES
Also see Get-DcsPhysicalDisk
EXAMPLES
$pd = @(Get-DcsPhysicalDisk | where -Property IsAttachedToBackplaneSES -EQ $true)[0]; if($pd){Set-DcsPhysicalDiskIndicatorLed -Disk $pd -LedIndicatorEnabled $true}
This example turns on the physical disk indicator LED light.
$pd = @(Get-DcsPhysicalDisk | where -Property IsAttachedToBackplaneSES -EQ $true)[0]; if($pd){Set-DcsPhysicalDiskIndicatorLed -Disk $pd -LedIndicatorEnabled $false}
This example turns off the physical disk indicator LED light.
$server = @(Get-DcsServer | sort -Property Caption)[0]; $pd = @(Get-DcsPhysicalDisk | where -Property IsAttachedToBackplaneSES -EQ $true)[0]; if($pd){Set-DcsPhysicalDiskIndicatorLed -Disk $pd -Server $server -LedIndicatorEnabled $true}
This example turns on the physical disk indicator LED light on the specified server.
$server = @(Get-DcsServer | sort -Property Caption)[0]; $pd = @(Get-DcsPhysicalDisk | where -Property IsAttachedToBackplaneSES -EQ $true)[0]; if($pd){Set-DcsPhysicalDiskIndicatorLed -Disk $pd -Server $server -LedIndicatorEnabled $false}
This example turns off the physical disk indicator LED light on the specified server.