Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Add-NaLicense


NAME
Add-NaLicense

SYNOPSIS
Enable license for a Data ONTAP service.

SYNTAX
Add-NaLicense [-Codes] <String[]> [-Controller <NaController>] [-WhatIf] [-C
onfirm] [<CommonParameters>]


DESCRIPTION
Enable license for a Data ONTAP service.


PARAMETERS
-Codes <String[]>
One or more license codes of a Data ONTAP service to be enabled.

Required? true
Position? 1
Default value
Accept pipeline input? true (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.License.LicenseInfo


NOTES


Category: license
API: license-add

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

C:\PS>Add-NaLicense XXXXXXX YYYYYYY


Add licenses for two Data ONTAP services, for which the license codes are 'X
XXXXXX' and 'YYYYYYY'.


Code : XXXXXXX
Count : 0
ExpirationTimestamp : 0
ExpirationTimestampDT :
InstallationTimestamp : 1280344876
InstallationTimestampDT : 7/28/2010 7:21:16 PM
IsDemo : False
IsExpired : False
IsLicensed : True
IsSite : True
Length : 0
LengthTS : 00:00:00
NodeCount : 0
Platform :
Service : snaprestore
StorageCount :
ExpirationTimestampSpecified : True
InstallationTimestampSpecified : True
LengthSpecified : True
NodeCountSpecified : True
StorageCountSpecified : False

Code : YYYYYYY
Count : 0
ExpirationTimestamp : 0
ExpirationTimestampDT :
InstallationTimestamp : 1280344876
InstallationTimestampDT : 7/28/2010 7:21:16 PM
IsDemo : False
IsExpired : False
IsLicensed : True
IsSite : True
Length : 0
LengthTS : 00:00:00
NodeCount : 0
Platform :
Service : sv_ontap_pri
StorageCount :
ExpirationTimestampSpecified : True
InstallationTimestampSpecified : True
LengthSpecified : True
NodeCountSpecified : True
StorageCountSpecified : False


-------------- Example 2 --------------

C:\PS>Import-Clixml C:\OntapLicenses.xml | Add-NaLicense


Add all licenses that were previously written to an XML file.






RELATED LINKS
Get-NaLicense
Remove-NaLicense







 Data ONTAP® PowerShell Toolkit