Quantcast
Channel: All BladeSystem - General posts
Viewing all articles
Browse latest Browse all 1655

Re: How to clone BIOS settings using Get-HPEBIOSSetting?

$
0
0

Greetings,

Here is my answer for your query.

Are we supposed to use multiple cmdlets to apply the values from Get-HPEBIOSSetting?

Yes, you should use mutliple cmdlets to apply the values from one server to another server.

Here is an example how to clone SystemLocalityInformationTable from one server to another server.

1. Establish a connection to base server 

PS C:\> $baseServer = Connect-HPEBIOS -IP 10.20.30.1 -Username abcuser -Password abc123 -DisableCertificateAuthentication

PS C:\> $baseServer | Get-HPEBIOSACPI_SLIT | fl


IP : 10.20.30.1
Hostname : abc1.domain.com
Status : OK
SystemLocalityInformationTable : Enabled

2. Execute Get-HPEBIOSSetting and store it in a variable

PS C:\> $biosSettings = $baseServer | Get-HPEBIOSSetting

3. Establish a connection to target servers (one or more)

PS C:\> $targetServers = Connect-HPEBIOS -IP 10.20.30.2-3 -Username abcuser -Password abc123 -DisableCertificateAuthentication

PS C:\> $targetServers | Get-HPEBIOSACPI_SLIT | fl


IP : 10.20.30.2
Hostname : abc2.domain.com
Status : OK
SystemLocalityInformationTable : Disabled

IP : 10.20.30.3
Hostname : abc3.domain.com
Status : OK
SystemLocalityInformationTable : Disabled

4. Clone a SystemLocalityInformationTable settings from source to target servers.

PS C:\> $biosSettings.CurrentBIOSSettings | Set-HPEBIOSACPI_SLIT -Connection $targetServers

PS C:\> $targetServers | Get-HPEBIOSACPI_SLIT | fl


IP : 10.20.30.2
Hostname : abc2.domain.com
Status : OK
SystemLocalityInformationTable : Enabled

IP : 10.20.30.3
Hostname : abc3.domain.com
Status : OK
SystemLocalityInformationTable : Enabled

Please help me know if you need more informations.

Happy scripting

 


Viewing all articles
Browse latest Browse all 1655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>