Using Boot Loader Commands

Using Boot Loader Commands

When the switch starts up in the boot loader mode, a set of commands is available to set kernel kickstart parameters that may be required during advanced troubleshooting and recovery options. These commands are not used in normal operation.

boot (loader command)

boot protocol:// location

Syntax Description

protocol

Only tftp is supported.

location

The server address or hostname and path to the image file to be booted.

Usage Guidelines

Use this command to download and boot from an image file on a remote TFTP server.

Examples

This example causes the switch to download and boot from the specified image file on the remote server.

loader> boot tftp://192.2.0.123/images/bootimage1

cmdline (loader command)

cmdline [clear_config] [clear_log] [init_system] [no_hap_reset]

Syntax Description

clear_config

Clears all configuration databases and causes a stateless reload. This option is useful when upgrading the switch from an old and incompatible software image, such as a pre-release image.

clear_log

Completely clears all core files and logs within the switch. This option is useful when the switch fails to boot due to full partitions.

init_system

Securely erases and repartitions the disk.

no_hap_reset

Prevents a switch from continuously reloading due to a process failure. With this option, the switch will not reload after a failure, but will stop with a login prompt to allow troubleshooting.

Usage Guidelines

One or more options can be appended to the base cmdline command, but the entire command must be entered on a single line.

Examples

This example shows the command with one option:

Aborting config file read and autoboot
No autoboot or failed autoboot. falling to loader

                Loader Version 7.17

loader > cmdline no_hap_reset
loader >        

This example shows the command with two options:

loader > cmdline init_system clear_config
loader >

set gw (loader command)

set gw ipaddress

Syntax Description

ipaddress

The gateway IP address for the switch.

Usage Guidelines

Use this command to configure the gateway IP address for the switch.

Examples

loader> set gw 192.2.0.1

set ip (loader command)

set ip ipaddress mask

Syntax Description

ipaddress

The management IP address to be assigned to the switch.

mask

The subnet mask of the management IP address.

Usage Guidelines

Use this command to configure the initial management IP address for the switch.

Examples

loader> set ip 192.2.0.123 255.255.255.0