< Back
Export-iBMCLicense
Post
NAME Export-iBMCLicense
SYNOPSIS
Export iBMC License
SYNTAX
Export-iBMCLicense [-Session] <RedfishSession[]> [-ExportTo] <String[]> [<CommonParameters>]
DESCRIPTION
Export iBMC License.
V3 servers and some V5 servers do not support this function. For details, see the iBMC User Guide.
PARAMETERS
-Session <RedfishSession[]>
iBMC redfish session object which is created by Connect-iBMC cmdlet.
A session object identifies an iBMC server to which this cmdlet will be executed.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ExportTo <String[]>
Indicates the dest export to file path of license file.
It supports HTTPS, SFTP, NFS, SCP, CIFS and FILE file transfer protocols.
For examples:
- export to ibmc local temporary path: /tmp/License.xml
- export to remote path: protocol://username:password@hostname/directory/License.xml
support protocol list: HTTPS, SFTP, NFS, SCP, CIFS
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
OUTPUTS
null
Returns null if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> Export-iBMCLicense -Session $session -ExportTo "/tmp/License.xml"
This example shows how to export iBMC license to ibmc temp file
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> Export-iBMCLicense -Session $session -ExportTo "NFS://10.1.1.3/data/nfs/License.xml"
This example shows how to export iBMC license to NFS network file
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCLicense
Install-iBMCLicense
Export-iBMCLicense
Delete-iBMCLicense
Connect-iBMC
Disconnect-iBMC
SYNOPSIS
Export iBMC License
SYNTAX
Export-iBMCLicense [-Session] <RedfishSession[]> [-ExportTo] <String[]> [<CommonParameters>]
DESCRIPTION
Export iBMC License.
V3 servers and some V5 servers do not support this function. For details, see the iBMC User Guide.
PARAMETERS
-Session <RedfishSession[]>
iBMC redfish session object which is created by Connect-iBMC cmdlet.
A session object identifies an iBMC server to which this cmdlet will be executed.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ExportTo <String[]>
Indicates the dest export to file path of license file.
It supports HTTPS, SFTP, NFS, SCP, CIFS and FILE file transfer protocols.
For examples:
- export to ibmc local temporary path: /tmp/License.xml
- export to remote path: protocol://username:password@hostname/directory/License.xml
support protocol list: HTTPS, SFTP, NFS, SCP, CIFS
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
OUTPUTS
null
Returns null if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> Export-iBMCLicense -Session $session -ExportTo "/tmp/License.xml"
This example shows how to export iBMC license to ibmc temp file
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> Export-iBMCLicense -Session $session -ExportTo "NFS://10.1.1.3/data/nfs/License.xml"
This example shows how to export iBMC license to NFS network file
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCLicense
Install-iBMCLicense
Export-iBMCLicense
Delete-iBMCLicense
Connect-iBMC
Disconnect-iBMC