< Back
Export-iBMCBIOSSetting
Post
NAME Export-iBMCBIOSSetting
SYNOPSIS
Export iBMC BIOS and BMC Settings
SYNTAX
Export-iBMCBIOSSetting [-Session] <RedfishSession[]> [-DestFilePath] <String[]> [<CommonParameters>]
DESCRIPTION
Export iBMC BIOS and BMC Settings
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
-DestFilePath <String[]>
The dest settings file path:
Dest path examples:
1. export to ibmc local temporary path: /tmp/filename.xml
2. export to remote path: protocol://username:password@hostname/directory/filename.xml
support protocol list: sftp, https, nfs, cifs, scp
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
PSObject[]
Returns the export configuration task array 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:\\> $Tasks = Export-iBMCBIOSSetting $session 'nfs://10.10.10.3/data/nfs/bios.xml'
This example shows how to export bios setting file to remote NFS storage
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Credential $credential -TrustCert
PS C:\\> $ExportToPath = @('nfs://10.10.10.3/data/nfs/2.xml', 'nfs://10.10.10.3/data/nfs/3.xml')
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session $ExportToPath
This example shows how to export bios setting file to remote NFS storage for multiply servers
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session '/tmp/bios.xml'
PS C:\\> $Tasks
Id : 4
Name : Export Config File Task
ActivityName : [10.1.1.2] Export Config File Task
TaskState : Completed
StartTime : 2018-11-14T17:52:01+08:00
EndTime : 2018-11-14T17:53:20+08:00
TaskStatus : OK
TaskPercent : 100%
This example shows how to export bios setting file to iBMC local storage
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $LocalFilePath = 'c:\\bios.xml'
PS C:\\> $BMCFilePath = '/tmp/bios.xml'
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session $BMCFilePath
PS C:\\> $Tasks
PS C:\\> Invoke-iBMCFileDownload -Session $session `
-BMCFileUri $BMCFilePath -LocalFileUri $LocalFilePath
Host : 10.1.1.2
Id : 4
Name : Export Config File Task
ActivityName : [10.1.1.2] Export Config File Task
TaskState : Completed
StartTime : 2018-11-14T17:52:01+08:00
EndTime : 2018-11-14T17:53:20+08:00
TaskStatus : OK
TaskPercent : 100%
This example shows how to export bios setting file to iBMC local storage and download the file to local
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Import-iBMCBIOSSetting
Reset-iBMCBIOSSetting
Restore-iBMCFactorySetting
Connect-iBMC
Disconnect-iBMC
SYNOPSIS
Export iBMC BIOS and BMC Settings
SYNTAX
Export-iBMCBIOSSetting [-Session] <RedfishSession[]> [-DestFilePath] <String[]> [<CommonParameters>]
DESCRIPTION
Export iBMC BIOS and BMC Settings
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
-DestFilePath <String[]>
The dest settings file path:
Dest path examples:
1. export to ibmc local temporary path: /tmp/filename.xml
2. export to remote path: protocol://username:password@hostname/directory/filename.xml
support protocol list: sftp, https, nfs, cifs, scp
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
PSObject[]
Returns the export configuration task array 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:\\> $Tasks = Export-iBMCBIOSSetting $session 'nfs://10.10.10.3/data/nfs/bios.xml'
This example shows how to export bios setting file to remote NFS storage
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Credential $credential -TrustCert
PS C:\\> $ExportToPath = @('nfs://10.10.10.3/data/nfs/2.xml', 'nfs://10.10.10.3/data/nfs/3.xml')
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session $ExportToPath
This example shows how to export bios setting file to remote NFS storage for multiply servers
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session '/tmp/bios.xml'
PS C:\\> $Tasks
Id : 4
Name : Export Config File Task
ActivityName : [10.1.1.2] Export Config File Task
TaskState : Completed
StartTime : 2018-11-14T17:52:01+08:00
EndTime : 2018-11-14T17:53:20+08:00
TaskStatus : OK
TaskPercent : 100%
This example shows how to export bios setting file to iBMC local storage
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $LocalFilePath = 'c:\\bios.xml'
PS C:\\> $BMCFilePath = '/tmp/bios.xml'
PS C:\\> $Tasks = Export-iBMCBIOSSetting $session $BMCFilePath
PS C:\\> $Tasks
PS C:\\> Invoke-iBMCFileDownload -Session $session `
-BMCFileUri $BMCFilePath -LocalFileUri $LocalFilePath
Host : 10.1.1.2
Id : 4
Name : Export Config File Task
ActivityName : [10.1.1.2] Export Config File Task
TaskState : Completed
StartTime : 2018-11-14T17:52:01+08:00
EndTime : 2018-11-14T17:53:20+08:00
TaskStatus : OK
TaskPercent : 100%
This example shows how to export bios setting file to iBMC local storage and download the file to local
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Import-iBMCBIOSSetting
Reset-iBMCBIOSSetting
Restore-iBMCFactorySetting
Connect-iBMC
Disconnect-iBMC