ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to set Powerprofile with Powershell

Patrik_Hansson
Occasional Advisor

Unable to set Powerprofile with Powershell

Hi
Downloaded and installed the HPBIOSCmdlets.

Can successfully use the Get- commands and talk to bios. But if i try to Set a for example new power profile it shows an error:

 

Get-HPBIOSPowerProfile -Connection $connection 

IP       	Hostname      	 StatusType	HPPowerProfile                                
192.168.xx.xx  servname.fqdn.com  OK 		Balanced                                      

Set-HPBIOSPowerProfile -Connection $connection -Profile Maximum_Performance -OutputType RawText 
The target server does not support Profile. Check more details about how to use this Cmdlet from help.

Any idea what could be wrong ?

 

12 REPLIES

Re: Unable to set Powerprofile with Powershell

I have the same issue. Have you been able to solve it?

 

Regards,

Stephan van der Plas

Patrik_Hansson
Occasional Advisor

Re: Unable to set Powerprofile with Powershell

No, sorry i haven't.

I have sent the question to a a person that said he might have an idea of whats wrong but he is pretty busy i belive.

Will post back if i get an aswer.

Jimmy Vance
HPE Pro

Re: Unable to set Powerprofile with Powershell

What model server are you working with?  I'm not to familiar with the cmdlets, if you set it manually and do a get, does it show the same setting name as you are trying to use?

 

 




__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Patrik_Hansson
Occasional Advisor

Re: Unable to set Powerprofile with Powershell

Hi

 

DL380 Gen9

Yes i tried setting the same as in the Get, so for example i do i Get and get Balanced returned.

Then i try and Set Balanced i get the same error as above.

GZahidi
Advisor

Re: Unable to set Powerprofile with Powershell

Hi Patrik

I am not able to reproduce the issue on Gen9 DL380. Following are the  opertaions on Set-HPBIOSPowerProfile and Get-HPBIOSPowerProfile cmdlet

PS C:\> $conn | Get-HPBIOSPowerProfile

IP                                Hostname                                    StatusType                     HPPowerProfile
--                                 --------                                         -----------                         -------------
192.168.14.10                 WIN-8KY7IIXYZR                          OK                                  Balanced

PS C:\> $conn | Set-HPBIOSPowerProfile -Profile Balanced

PS C:\> $conn | Get-HPBIOSPowerProfile

IP                                Hostname                                        StatusType                HPPowerProfile
--                                --------                                              ----------                    --------------
192.168.14.10                 WIN-8KY7IIXYZR                              OK                            Balanced

 

PS C:\> $conn | Set-HPBIOSPowerProfile -Profile Maximum_Performance
PS C:\> $conn | Get-HPBIOSPowerProfile

IP                               Hostname                                        StatusType                   HPPowerProfile
--                                --------                                             ----------                      --------------
192.168.14.10               WIN-8KY7IIXYZR                                OK                          Maximum Performance

 

I also tried to reproduce on other machine (as below), But I could not reproduced the issue

 

DL380 Gen9  ----->      Working

BL460 Gen9 ------>      Working

DL80 Gen9  ------->     Working

DL385p Gen8 ------->   Working

 

Can you please provide us your environment details 

1) Client OS ? 

2) PowerShell Version?

3) Conrep Version from $conn.ConnectionInfo ?

Thanks 

Patrik_Hansson
Occasional Advisor

Re: Unable to set Powerprofile with Powershell

Here is the info you wanted.

1) Client OS ? 
 Windows 2012 R2

2) PowerShell Version?

Version          : 4.0

3) Conrep Version from $conn.ConnectionInfo ?
ConrepVersion                    : 4.3.0.0

 

 

GZahidi
Advisor

Re: Unable to set Powerprofile with Powershell

Hello Patrik 

Please do the following step on Target server to  verify conrep 

1) locate the .dat file from the ConnectionInfo.ConrepDataFile

2) serach for "Power_Profile"  in .dat file, Change the value of "Power_Profile" to any of ("Balanced", "Custom", "Minimum_Power", "Maximum_Performance") value and save the .dat file

3) Navigate to conrep.exe file from PowerShell (let say on target server conrep.exe is in C:\HPBIOSCmdlets_Tools\min_conrep navigate to min_conrep directory then write "conrep.exe -l -f <.dat file>"

4) check "Conrep Return Code 0" 

5)After that do the Get-HPBIOSPowerProfile and check your are geting same value what you set in .dat file.

If it not working please send us  .dat file

How you are using HPBIOS cmdlets whether it is through ilo or through target server ?

 

Patrik_Hansson
Occasional Advisor

Re: Unable to set Powerprofile with Powershell

Hi

Did the steps, and if i change the power_profile in the .dat, run the conrep.exe command and then do i get-HPBIOSPowerProfile i get the new value set in the .dat

I'm running agains target ip (the ip set in windows) and not ilo.

Still can't use the Set- commands.

 

 

GZahidi
Advisor

Re: Unable to set Powerprofile with Powershell

Hello Patrik

It seems there is issue from BIOS cmdlets and Conrep.dat data exchange. 

Can you provide us "history.log" file from client machine after executing Set-HPBIOSPowerProfile. 

Location of log file on cleint machine

"C:\Program Files\HEWLETT-PACKARD\PowerShell\Modules\HPBIOSCmdlets\Tools\min_conrep"

Patrik_Hansson
Occasional Advisor

Re: Unable to set Powerprofile with Powershell

[2016-03-02 08:00:53.0795] Executing Init operation to 192.168.99.51 and timestamp is 201603020800530795
[2016-03-02 08:00:54.5486] Success to Execute init operation to 192.168.99.51 
[2016-03-02 08:00:54.5486] 2Executing CONREP get operation to 192.168.99.51 and timestamp is 201603020800545486
[2016-03-02 08:01:02.9861] Success to check Conrep execution on 192.168.99.51 and timestamp is 201603020800545486

Here's what's in it after executing a Set-

 

Chrisp2
Occasional Visitor

Re: Unable to set Powerprofile with Powershell

Was this ever resloved? I am seeing the same things while trying the Set cmdlet.

GZahidi
Advisor

Re: Unable to set Powerprofile with Powershell

Sorry for late reply,

We have released HPBIOSCmdlets 1.10.1.

Please update your HPBIOSCmdlets if you are using old  version.

In latest version of HPBIOSCmdlets we addressed the powerprofile issue.