-> set /HOST/bootmode script=value
where script controls the host server's firmware OpenBoot method of booting. script does not affect the current /HOST/bootmode setting.
value can be up to 64 bytes in length.
You can specify a /HOST/bootmode setting and set the script within the same command. For example:
-> set /HOST/bootmode state=reset_nvram script="setenv diag-switch? true"
After the server resets and OpenBoot reads the value of the state property, the result is that all OpenBoot variables are set to the default value. Then Openboot reads the value of the state property, resulting in the diag-switch? variable being set to the user-requested value of true.