beautypg.com

Setbootorder command-line examples, Using statemgr, Statemgr command-line syntax – HP Linux Server Management Software User Manual

Page 25: Statemgr command-line arguments, Statemgr return codes

background image

Toolkit utilities 25

SETBOOTORDER command-line examples

Command-line argument

Description

SETBOOTORDER cdrom hd pxe usb floppy

This command sets the system devices to boot in
this order: CD-ROM drive, hard drive, PXE, USB,

diskette drive.

SETBOOTORDER default

This command sets the boot order to the factory

default.

Using STATEMGR

The STATEMGR utility enables the user to keep track of the execution state during system reboots. This utility
saves persistent state information across reboots of the system.

NOTE:

The STATEMGR utility is not supported on 100 series servers.

STATEMGR command-line syntax

STATEMGR [/R | -R] [EVNAME] [/?]
- or -
STATEMGR [/W | -W] [EVNAME] [VALUE] [/?]

STATEMGR command-line arguments

Command-line argument

Description

/R or –R

This argument reads the state of the environment variable defined by

[EVNAME]. The value of the environment variable is returned as a

return code.

/W or -W

This argument writes the state defined by [VALUE] to an environment
variable defined by [EVNAME].

EVNAME

This argument creates an environment variable used to represent the

state to manage. The variable can be any word that is eight characters

or less.

VALUE

This argument is used only with the /W or -W arguments to indicate

the value of the environment variable to maintain. [VALUE] is limited to

integers between 0 and 254. If no value is provided when using /W

or -W, the state environment variable is cleared.

/?

This argument displays help information.

STATEMGR return codes

Value

Meaning

0

The command was completed successfully.

n

N arguments were ignored because they were not in the variable= format.

This manual is related to the following products: