Server Management - Remote Server Management
1821537 Members
2640 Online
109633 Solutions
New Discussion

System utilities F9_from web browser

 
SOLVED
Go to solution
Sivaclod
Regular Visitor

System utilities F9_from web browser

when we login the (gen 9 /10) host from web-browser ilo shoud hit(F9) automatically  using any tool(rest api or powershlle) after reboot host. Is any way to get it.. 

 

 
 

 

 

7 REPLIES 7
pchops
HPE Pro

Re: System utilities F9_from web browser


@Sivaclod wrote:

when we login the (gen 9 /10) host from web-browser ilo shoud hit(F9) automatically  using any tool(rest api or powershlle) after reboot host. Is any way to get it.. 

If you mean setting this from the iLO web interface, provided the system is not in POST, you would use:

Administration -> Boot Order -> Additional Options -> Boot to System Setup Utilities

However, after performing the above, you still need to manually reboot the system.

If you want to use the rest API, see these Linux and Windows examples:

https://github.com/HewlettPackard/python-redfish-utility/blob/master/examples/Linux/Set_One_Time_Boot_Order.sh

https://github.com/HewlettPackard/python-redfish-utility/blob/master/examples/Windows/Set_One_Time_Boot_Order.bat

For example:

# ilorest --nologo bootorder --onetimeboot=biossetup
Discovering data...Done
bootname is : Boot Order Pending Settings

bootname is : Boot Order Current Settings

bootpath is : /redfish/v1/systems/1/bios/oem/hpe/boot/

Added the following patch:
{
"Boot/BootSourceOverrideTarget": "BiosSetup"
}
Added the following patch:
{
"Boot/BootSourceOverrideEnabled": "Once"
}

# ilorest --nologo commit
Committing changes...
The operation completed successfully.

# ilorest --nologo reboot

For PowerShell cmdlets, see the "Set-TempBootOrder" function within:

https://www.powershellgallery.com/packages/HPRESTCmdlets/1.2.0.0/Content/HPRESTExamples.ps1

I work for HPE
Sivaclod
Regular Visitor

Re: System utilities F9_from web browser

Thanks for update.  i am geeting below error. 

+++++++++++++++++++++++++++++++++++++++++++++++

iLOrest > bootorder --onetimeboot=Utilities --commit
Location data is empty
Unable to locate registry model
iLOrest > bootorder --continuousboot=Utilities --commit
Location data is empty
Unable to locate registry model

++++++++++++++++++++++++++++++++++++

pchops
HPE Pro

Re: System utilities F9_from web browser

Can you try logging out of the session first to see if that makes a difference, ie:

# ilorest --nologo logout
Logging session out.

# ilorest --nologo bootorder --onetimeboot=utilities --commit
Discovering data...Done
bootname is : Boot Order Current Settings

bootname is : Boot Order Pending Settings

bootpath is : /rest/v1/systems/1/bios/boot

Added the following patch:
{
"Boot/BootSourceOverrideTarget": "Utilities"
}
Committing changes...
The operation completed successfully.

BTW, "Utilities" (aka "F10", aka "Intelligent Provisioning") is not the same as "BiosSetup" (aka "F9")

I work for HPE
Sivaclod
Regular Visitor

Re: System utilities F9_from web browser

Thanks for uddate.. Still same page. 

pchops
HPE Pro
Solution

Re: System utilities F9_from web browser

Is the target server the local server or is it remote? If it is the latter, can you try executing the command all in one shot, ie:

# ilorest --nologo bootorder --onetimeboot=biossetup --commit --url {ip-address} -u {username} -p {password}
I work for HPE
Sivaclod
Regular Visitor

Re: System utilities F9_from web browser

Thanks it looks good. permission issue. . 

Sunitha_Mod
Moderator

Re: System utilities F9_from web browser

Hello @Sivaclod

Great! We are glad to know the problem has been resolved. 



Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo