HP ProLiant SL2500 HP Scripting Toolkit 9.60 for Windows User Guide - Page 19

Using STATEMGR, STATEMGR command-line syntax, STATEMGR return codes, Using RBSURESET

Page 19 highlights

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] [EVNAME] [-h] - or STATEMGR [-W] [EVNAME] [VALUE] [-h] STATEMGR command-line arguments Command-line argument -R -W EVNAME VALUE -h Description This argument reads the state of the environment variable defined by [EVNAME]. The value of the environment variable is returned as a return code. This argument writes the state defined by [VALUE] to an environment variable defined by [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 fewer. This argument is used only with the -W argument 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, the state environment variable is cleared. This argument displays help information. STATEMGR return codes Value 0 n STATEMGR command-line examples Meaning The command was completed successfully. N arguments were ignored because they were not in the variable= format. Command-line argument STATEMGR -W PHASE 3 STATEMGR -R PHASE Description STATEMGR writes the state value 3 to the PHASE environment variable. STATEMGR reads the PHASE environment variable and returns its value as a return code. If the environment variable has been reset or no value has been stored, the return code is 0. Using RBSURESET RBSURESET resets the BIOS settings for a server by reapplying the default factory setting at the next reboot. To prevent accidental or malicious damage to a server's configuration, this utility only functions in a Windows PE environment. It will not operate in any other Windows environment. Using STATEMGR 19

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

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] [EVNAME] [-h]
- or -
STATEMGR [-W] [EVNAME] [VALUE] [-h]
STATEMGR command-line arguments
Description
Command-line argument
This argument reads the state of the environment variable
defined by [EVNAME]. The value of the environment
variable is returned as a return code.
R
This argument writes the state defined by [VALUE] to an
environment variable defined by [EVNAME].
-W
This argument creates an environment variable used to
represent the state to manage. The variable can be any
word that is eight characters or fewer.
EVNAME
This argument is used only with the
-W
argument to indicate
the value of the environment variable to maintain. [VALUE]
VALUE
is limited to integers between 0 and 254. If no value is
provided when using
-W
, the state environment variable
is cleared.
This argument displays help information.
h
STATEMGR return codes
Meaning
Value
The command was completed successfully.
0
N
arguments were ignored because they were not in the
variable=<string>
format.
n
STATEMGR command-line examples
Description
Command-line argument
STATEMGR writes the state value 3 to the PHASE
environment variable.
STATEMGR
W PHASE 3
STATEMGR reads the PHASE environment variable and
returns its value as a return code. If the environment
STATEMGR
R PHASE
variable has been reset or no value has been stored, the
return code is 0.
Using RBSURESET
RBSURESET resets the BIOS settings for a server by reapplying the default factory setting at the
next reboot. To prevent accidental or malicious damage to a server's configuration, this utility only
functions in a Windows PE environment. It will not operate in any other Windows environment.
Using STATEMGR
19