|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaLunSerialNumber
NAME
Set-NaLunSerialNumber
SYNOPSIS
Set the serial number for the specified LUN.
SYNTAX
Set-NaLunSerialNumber [-Path] <String> [-SerialNumber] <String> [-Controller
<NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the serial number for the specified LUN. The lun must first be made off
line before changing the serial number. The serial number is a 12-character
string formed of upper and lower-case letters, numbers, and slash (/) and hy
phen (-) characters.
PARAMETERS
-Path <String>
Path of the LUN.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-SerialNumber <String>
Serial number for the LUN.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
Required? false
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 and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.Types.Lun.LunInfo
NOTES
Category: lun
API: lun-set-serial-number
-------------- Example 1 --------------
C:\PS>Set-NaLun /vol/vol2/lun101 -Offline | Set-NaLunSerialNumber -SerialNum
ber 123456abcdef | Set-NaLun -Online
Take LUN 'lun101' offline, change its serial number, and set it back online.
BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
SerialNumber : 123456abcdef
ShareState : none
Size : 2000683008
Uuid : d44cf834-180e-11df-9cab-00a09806c227
Comment :
RELATED LINKS
Get-NaLunSerialNumber
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|