This task uses PDomain_0 as an example. You must have the reset role (r) to complete this task.
-> set /Servers/PDomains/PDomain_0/HOST/bootmode script=value
The script property controls the host server's firmware OpenBoot method of booting. It does not affect the current /HOST/bootmode setting.
value can be up to 255 bytes in length.
You can specify a bootmode setting, and set the script within the same command.
-> set /Servers/PDomains/PDomain_0/HOST/bootmode state=reset_nvram script="setenv diag-switch? true"
After the host resets and OpenBoot reads the values stored in the script, OpenBoot sets the diag-switch? variable to the user-requested value of true.