subscribe iconSubscribe to this information
POWER7 information

bootlist command

Purpose

Displays and alters the list of boot devices available to the system.

Syntax

bootlist -mode mode {[ -ls ] [ [ -rm ] | [ Device [ -attr Attribute=Value ... ] ... ] ] }

Description

The bootlist command allows the user to display and alter the list of possible boot devices from which the system may be booted. When the system is booted, it will scan the devices in the list and attempt to boot from the first device it finds containing a boot image. This command supports the updating of the following:

The bootlist command supports the specification of generic device types as well as specific devices for boot candidates. Devices in the boot device list occur in the same order as devices listed on the invocation of this command.

The selection of the boot list to display or alter is made with the -mode mode option, where the mode variable is one of the keywords: service, normal, both, or prevboot. If the both keyword is specified, then both the normal boot list and the service boot list will be displayed, or if being altered, will be set to the same list of devices. If the prevboot keyword is specified, the only alteration allowed is with the -rm flag . The -rm flag invalidates the boot list specified by the -mode flag.

The devices currently in the boot list may be displayed by using the -ls flag. The list of devices that make up the specified boot list will be displayed, one device per line. If a device specified in the boot list is no longer present on the system, a '-' is displayed instead of a name.

Note: When you add a hot plug adapter to the system, that adapter and its child devices might not be available for specification as a boot device when you use the bootlist command. You may be required to reboot your system to make all potential boot devices known to the operating system.

Device Choices

The device name specified on the command line can occur in one of two different forms:

Attribute Choices

Attributes are extra pieces of information about a device that the user supplies on the command line. Since this information is specific to a particular device, generic devices do not have attributes. Attributes apply to the device that immediately precedes them on the command line, which allows attributes to be interspersed among devices on the command line. Currently, only network devices have attributes. These are:

Attribute Description
bserver IP address of the BOOTP server
gateway IP address of the gateway
client IP address of the client
speed Network adapter speed
duplex The mode of the network adapter

Error Handling

If this command returns with an error, the device lists are not altered. The following device list errors are possible:

Flags

Flag name Description
Device Provides the names of the specific or generic devices to include in the boot list.
-attr Attribute=Value Specifies the device attribute value pairs to be used instead of the defaults. The Attribute=Value variable can be used to specify one attribute value pair or multiple attribute value pairs for one -attr flag. If you use an -attr flag with multiple attribute value pairs, the list of pairs must be enclosed in quotation marks with a blank space between the pairs. For example, entering -attr Attribute=Value lists one attribute value pair per flag, while entering -attr 'Attribute1=Value1 Attribute2=Value2' lists more than one attribute value pair.
-mode Mode Specifies which boot list to display or alter. Possible values for the mode variable are normal, service, both, or prevboot.
-ls Indicates that the specified boot list is to be displayed after any specified alteration is performed. The output is a list of device names.
-rm Indicates that the device list specified by the -mode flag should be invalidated.

Exit Status

See Exit status for Virtual I/O Server commands.

Examples

  1. To invalidate the Service mode boot list, type:
    bootlist -mode service -rm
  2. To make a boot list for Normal mode with devices listed on the command line, type:
    bootlist -mode normal hdisk0 hdisk1 rmt0 fd
  3. To attempt to boot through a gateway using Ethernet, and then try other devices, type a command similar to the following. Substitute the IP addresses specified in the example with your IP addresses.
    bootlist -mode normal ent0 -attr gateway=129.35.21.1 bserver=129.12.2.10 \
    client=129.35.9.23 hdisk0 rmt0 tok0 bserver=129.35.10.19 hdisk1


Send feedback Rate this page

Last updated: Wed, June 03, 2015