sysconfig
Syntax
sysconfig -i[all|settingname][-sfo]
sysconfig -g[all|settingname][settingname][settingname...][-sfo]
sysconfig -s[settingname=settingvalue...]
sysconfig -s AdminPassword=settingvalue OldAdminPassword=settingvalue
sysconfig -s PowerOnPassword=settingvalue OldPowerOnPassword=settingvalue
sysconfig -d[get|set][DefaultType][settingname|all] [-sfo]
sysconfig -export
filename[-ASCII]
Description Configures HPE system BIOS settings.
Options
-b
Displays one screen at a time.
-i
Shows information for the specified settings or all settings, including possible values.
settingname
Specifies a setting name about which to display information. See sysconfig attributes.
all
Displays all information for all settings.
-g
Displays the current values of the selected settings or all settings.
—s
Sets the value of the specified setting.
settingvalue
Specifies a setting value.
AdminPassword
Specifies a new administrator password.
OldAdminPassword
Specifies the administrator password to be reset.
PowerOnPassword
Specifies a new password for powering on the server.
OldPowerOnPassword
Specifies the power-on password to be reset.
–d
Gets (lists) or sets the default value for a specified
DefaultType
or for all default type settings.DefaultType
Specifies a default type setting to get (list) or set.
-import
Imports all settings from a script file.
-export
Exports all settings to a script file.
filename
Specifies the script file target for importing or exporting.
ASCII
Uses ASCII encoding for the file output.
-sfo
Displays information in standard formatted output.
Usage
To display or set string-type settings, use double quotes for any
settingvalue
that contains spaces or the characters
'='. For example:
"sysconfig -s AdminName="Joe Smith".
To include a double-quote in a string-type
settingvalue
, enter \ .
To include a \ character in a string-type
settingvalue
, enter \ \ .
To remove a
settingvalue
from a string-type setting, use double-quotes. For example:
"sysconfig -s AdminName="".
The
–sfo
option enables easier parsing of the command output using Shell scripts. When you use this option, any semi-colon character in the value string is replaced with the escape sequence
'\;'.
The
-d set
option does not support
ProductId, SerialNumber, RomSelection
, passwords, or boot orders.
-export
,
-set
and
-import
options do not support SFO. The following
–sfo
formats are supported.
For
–g
(get): The-g
and-i
option supports*
(wildcard character) to match possible configuration string. For example,sysconfig -g uefi*
displays the current values of settings starting with the stringuefi
. The result includesUefiShellBootOrder
,UefiSerialDebugLevel
,UefiBootOrder
, and so on.sysconfig -i uefi*startup*
displays information about the settings starting with the stringuefi
and contains the string startup. The result includesUefiShellStartup
,UefiShellStartupLocation
,UefiShellStartupUrl
, and so on.Column Description 1 Table name ( SysConfigGet
).2 Setting name. 3 Setting value. Multiple values are separated by a semi-colon. For
–i
:Column Description 1 Table name ( SysConfigGet
).2 Setting name. 3 Current setting value. 4 Possible setting values. Multiple values are separated by a semi-colon. 5 Setting type. For
–d
(get):Column Description 1 Table name ( SysConfigGet
).2 Setting name. 3 Setting value. Multiple values are separated by a semi-colon. 4 Default setting type.
Examples
To view the current values for all BIOS settings:Shell> sysconfig -g all
Shell> sysconfig -i uefi*
To show detailed information about the
ProcHyperthreading
setting:
Shell> sysconfig -i ProcHyperthreading
To get the current value for the
ProcHyperthreading
setting:
Shell> sysconfig -g ProcHyperthreading
To set the
ProcHyperthreading
setting to disabled:
Shell> sysconfig -s ProcHyperthreading=Disabled
To list all default configuration settings:
Shell> sysconfig -d get
To list all system defaults:
Shell>sysconfig -d get SystemDefaults all
To list default settings for
NicBoot1
:
Shell> sysconfig -d get SystemDefaults NicBoot1
To set default values for all BIOS settings:
Shell> sysconfig -d set SystemDefaults all
To set the default setting for
NicBoot1
:
Shell> sysconfig -d set SystemDefaults NicBoot1
To set
123
as a new administrator password:
Shell> sysconfig -s AdminPassword=123 OldAdminPassword=""
To remove
Joe Smith
as a power-on password:
Shell> sysconfig -s PowerOnPassword="" OldPowerOnPassword="Joe Smith"
Shell> sysconfig -i UefiBootOrder
UefiBootOrder=
0: Embedded UEFI Shell
8: Rear USB 2
10: Embedded LOM 1 Port 1
Embedded LOM 1 Port 1
boots first:
Shell> sysconfig -s UefiBootOrder=10,0
The new boot order is:
10: Embedded LOM 1 Port 1
0: Embedded UEFI Shell
8: Rear USB 2
Shell> sysconfig -s DefaultUefiDevicePriority=0,1,2,3,4,5,6,7
The new Default UEFI Device Priority is:
0: Floppy Drives
1: Optical Drives
2: USB Mass Storage Drives
3: Embedded Storage Controllers
4: Add-in Storage Controllers
5: Embedded Flexible Network
6: Add-in Network Controllers
7: Embedded UEFI Shell
EmbeddedUefiShell
setting in standard format output:
Shell> sysconfig -g EmbeddedUefiShell -sfo
ShellCommand,"sysconfig"
SysConfigGet,"EmbeddedUefiShell[Embedded UEFI Shell]","Disabled[Disabled]"
EmbeddedUefiShell
setting in standard formatted output:
Shell> sysconfig -i EmbeddedUefiShell -sfo
ShellCommand,"sysconfig"
Enabled[Enabled];Disabled[Disabled]","Enum"
ServerName
setting in standard formatted output:
Shell> sysconfig -d get ServerName -sfo
ShellCommand,"sysconfig"
SysConfigDefault,"ServerName","","SystemDefaults"