|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaLicense
NAME
Get-NaLicense
SYNOPSIS
Returns information about the current list of licensed Data ONTAP services.
SYNTAX
Get-NaLicense [[-Name] <String[]>] [-Installed] [-Controller <NaController>]
[<CommonParameters>]
DESCRIPTION
Returns information about the current list of licensed Data ONTAP services,
their codes, the type of license, and, if it is a time limited license, the
expiration date. It also tells the services that are not licensed for your a
ppliance, or if a time limited licensed service has expired.
For Data ONTAP 8.2 and up, only current licensed packages are returned. Pri
or to Data ONTAP 8.2, use the -Installed switch to list only installed servi
ces.
PARAMETERS
-Name <String[]>
The names of the licenses desired, or blank to list them all.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Installed
Specify to retrieve only installed licenses.
For Data ONTAP 8.2 and up, this parameter has no effect.
Required? false
Position? named
Default value
Accept pipeline input? false
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
<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.LicenseInfoBase
NOTES
Category: license
API: license-list-info
-------------- Example 1 --------------
C:\PS>Get-NaLicense
List all Data ONTAP licenses.
-------------- Example 2 --------------
C:\PS>Get-NaLicense | ? {$_.Code -ne $null} | Export-Clixml c:\OntapLicenses
.xml
Get all valid licenses and store in an XML file.
-------------- Example 3 --------------
C:\PS>Get-NaLicense snapman* -Installed
Get all installed SnapManager licenses.
Code : XXXXXXX
Count : 0
ExpirationTimestamp : 0
ExpirationTimestampDT :
InstallationTimestamp : 1265913914
InstallationTimestampDT : 2/11/2010 6:45:14 PM
IsDemo : False
IsExpired : False
IsLicensed : True
IsSite : True
Length : 0
LengthTS : 00:00:00
NodeCount : 0
Platform :
Service : snapmanager_hyperv
StorageCount :
ExpirationTimestampSpecified : True
InstallationTimestampSpecified : True
LengthSpecified : True
NodeCountSpecified : True
StorageCountSpecified : False
-------------- Example 4 --------------
C:\PS>Get-NaLicense
Get all installed licenses for a Data ONTAP 8.2 controller.
Service Licensed Owner Expirati
on
------- -------- ----- --------
--
CIFS True stl2240-2-1
FlexClone True stl2240-2-1
NFS True stl2240-2-1
SnapMirror True stl2240-2-1
RELATED LINKS
Add-NaLicense
Remove-NaLicense
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|