sysconfig

Syntax

sysconfig -i[all|settingname][-sfo][-b]

sysconfig -g[all|settingname][settingname...][-sfo][-b]

sysconfig -s[settingname=settingvalue...]

sysconfig -s AdminPassword=settingvalue OldAdminPassword=settingvalue

sysconfig -s PowerOnPassword=settingvalue OldPowerOnPassword=settingvalue[-b]

sysconfig -d[get|set][DefaultType][settingname|all] [-sfo][-b]

sysconfig -import filename.txt[ASCII]

sysconfig -export filename.txt

Description

Displays or configures HPE system BIOS settings. Displays or 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 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 -export, -set and -import options do not support SFO.

The \ character is allowed in string-type settings.

Examples

To view the current values for all BIOS settings:
Shell> sysconfig -g all 
        

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 type settings:
Shell> sysconfig -d get
      
To list all default settings:
 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"
        
To list the UEFI boot order:
Shell> sysconfig -g UefiBootOrder
UefiBootOrder=
    0: Embedded UEFI Shell
    8: Rear USB 2
    10: Embedded LOM 1 Port 1
        
To set a new UEFI boot order so that 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
To get the current value for the EmbeddedUefiShell setting in standard format output:
Shell> sysconfig -g EmbeddedUefiShell -sfo
ShellCommand,"sysconfig"
SysConfigGet,"EmbeddedUefiShell[Embedded UEFI Shell]","Disabled[Disabled]"
        
To show detailed information about the EmbeddedUefiShell setting in standard formatted output:
Shell> sysconfig -i EmbeddedUefiShell -sfo
ShellCommand,"sysconfig"
Enabled[Enabled];Disabled[Disabled]","Enum"
        
To get the default value for ServerName setting in standard formatted output:
Shell> sysconfig -d get ServerName -sfo
ShellCommand,"sysconfig"
SysConfigDefault,"ServerName","","SystemDefaults"