Initialization and OpenBoot in Solaris.

These commands will help you in Single user mode and at the boot time.

Boot prompt_bashcodes

To boot the system.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # boot
[/symple_box]

Perform diagnostics on hardware and devices.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # diag
[/symple_box]

Test network connectivity.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # watch-net
[/symple_box]

When modified server hardware or any new devices added, reboot with

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # ok boot -r
[/symple_box]

Can also perform the reconfiguration boot

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # touch /reconfigure: sync: init 6
[/symple_box]

To view the Open Boot release information

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # ok banner
[/symple_box]

Different boot commands available with different devices.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

# boot /*boots with the default device that is primary disk*/

# boot cdrom /* boot with CDROM */

# boot net /* boot with network*/
[/symple_box]

Change the default boot configuration

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

# ok setenv boot-device disk /* setting the hard drive as the primary drive */

Output:

boot-device = disk

# ok printenv boot-device /* verifies the default selected device */

# ok reset /* resets to default device */
[/symple_box]

The boot PROM is able to store certain defined variables in non-volatile RAM, so you do not need to type full path of the device at the boot time. You can set alias into the same.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

# ok nvalias net /pci@lf:4000/network@1,1

# ok boot net /* it will boot from the net using /pci@lf:4000/network@1,1 as the path */

[/symple_box]

To remove the alias.

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”] # ok nvunalias net /* removes the alias */
[/symple_box]

[symple_divider style=”solid” margin_top=”20px” margin_bottom=”20px”]

[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]

If you like the blog please follow us [icon name=”icon-facebook”] [icon name=”icon-twitter”] [icon name=”icon-google-plus-sign”]

[/symple_box]