|
|
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>] [-WarningAction <ActionPreference>] [-WarningVariable <Stri
ng>] [<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 DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
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
NetApp.Ontapi.Filer.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 :
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
ShareState : none
Size : 2000683008
Uuid : d87e15a6-142a-11df-9caa-00a09806c227
RELATED LINKS
Get-NaLunSerialNumber
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|