Onecli BK
Onecli BK
User Guide
Version 4.4.0
Note
Before using this information and the product it supports, read the information in Appendix E “Notices” on
page 219.
Important:
• The previous umbrella name “ToolsCenter” is replaced by “XClarity Essentials”.
• OneCLI will only support 64-bit operating systems after V2.2.0. V2.1.0 32-bit binaries will be saved on
Web site, so users can download it before running 32-bit operating systems.
Important: These notices provide information or advice that might help users avoid inconvenient or difficult
situations.
Attention: These notices indicate possible damage to programs, devices, or data. An attention notice
appears before the instruction or situation in which damage can occur.
The following table provides a description of commonly used terms in the Lenovo XClarity Essentials OneCLI
Users Guide.
Term Definition
ASU Advanced Setting Utility
A utility that allows users to modify firmware settings from the command line on multiple operating-
system platforms.
Term Definition
CIM Object A high level service in the operating system that manages the creation and life cycle of managed
Manager (or object data. The format of managed data conforms to the CIM specification.
CIM broker)
CIM Provider A platform specific management software that interfaces between a CIM object manager and any
lower level platform interfaces.
Term Definition
KMS Key Management System
A method for activating physical computers or virtual machines on a local network.
LightPath The light emitting diode (LED) indicators on each resource in the target system provide status about
informational and error events, location, and resource faults as well as other immediately required
information.
Multitool The Lenovo service site used to parse inventory logs to html and text views.
OOB Out-of-Band
Pertaining to user-specific data that has meaning only for connection-oriented (stream) sockets. The
server generally receives stream data in the same order that it was sent. OOB data is received
independent of its position in the stream (independent of the order in which it was sent).
Publications
For the latest version of the Lenovo XClarity Essentials OneCLI Users Guide, go to:
Lenovo XClarity Essentials OneCLI Web site
Supported websites
This section provides support web resources.
Users can run multiple OneCLI instances on a client operating system to manage multiple servers remotely.
The following table lists the functions and applications supported by OneCLI.
Note: When necessary, OneCLI will automatically enable the disabled CIM-over-HTTPs and IPMI-over-LAN
on BMC, and restore them to the original state before exiting.
Application Description
multiconfig Remotely show or change the system configuration for multiple IMM- or XCC-based servers.
Application Description
The following table lists the OneCLI global parameters used in different applications.
Parameter Description
If the --bmc parameter is specified, OneCLI runs in out-of-band mode; otherwise, OneCLI runs
in in-band mode.
Note: Both the IPv4 address and the IPv6 address are supported. The IPv6 address shall be
enclosed in brackets. For example, [FE80:3BA7:94FF:FE07:CBD0].
--bmc-rest-port Specify the rest port for in-band connection with BMC.
--check-trust, -C Verify the SSL certificate by using the HTTPS protocol, or verify the fingerprint of remote host
by using the SSH protocol.
--cmm, -c Specify the CMM information.
Format: user:password@IP:port
--never-check-trust, Neither verify the SSL certificate by using the HTTPS protocol, nor verify the fingerprint of
-N remote host by using the SSH protocol.
--node, -n Specify the node index for in-band mode in the multi-node system.
Parameter Description
--quiet, -q Answer yes for all questions and display less screen output as required.
--unattended Specify the unattended mode for managing password and sensitive setting values.
Notes:
• For the parameters input:
– The userid can contain the following characters: A-Z, a-z, 0-9, -,_.
– The password can contain the following characters: A-Z, a-z, 0-9, ~`!@#$%^&*()-+={}[]|:;”’<>,?/_.
– The userid and password cannot contain space or white-space characters.
– If the password contains special characters, use "" on Windows and ‘’ on Linux to quote these special
characters.
– If the parameter contains path, the path name should not contain reserved characters.
• To start using OneCLI, see Chapter 3 “Downloading and using OneCLI” on page 11.
Hardware requirements
OneCLI supports all Lenovo x86 systems and some Lenovo ThinkServer systems. It can also act as a proxy
to management IBM system x servers. To run OneCLI, ensure that the systems managed are in one of
following tables.
• ThinkAgile VX Series (7D2Z, 7D43, 7DDK, • ThinkAgile HX Series (7D0W, 7D0Y, 7D0Z,
7Y11, 7Y12, 7Y13, 7Y14, 7Y91, 7Y92, 7D11, 7D20, 7D2T, 7D52, 7D5U, 7X81,
7Y93, 7Y94, 7Z12, 7Z13, 7Z58, 7Z62, 7X82, 7X83, 7X84, 7Y87, 7Y88, 7Y89,
Solutions 7Z63) 7Y90, 7Y95, 7Y96, 7Z02, 7Z03, 7Z04,
• ThinkAgile MX Series (7D19, 7D1B, 7Z05, 7Z08, 7Z09, 7Z82, 7Z84, 7Z85)
7D1H,7D5R, 7D5S, 7D5T,7D66, 7D67,
7D6B, 7DGG, 7Z20)
1. This server model supports both the single node and the multiple node.
Server options
OneCLI supports options provided by the following vendors:
• Broadcom
• Intel
• Marvell
• Mellanox
• Microchip
Memory requirements
It is recommended that OneCLI run on a system with a minimum of 2 GB of physical memory.
Software requirements
The information in this section describes the software requirements of OneCLI.
To run OneCLI, users should have administrator or root-equivalent operating system privileges for in-band
functions running inside server host OS. For remote functions such as update package acquisition, out-of-
band update, non-root account is acceptable.
• ESXi 6.7
VMware Customized ESXi • ESXi 6.5 (up to U3)
image • ESXi 6.0 (up to U3)
• ESXi 5.5 (up to U3)
These cmds shall be added to system path probably. Not all of the cmds block OneCLI function, but some
warning messages are print on the screenshot. for example:
• Requires xdpyinfo. Receive message: sh: xdpyinfo: command not found.
Supported browsers
To view the information collected by OneCLI, it is recommended to use one of the following Web browsers:
• Internet Explorer
• Chrome
• Firefox
Ensure that the following DNS names and ports are open on the firewalls:
Ports availability for the managed BMC, CMM, and SMM targets
If managed targets (such as compute node/rack server BMC, CMM, or SMM) are behind a firewall and if
users intend to manage those devices with OneCLI that is outside of that firewall, all ports should be involved
with communications between OneCLI and the baseboard management controller in each managed device
are open.
Note: Some management ports can be customized. If users customized the value of a management port
instead of using the default port, and did not specify the customized port in the command-line interface,
OneCLI will try the default port first, which definitely fails. In this case, OneCLI will report an error and use the
default port of another service to acquire the customized port value. This process needs some time and
might cause delay.
From V2.5.0, OneCLI supports to collect the inventory and service data by double-clicking the self-extracting
executable file. This executable file automatically runs the OneCLI command to collect inventory and service
data. After this procedure is completed, it automatically cleans up the files while leaving the execution result
and output log at the default designated directory.
The extracted executable file has the same content as the compressed file. However, self-extracting and
cleaning up at every invocation might bring system overload, so it is not recommended to use this feature at
regular basis. This feature is suitable for the scenario that users have limited time to learn about the OneCLI
parameters or hurry to troubleshoot a failing system.
Lenovo recommends the compressed file for regular usage. Considering the security, it is also
recommended to decompress the files to a directory only accessible to administrative users.
The following tables show the formats of the compressed file and the self-extracting executable file for
Windows and Linux:
Table 8. The format of compressed file and self-extracting executable file for Windows
Table 9. The format of compressed file and self-extracting executable file for Linux
Notes:
• From V2.6.0, OneCLI provides the RPM package for Red Hat Enterprise Linux 6 and its later versions. By default,
OneCLI RPM is installed in /opt/lenovo/lnvgy-utl-lxce-onecli. After installing OneCLI RPM, users can run OneCLI
by inputting OneCLI.
• To install OneCLI RPM, run rpm –ivh lnvgy_utl_lxce_oneclixxx-x.x.x_linux_x86-64.rpm.
• To update OneCLI RPM, run rpm –Uvh lnvgy_utl_lxce_oneclixxx-x.x.x_linux_x86-64.rpm.
Procedure
Step 1. Download the OneCLI zip file from Lenovo XClarity Essentials OneCLI Web site to the target server or
to the system administrator workstation.
Step 2. Copy the OneCLI zip file to the desired directory.
Procedure
Step 1. Download the self-extracting executable file from Lenovo XClarity Essentials OneCLI Web site to the
target server.
Procedure
Step 1. Download the OneCLI zip file from Lenovo XClarity Essentials OneCLI Web site to the target server or
to the system administrator workstation.
Step 2. Copy the tgz file to the desired directory and decompress it by running the following shell
command.
tar -xvf lnvgy_utl_lxce_oneclixxx-xxx.tgz
Step 3. Run ./OneCli. All options are displayed.
Procedure
Step 1. Download the self-extracting executable file from Lenovo XClarity Essentials OneCLI Web site to the
target server.
Note: Commands are used with applications. Each application supports a different set of commands.
Application Command
tui N/A
fod • acquire • install • uploadreport
• export • replace • uninstall
• generate • report • multifod
• get • showppin • multiinventory
OneCLI supports downloading the update packages from IBM Web site for IBM servers by setting
“ACQUIRE_REPOSITORY=BOTH” in the global.config file. The default value is “NONE”, but users can
download the update packages from both Lenovo and IBM Web sites by setting the value to “BOTH”.
If a OneCLI command is issued against a supported IBM system, it automatically invokes the corresponding
ToolsCenter products (ASU/UXSPi/DSA) according to their binary path specified in OneCLI config file. If
ToolsCenter product paths are not correctly specified, an error message displays, indicating the ToolsCenter
version required by the IBM hardware.
Notes:
• The corresponding ToolsCenter product binary should be available (ASU for configuration, UXSPi for
update, DSA for inventory collection).
• The path to the earlier ToolsCenter version must be specified in the global.config file.
• For commands related to the Advanced Settings Utility (ASU), the ASU binary file must be unzipped
before commands can be directed to it (for example; “unzip lnvgy_utl_asu_asut90e-10.*_windows_x86-
64.exe”). The full path to the location where the ASU executable main program, must then be specified (for
example; “C:\asu_bin\asu64.exe”) in the global.config file.
OneCLI commands that support translation to earlier ToolsCenter versions for use with IBM products are
listed in the following.
• batch • replicate
• comparedefault • restore
• createuuid • save
• delete • set
• deletecert • show
config N/A
• export • showdefault
• generate • showdes
• import • showgroups
• loaddefault • showvalues
• nodes
• getinfor • upload • --output <dir> • --ffdc
• formatlog • --srcdata <file> • --hldec
inventory • --upload multitool • --proxy user:
• --htmlreport pwd@addr:port
• --bmc
• compare • flash • --backup • --scope
• --type • --noscan
• --forceid • --xml
update
• --dir • --esxi
• --excludeid • --mt
• --includeid •
Table 12. Lenovo XClarity Essentials OneCLI to IBM UXSPi command comparison
XClarity
Essentials
OneCLI XClarity Essentials
Command OneCLI parameter UXSPi command UXSPi parameter
--backup --update-args="IMM:--user=userid
--password=pwd,UEFI:--backup"
XClarity
Essentials
OneCLI XClarity Essentials
Command OneCLI parameter UXSPi command UXSPi parameter
--backup --update-args="IMM:--user=userid
--password=pwd,UEFI:--backup"
--xml --xml
--log Not supported.
For information about specific config application commands, refer to the following sections:
• “Commands that display configuration settings” on page 19
• “Commands that change or set system configuration settings” on page 31
• “Commands that save, replicate, and restore configuration settings” on page 35
• “Commands for certificate management” on page 41
• Chapter 5 “Commands for application multiconfig” on page 51
Configuration setting
A configuration setting has three components: groupname, configname, and instance.
<groupname>.<configname>.[instance]
Instance settings have a minimum and maximum number of allowed instances. To determine which settings
have instances and the number of instances allowed, use the showvalues command with the --instances
parameter. The output provides the number of instances.
Single instance settings do not have an instance number and appear as a non-instance setting. The output of
the showvalues command has the maximum number of instances as single. For example, the iSCSI.
initiatorName is a single instance setting.
If there are multiple instances, the settings will be shown multiple times. Multiple instances can be viewed
using the show command. For example, if there are three user accounts in a BMC system, then users will see
three loginid settings as shown in the following list.
• IMM.Loginid.1
• IMM.Loginid.2
• IMM.Loginid.3
However, if a BMC system has no user account, the show command will not display anything.
There are restrictions for creating and deleting instances of settings that are part of a record. For more
information about these restrictions, see “Record management” on page 18.
To create an instance, use the set command. If an instance does not exist, and the instance number is
between 1 and the maximum number of allowed instances, the instance is automatically created and set to
the value specified in the set command.
To delete an instance, use the delete command. This command deletes an instance, if deleting the instance
does not cause the number of instances for that setting to go below the minimum number of allowed
instances for the setting.
Record management
Settings that have instances can be part of a record. A record is a group of settings that have dependencies
on each other. For example, a user ID and a password are dependent on each other. A user ID must have a
password and a password must have a user ID. Therefore, they are grouped in the same record.
Each record has a setting that is defined as the record key. It represents the primary setting for a record.
Use the showvalues command with the --instances parameter to determine if a setting is part of a record.
To see examples of the showvalues output for settings that are part of a record, see “showvalues command”
on page 29.
Command Description
compare Compare the current values with the specified values for one or more settings.
Setting classes
Classes are used to indicate groups of settings for commands that support functionality for multiple settings.
Commands that support classes include: show, showvalues, showdefault, comparedefault, showdes, and
loaddefault.
Chapter 4. Configuration 19
Table 15. Settings classes
All of the settings classified as authentication settings, This example lists the settings defined by
including: authentication, including password settings.
• passwords Password settings are not displayed unless
authenti-
• userIDs the showvalues command is used with the
cation
• authority-related settings password class.
OneCli.exe config showvalues
authentication
• Lists all of the settings that are not restored when This example lists the settings that are not
running the restore command. restored if saved.
• An additional flag is required for these settings to be OneCli.exe config show backupctl
back-
included during a restore operation. For more
upctl
information, see “restore command” on page 39.
• Class filter for the show, showvalues, and
showdefault commands.
• Lists all of the settings that are not replicated when This example lists the settings that are not
running the replicate command. These settings are replicated.
norepli-
unique to each system. OneCli.exe config show noreplicate
cate
• Class filter for the show, showvalues, and
showdefault commands.
• Lists all of the settings that are classified as password This example list the settings defined by the
settings. password settings. Password settings are
pass- • Password setting values are not displayed using the displayed with the showvalues command
word show command. and the password class.
• Use the password class with the showvalues and the OneCli.exe config showvalues password
showdefault commands.
• Includes all of the settings that are read-only.
readonly
• These settings cannot be change.
The following are some examples of the output of the showvalues command:
• IMM.PowerRestorePolicy=Always Off=<Restore>=Always On
Note: The possible value is separated by “=”. The value contained in “<>” is the default value.
• IMM.ManufacturingCertInfo=char[] minchars=0 maxchars-47 pattern=^[a-zA-Z0-9./+]{0,47}$default=""
• Memory.CKSelfRefresh=<AUTO>=L1: CK_DRIVEN=L2: CK_TRI_STATE=L3: CK_LOW=L4: CK_HIGH
This setting is suppressed if the result of the following expression is true: ( ( Memory.
MemoryPowerManagement == Automatic ) || ( Memory.MemoryPowerManagement == Disable ) )
This setting is read-only if the result of the following expression is true: ( ! ( OperatingModes.
ChooseOperatingMode == Custom Mode ) )
Note: This is for certification management settings. The output of the comparedefault command is IMM.
PwDiffChar=0<2>. The value contained in “<>” is the default value and the other one is the current value.
The --interactive (-i) option supports the following commands: set, show, showvalues, showdes, and
showdefault.
Procedures
Step 1. Input “OneCli config show –i” to run the show command with the --interactive (-i) option, or input
OneCli config set –i to run the set command with the --interactive (-i) option. The following
information will be displayed:
Welcome to Auto Completion!
Tips:
1. Enter "exit()" to quit OneCLI.
2. Hit key "ESC" to reset all already entered options.
Now please follow wizard to complete options of command line.
setting name:
Step 2. Input the setting name:
a. Input part of setting name, for example, IMM.D.
b. Press Tab, and all setting names will be displayed on OneCLI. The following is the example of
all setting names:
IMM.D
IMM.DeploymentBoot
IMM.DHCPConfig_Hostname
IMM.DHCPConfig_IP
IMM.DHCPConfig_GatewayAddress
IMM.DHCPConfig_Subnet
IMM.DHCPConfig_DomainName
IMM.DHCPConfig_DNS_Primary
IMM.DHCPConfig_DNS_Secondary
IMM.DHCPConfig_DNS_Tertiary
IMM.DNSSettings_Interface
IMM.DNSSettings_preference
IMM.DNSSettings_ServerIp1
IMM.DNSSettings_ServerIp2
IMM.DNSSettings_ServerIp3
IMM.DDNSSettings_Interface
IMM.DDNSSettings_preference
IMM.DDNSSettings_CustomDomain
setting name:
IMM.D
c. Input the entire setting name.
Note: The exclusive setting name will be input automatically, for example, IMM.
DeploymentBoot.
Step 3. Do one of the following:
Chapter 4. Configuration 21
• If “output directory:” is displayed, input the output directory.
• To input the default value, press Enter.
Note: After OneCLI runs the entire command, the following outputs will be displayed:
output directory:
Invoking SHOW command
Connected to BMC at IP address 10.240.194.225 by IPMI
IMM.DeploymentBoot=Disabled
Success.
compare command
Use the compare command to compare the current values with the specified values for one or more settings.
--file Optional Specify the file name, contains <setting>=<value> from command
<save>.
--interactive, -i Optional Run OneCLI in the interactive mode.
--pending Optional Compare the current value and the pending value for one or more
settings.
Notes:
Compare the pending value with saved values in the specified file:
comparedefault command
Use the comparedefault command to compare the current values and the default values of one or more
settings.
Notes:
• Some settings do not have a default value and will not be included in the list.
Chapter 4. Configuration 23
• The value contained in the <> is the default value, while the other value is current setting value. For
example: IMM.PwDiffChar=0<2>, 0 is the current value and 2 is the default value.
comparepending command
Use the comparepending command to compare the current values and the pending values of one or more
settings.
show command
Use the show command to view the current value of one or more settings.
--interactive, -i Optional Configure the OneCLI interactive mode. In this mode, OneCLI guides
user to input the parameter step by step. Users can also click Tab to
generate the configuration setting name.
showdes command
Use the showdes command to view a detailed description of one or more settings. For UEFI settings, the
detailed description for this command is the same information that users access when pressing F1 during
startup.
Chapter 4. Configuration 25
showdes command syntax
--interactive, -i Optional Configure the OneCLI interactive mode. In this mode, OneCLI guides
user to input the parameter step by step. Users can also click Tab to
generate the configuration setting name.
Notes:
• Users can enter a maximum of 47 characters for this setting.
• Special characters @`"',{}#$%^*()!~:;?[]=|+&<> are not allowed.
showdefault command
Use the showdefault command to view the default values of one or more settings.
--interactive, -i Optional Configure the OneCLI interactive mode. In this mode, OneCLI guides
user to input the parameter step by step. Users can also click Tab to
generate the configuration setting name.
Note: Some settings do not have a default value and will not be included in the list.
Chapter 4. Configuration 27
OneCli.exe config showdefault
showgroups command
Use the showgroups command to list the setting groups that are available on a server.
Notes:
• The showgroups command does not require any command options.
• Groups vary on different systems. See the following for some sample groups. The following is an example
of the groups list:
– UEFI
– AdvancedRAS
– BackupBankManagement
– DevicesandIOPorts
– DiskGPTRecovery
– LegacySupport
– Memory
– Node1
– OperatingModes
– POSTAttempts
– Power
– Processors
– SystemRecovery BootModes BootOrder
– BootModes
– BootOrder
– IMM
– BroadcomGigabitEthernetBCM5720-910
– BroadcomGigabitEthernetBCM5720-000AF72567E6
– BroadcomGigabitEthernetBCM5720-000AF72567E7 IMM
– PXE
– SYSTEM_PROD_DATA
– SecureBootConfiguration
– UEFIMisc
– VPD
– iSCSI
showvalues command
Use the showvalues command to list all of the possible values for one or more settings. showvalues also
lists the suppressed, grayed-out dependency information.
--interactive, -i Optional Configure the OneCLI interactive mode. In this mode, OneCLI guides
user to input the parameter step by step. Users can also click Tab to
generate the configuration setting name.
Chapter 4. Configuration 29
Table 23. showvalues command specific parameters (continued)
nodes command
Use the nodes command to obtain the available nodes in the current system.
Notes:
• The nodes command does not require any command options.
• The nodes command can be used on a multi-node or a single-node system.
• On a single node system, 1 is always reported.
• On a multi-node system, the available number of nodes is reported.
Command Description
createuuid command
Use the createuuid command to generate and set the Universally Unique Identifier.
Chapter 4. Configuration 31
OneCli.exe config createuuid <uuidsetting> [<options>]
SysInfoUUID
Note: The value of the uuid created by the createuuid command depends on the time slot and the system
information. Therefore, each time running the command, users will get different setting values.
delete command
Use the delete command to delete an instance of a setting.
Note: The delete command is used only for a setting instance. It does not work for a normal setting.
loaddefault command
Use the loaddefault command to load the default values of one or more settings.
--exclude Optional Specify the settings group name not be loaded to default.
Chapter 4. Configuration 33
Table 28. loaddefault command specific parameters (continued)
set command
Use the set command to change the setting value. If the instance does not exist or the instance value is less
than or equal to the allowed maximum value, users can create an instance by using the set command.
Notes:
• For more information about instances, see “Instance and non-instance settings” on page 17.
• If the settingvalue includes some blank, user needs to put the value in quotes.
• If the settingname is a valid setting instance which is not exist before, the set command will create this
setting instance.
• If the settingvalue is not be input, OneCLI will use security mode to change the setting value.
• If users modify the account connecting to BMC when running the set command, the following error
message might be displayed:
Failed to get update status due to BMC internal error.
settingname Required Use the set command to change the setting value.
Notes:
• If the settingvalue is blank, enter a value in quotes.
• If the settingvalue is not specified, OneCLI will change the setting
value in the security mode. For more information, refer to
“Changing setting values in security mode” on page 170.
--smm Optional Specify the access information of the target SMM. The format is:
userid:password@host[:port].
Notes:
• Both the IPv4 address and the IPv6 address are supported. The
IPv6 address shall be enclosed in square brackets. For example,
[FE80:3BA7:94FF:FE07:CBD0].
• If the IPv6 is LLA, the format is [FE80:3BA7:94FF:FE07:CBD0%
xxx]. Replace xxx with the interface name.
Chapter 4. Configuration 35
Table 30. Commands that save, replicate, and restore a system
Command Description
backup Backup all configuration settings, or back up SED AK on SE350 V2 and SE360 V2 by using the
--redfish parameter.
backup command
Use the backup command to backup all configuration settings, or back up SED AK on SE350 V2 and SE360
V2 by using the –redfish parameter.
OneCli.exe config backup [setting] --file [arg] –passphrase[arg] [common options] --redfish
batch command
Use the batch command to queue config operations without any knowledge of the scripting capabilities of
the operating system that XClarity Essentials OneCLI is running on. When entering the config commands in
a batch file, the XClarity Essentials OneCLI config application individually reads and runs each config
command.
Note: The --output or connection option is not required for the previous command in the batch file.
Notes:
• In batch mode, the show and set commands ignore the suppressed information. Users can see the
suppressed settings current value using show, and set the suppressed settings without an error.
• All of the commands in a batch file must target an individual system and not multiple systems. A batch file
that contains commands that target multiple systems is not supported.
• The following example batch file contains the set and show commands. All of the set commands are sent
to BMC at same time, and then all of the show commands are sent.
Chapter 4. Configuration 37
This is an example of batchfile.txt:
replicate command
Use the replicate command to replicate the settings in the configuration file to the target server. The
settings in the nonreplicated group are saved in a specific file, and cannot be replicated.
Notes:
• Users can use the saved file got in the save command. If users create a file and specify with the --file
option, follow the file format. For more information, refer to “save command” on page 40.
• The outputs of the replicate command contain a long list of the saved settings. OneCLI puts the outputs
in a file and shows the summary in the command shell.
Notes:
• To restore the saved settings, use the save command to save the configuration in the file containing
<setting>=<value>.
• For SE350 V2/SE360 V2, to restore the SED AK whose SED key is not installed, use the passphrase or
backup file.
• To restore the configuration settings by using the backup file, the file should be an encrypted file saved
with the backup command, the --redfish and --passphrase parameters.
• Users can use the saved file got in the save command. If users create the file and specify with the --file
option, follow the file format. For more information, refer to “save command” on page 40.
• There may be a long list of settings in the outputs of restore command. Therefore, OneCLI puts the
results including all saved settings in a file and shows the summary in the command shell.
--incbackupctl Optional Include VPD settings when restoring from the external file specified by
“--file”.
--kcs Optional Force to use IPMI over KCS local interface.
Chapter 4. Configuration 39
onecli.exe config restore --file saved.txt --bmc USERID:[email protected]
To restore SED AK only with passphrase that used to generate the SED AK:
save command
Use the save command to save the settings of all groups to a specified file, for example, the UEFI group, the
IMM group. However, the read-only and write-only settings cannot be saved by using the save command.
The file containing the saved settings can be used in the restore command and the replicate command.
<settingname1>=<settingvalue1>
<settingname2>=<settingvalue2>
<settingname3>=<settingvalue3>
IMM.PowerRestorePolicy=Restore
IMM.ThermalModePolicy=Normal
IMM.PowerOnAtSpecifiedTime=0:0:0:0:0
IMM.MinPasswordLen=0
IMM.PwChangeInterval=0
IMM.PwMaxFailure=5
IMM.PwDiffChar=0
IMM.DefPasswordExp=Disabled
IMM.FirstAccessPwChange=Disabled
Command Description
Notes:
• The commands in this table are used specifically for certificate management. The supported settings are
certificate management settings.
• The supported setting list can be generated using showvalues using a value such as generate. The values
after the * are for the supported certificate management settings:
IMM.SSH_SERVER_KEY=*generate
IMM.SSL_HTTPS_SERVER_CERT=*generate=import=export
IMM.SSL_HTTPS_SERVER_CSR=*generate=export
IMM.SSL_LDAP_CLIENT_CERT=*generate=import=export
IMM.SSL_LDAP_CLIENT_CSR=*generate=export
IMM.SSL_SERVER_DIRECTOR_CERT=*generate=import=export
IMM.SSL_SERVER_DIRECTOR_CSR=*generate=export
IMM.SSL_CLIENT_TRUSTED_CERT1=*import=export=deletecert
Chapter 4. Configuration 41
IMM.SSL_CLIENT_TRUSTED_CERT2=*import=export=deletecert
IMM.SSL_CLIENT_TRUSTED_CERT3=*import=export=deletecert
Before users can manage a certificate on BMC, to ensure that the corresponding certificate server is
disabled, complete these steps:
1. Verify that the BMC HTTPS Server Configuration for Web server is disabled using this command:
OneCli.exe config show IMM.SSL_Server_Enable
2. If the server is enabled, disable BMC HTTPS Server Configuration for Web Server using this command:
OneCli.exe config set IMM.SSL_Server_Enable Disabled
The BMC must be restarted before the selected value (enable / disable) takes effect. Use the command:
onecli misc rebootbmc
3. The BMC must be restarted before the selected value (enable / disable) takes effect. Use the command:
onecli misc rebootbmc
Before using SSL Client Certificate Management, disable SSL Client Configuration for the LDAP Client
first:
a. Verify that the SSL Client Configuration for LDAP Client is disabled using this command:
OneCli.exe config show IMM.SSL_Client_Enable
b. If the value is enabled, disable the BMC SSL Client Configuration for LDAP using this command:
OneCli.exe config set IMM.SSL_Client_Enable Disabled
After completing the steps noted above, users can use XClarity Essentials OneCLI to manage certificates on
BMC.
The following procedure provides an overview of how to use the XClarity Essentials OneCLI config
application and commands to:
• View the status of certificate setting
• View the available commands for a setting
• Generate a Certificate Sign Request (CSR)
• Export a certificate sign request
• Generate a self-signed certificate
• Import a Certificate
• Delete a certificate
An example of output:
IMM.SSL_HTTPS_SERVER_CERT=Private Key and CA-signed cert installed, Private Key stored, CSR available for download.
To view the available commands for a certificate setting, use this command:
An example of output:
An XML file, such as template.xml, is required for the generate command and for all settings which support
generate, except SSH_SERVER_KEY. For more information about the template.xml, see “The template.xml
file” on page 46. "new_key_and_cert_sign_req_info" in the specified XML file is required to generate a CSR.
A certificate sign request must be signed by an independent certificate authority to be a certificate. Users
can use the config application to generate a Self-signed Certificate.
Users can use the config application to generate a Self-signed Certificate. "new_key_and_self_signed_cert_
info" in the specified XML file is required to generate a self-signed certificate. To generate a self-signed
certificate, use this command:
Users can export a certificate or certificate sign request. If a certificate sign request is signed by an
independent certificate authority, it is a CA-signed certificate.
Importing a certificate
To import a certificate, after completing the export a certificate sign request step, using independent
certificate authority, sign the request in the tmp_csr.der file. Users can only import the CA-signed certificate
(which differs from the self-signed certificate) into the HTTPS Server Certificate Management.
The following two settings for SSL Client Certificate Management permit only CA-signed certificates to be
imported:
• SSL_LDAP_CLIENT_CERT
• SSL_LDAP_CLIENT_CSR
Chapter 4. Configuration 43
For more detailed information about how to use the config applications and commands for certificate
management, refer to the individual command topics in this section.
deletecert command
Use the deletecert command to delete a certificate on BMC.
export command
Use the export command to export a selected certificate or certificate sign request (CSR) file. The export
command generates a binary file that is saved as the specified file path.
generate command
Use the generate command to generate a private key and public key pair with a self-signed certificate or a
certificate sign request, and generate SED AK on SE350 V2/SE360 V2 when using with the –redfish
parameter.
--file Optional • This is the file name of *generate file, using the format of
template.xml.
• For more information about the template.xml, see “The template.
xml file” on page 46.
Chapter 4. Configuration 45
Table 39. generate command specific parameters (continued)
This table provides a list of the template.xml file variables and their definitions.
Variables Definition
Country Name The two-letter ISO abbreviation for user’s country.
State or Province Name The state or province where user’s organization is located. This entry cannot be
abbreviated.
Locality Name The city where user’s organization is located.
Organization Name The exact legal name of user’s organization. Do not abbreviate user’s organization
name.
Variables Definition
Common Name A fully qualified domain name that resolves to the SSL VPN device. For example, if
users intend to secure the URL https://ssl.yourdomain.com, then the common
name of the certificate sign request should be ssl.yourdomain.com.
Email Address This is an optional field for entering a contact email address.
Organization Unit Name This is an optional field for the name of the unit in user’s organization.
givenName This is an optional field for entering a given name of contact name.
dnQualifier This is an optional field for entering the domain name qualifier.
Challenge password This is an optional attribute. When specifying a challenge password in the
certificate sign request and intending to revoke the certificate later, users must
know the challenge password.
unstructuredName This is an optional field for entering the unstructured name for contact
template.xml
Note: The name and value fields cannot be blank. Optional items should be removed if they are not used to
avoid potential failure.
<?xml version="1.0" encoding="utf-8"?>
<asu version="2.1">
<new_key_and_self_signed_cert_info>
<item type="Required">
<vectorID>0001</vectorID>
<name>countryName</name>
<value minlen="2" maxlen="2">XX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>stateOrProvinceName</name>
<value minlen="1" maxlen="30">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>localityName</name>
<value minlen="1" maxlen="50">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>organizationName</name>
<value minlen="1" maxlen="60">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>commonName</name>
<value minlen="1" maxlen="60">XXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>Name</name>
Chapter 4. Configuration 47
<value minlen="1" maxlen="60">XXXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>emailAddress</name>
<value minlen="1" maxlen="60">XXXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>validityPeriod</name>
<value minlen="0" maxlen="2">XX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>organizationalUnitName</name>
<value minlen="0" maxlen="60">XXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>Surname</name>
<value minlen="0" maxlen="60">XXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>givenName</name>
<value minlen="0" maxlen="60">XXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>Initials</name>
<value minlen="0" maxlen="20">XXXX</value>
</item>
<item type="Optional">
<vectorID>0001</vectorID>
<name>dnQualifier</name>
<value minlen="0" maxlen="60">XXXX</value>
</item>
</new_key_and_self_signed_cert_info>
<new_key_and_cert_sign_req_info>
<item type="Required">
<vectorID>0001</vectorID>
<name>countryName</name>
<value minlen="2" maxlen="2">XX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>stateOrProvinceName</name>
<value minlen="1" maxlen="30">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>localityName</name>
<value minlen="1" maxlen="50">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
<name>organizationName</name>
<value minlen="1" maxlen="60">XXXX</value>
</item>
<item type="Required">
<vectorID>0001</vectorID>
import command
Use the import command to import a certificate into a BMC.
Chapter 4. Configuration 49
Table 41. import command specific parameters
Command Description
batch Run multiple config commands in the batch file.
batch command
Use the batch command to queue config operations without any knowledge of the scripting capabilities of
the operating system on which OneCLI is running.
User input the config commands in the batch file, and then config application will run them one by one.
Following is the sample format in the batch file:
Note: No “--output” or connection options is needed for the command in the batch file.
--file Required The file name of batch file, which includes the config commands in it.
Onecli will read the commands and run them one by one. This
parameter is required.
--configfile Required Specify the config file for multi task command, the format refer to
Sample/multi_task_config.json.
replicate command
Use the replicate command to replicate all settings in the input update configuration file.
--file Required Specify the file name of saved settings. OneCLI reads the setting from
the system and then stores the setting and value in the file.
--quiet,-q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
restore command
Use the restore command to restore all settings defined in the update configuration file.
--file Required Specify the file name of saved settings. OneCLI reads the setting from
the system and then stores the setting and value in the file.
--quiet,-q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
set command
Use the set command to change the value of a setting or to list a setting. The set command also creates an
instance if the instance number does not exist, and if the instance value is less than or equal to the maximum
allowed instances for the setting. For more information about instances, see setting format.
Notes:
• If the settingvalue includes some blank, user needs to put the value in quotes.
• If the settingname is a valid setting instance which is not exist before, the set command will create this
setting instance.
• If the settingvalue is not be input, OneCLI will use security mode to change the setting value.
• If users modify the account connecting to BMC when running the set command, the following error
message might be displayed:
Failed to get update status due to BMC internal error.
settingname Required The setting which user wants to change the value of it. User must to
input it. And it should right after the set command in command line.
settingvalue Optional The setting value which user wants to change to. If user input it, it
should right after the setting name in command line.
--configfile Required Specify the config file for multi task command, the format refer to
Sample/multi_task_config.json.
show command
Use the show command to see the current value of one or more settings.
command option Optional The value can be put as “all”, group name or setting name. The “all” is
used to display all supported settings, while group name is to display
the settings belong to that group, and the setting name is only display
the value for that setting. The group name can be got from
showgroups command or see section “setting groups” for details.
Command Description
formatlog Translate the inventory output XML file into the HTML file.
upload Uploads the XML files or other log files to a specified server or Lenovo service site.
formatlog command
Use the formatlog command to transform the inventory XML files to HTML files.
This example formats the xxx.xml file to HTML file and save the results to specified output folder.
This is the complete device list generated for Linux and Microsoft Windows systems, as noted. All items are
case-sensitive.
1 - system_overview
2 - installed_applications (Windows only)
3 - installed_hotfixes (Windows only)
4 - installed_packages (Linux only)
5 - kernel_modules (Linux only)
6 - device_drivers (Windows only)
7 - system_services (Windows only)
8 - network_settings
9 - resource_utilization
10 - processes
11 - os_configuration
12 - hardware_inventory
13 - persistent_memory
14 - pci_information
15 - firmware_vpd
16 - bmc_configuration
17 - bmc_environmental
18 - light_path
19 - pci_adapters
20- storage_devices
21 - ssd
22 - fod_key
23 - application_event (Windows only)
24 - var_log_boot_log (Linux only)
25 - var_log_mail_err (SUSE only)
26 - var_log_mail_warn (SUSE only)
27 - var_log_messages (Linux only)
28 - var_log_warn (SUSE only)
29 - var_log_cron (RHEL only)
30- var_log_dmesg (RHEL only)
31 - var_log_secure (RHEL only)
32 - system_event (Windows only)
getinfor command
Use the getinfor command to obtain hardware and software information for the target system through in-
band or out-of-band method. By default, the inventory results are saved to an XML file.
--ffdc Optional If specified, the inventory application will retrieve the BMC FFDC log.
--hldec Optional Collect the UEFI hidden logs. This option is only supported for System
X.
--htmlreport Optional If specified, the output results will contain HTML file report.
--proxy Optional Use proxy to connect to upload server. The format is user:
password@host[:port].
Chapter 6. Inventory 59
Table 51. getinfor command specific parameters (continued)
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
inventory example
This is an example of the inventory application and the getinfor command using OneCLI.
Notes:
• To collect Windows event logs in Windows OS, change the configuration item in the global.config file to
ONECLI_EVENTLOG_MAX=All. For more information, refer to Appendix D “OneCLI global configuration
file” on page 217.
• When downloading any executable version of the OneCLI utility (Windows or Linux) from https://
support.lenovo.com/solutions/lnvo-tcli and running this executable version by double-clicking its package,
the global.config file will not be evaluated.
upload command
Use the upload command to upload the XML files or other log files to Lenovo service or other remote server.
--upload Required This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
In this example, --srcdata is used to identify the log file name that is uploaded.
OneCli.exe inventory upload --srcdata xxx.xml --upload lenovo
Chapter 6. Inventory 61
62 Lenovo XClarity Essentials OneCLI User Guide
Chapter 7. Update
The topics in this section describe the following:
• How to use the OneCLI update application and commands to update firmware and device driver in IB
mode for BMC-based system
• How to update firmware in OOB mode for BMC-based system
• How to update firmware for CMM-based components(CMM & I/O switch)
• How to update firmware remotely of the VMware ESXI OS for BMC-based system
• How to update firmware for SMM-based components.
Command Description
acquire Download firmware and device driver updates for the BMC-based system and firmware
updates of CMM, SMM, and I/O switch module.
canceltask Cancel the update task staged in XCC2 on the ThinkSystem V3 systems.
checktask Check the status of update task staged in XCC2 on the ThinkSystem V3 systems.
flash Apply updates of firmware and device drivers requiring upgrade, based on the result of the
compare command.
multicompare Remotely compare the firmware information of multiple BMC, and specify the BMC
information and the configuration parameters.
multiflash Remotely upgrade multiple BMC, and specify the BMC information and configuration
parameters.
multiscan Remotely scan the firmware information of multiple BMC, and specify the BMC information
and the configuration parameters.
Command Description
scan Get installed firmware and device driver inventory information of a BMC-based system or
installed CMM firmware and I/O switch module firmware or installed SMM firmware.
startstaged Start the update task staged in XCC2 on the ThinkSystem V3 systems.
acquire command
Use the acquire command to download firmware and device driver updates for BMC-based system, CMM-
based component, and SMM-based component from Lenovo or IBM support site.
OneCli.exe update acquire [--mt <arg>] [--ostype|-t <arg>] [--scope|-s <arg>] [--dir <arg>] [--includeid|-I <arg>]
[--report] [--metaonly] [--proxy|-P <arg>] [--type|-T <arg>] [--xml] [--quiet|-q] [--platform] [--output|-o <arg>]
[--nolog] [--config <arg>] [--proxy-cacert <arg>] [--cacert <arg>] [--proxy-insecure] [--insecure] [--help|-h]
--dir Optional Specify the path name of the directory that will be used by the
command.
--includeid, -I Optional Acquire the specified included packages or UXSP through IDs.
For example:
• Target package ID: lnvgy_dd_sraidmr_7.700.20.00_sles12_x86-64
• UXSP ID: lnvgy_utl_uxsp_tcsp06p-2.40_win2012r2_32-64
--metaonly Optional If the --metaonly parameter is specified, the acquire command will
only download the XML files specifying the metadata for the update
packages without downloading the update packages payload.
--mt Optional Specify the machine type of target device. Lenovo server, chassis,
and enclosure all have machine types.
--noprereq Optional If specified, users should not download the prerequisite packages.
The --ostype parameter is not required for CMM, SMM, or I/O module
targets.
--platform Optional Download the maintenance image and OneCLI tool for BMU secure
erase and platform flash.
--type, -T Optional type specifies the type of package to download. Valid choices are:
• fw|dd (default) to download firmware and device drivers
• fw to download firmware
• dd to download device drivers
For the CMM and I/O module targets, only firmware can be
downloaded.
--xml Optional Specify the output XML.
--proxy-cacert Optional Specify the path of proxy CACert.
--cacert Optional Specify the path of CACert.
Chapter 7. Update 65
Table 54. acquire command specific parameters (continued)
In this example, we are downloading (update acquire command) information (--metaonly argument) about
the latest updates (--scope latest argument) for a machine type 8737 (--mt 8737 argument), storing it in the
“pkg” directory (--dir .\pkg argument) and storing the log file in the “output” directory (--output .\output
argument).
Onecli.exe update acquire --scope latest --mt 8737 --metaonly --output .\output --dir .\pkg
OneCLI supports to acquire the updates for the IBM system and the Lenovo system.
• To acquire the updates for the IBM system from the IBM Web site, ensure that the firewall allows the
following DNSes and ports. User can also obtain the URL from https://www-03.ibm.com/services/projects/
ecc/serviceProviderIBM.gzip.
• To acquire the updates for the Lenovo system from the Lenovo Web site, ensure that the firewall allows
the following DNSes and ports. User can also obtain the URL from https://support.lenovo.com/services/
ContentService/SearchDrivers.
Notes: To use a proxy to run the acquire command, ensure that the proxy meets the following
requirements:
• The proxy is accessible to one of the following DNS: www.ibm.com, www-03.ibm.com, eccgw01.boulder.
ibm.com, support.lenovo.com, and download.lenovo.com.
• The proxy is set to “Use basic authentication”.
• The proxy is a non-terminating and forwarding proxy.
canceltask command
Use the canceltask command to cancel the update task staged in XCC2 on the ThinkSystem V3 systems.
checktask command
Use the checktask command to check the status of update task staged in XCC2 on the ThinkSystem V3
systems.
Chapter 7. Update 67
Table 56. checktask command specific parameters
compare command
Use the compare command to compare the list of installed firmware and device drivers, generated by the
scan command, to the available update list, generated by the query command, and recommend a set of
updates to apply. The XML file generated by the compare command can be used by the flash command.
Users can specify XML files generated by previously run scan and query commands using the --scanxml
and --queryxml parameters. The compare command also checks the prerequisite requirements for all update
packages and list updates in their required order for the flash command.
Options
--remoteos
Specify the remote OS for OneCLI to manage system. After connecting to Linux OS, OneCLI supports to
update firmware and device driver. Ensure that the OneCLI binary for the remote Linux OS is in the
directory specified with “--dir”. The sample command is: ./OneCli update compare --remoteos root@xx.
xx.xx.xx --dir packages --quiet.
Note: Before using this function, users should set “PasswordAuthentication yes” to enable the tunneled
clear text passwords in /etc/ssh/ sshd_config.
--dir Optional folder specifies the path name location of the packages directory.
--excludeid, -E Optional Never flash the excluded packages unless they are prerequisite.
Users can set multiple IDs by separating them with comma(,).
--forceid, -F Optional The ids can be a comma-separated list that specifies the package IDs
which are usually the package file name without file extension for
queries and comparison. Users can also specify an argument of all to
force query and comparison of all listed packages.
Chapter 7. Update 69
Table 57. compare command specific parameters (continued)
For the BMC target, if the --includeid parameter is not specified, only
the packages specified by the --scope parameter are queried and
compared.
For the BMC target, if the --includeid parameter is specified, only the
listed packages are queried and compared in addition to those
specified by the --scope parameter: if no packages are listed, no
additional packages are queried and compared.
For the CMM, SMM and I/O module targets the --scope parameter is
not used, so only those packages specified by the --includeid
parameter are queried and compared.
--mt Optional Specify the machine type of target device. Lenovo server, chassis,
and enclosure all have machine types.
For the I/O module target, the CMM machine type is specified.
--noscan Optional If the --noscan parameter is specified, the compare command
obtains query results directly for comparison without using the scan
results.
The --ostype parameter is not required for CMM, SMM, or I/O module
targets.
--osarch, -a Optional architecture specifies operating system architecture where users are
running the OneCLI. Valid choices are x86, x64, and none.
The --osarch parameter is not used for CMM, SMM, or I/O module
targets.
--queryxml Optional filename specifies a query result file to control the compare
command. If a query result file is specified, the following command
parameters cannot be used:
• --mt
• --includeid
• --forceid
• --dir
• --ostype
• --osarch
• --scope
• --type
--remoteos Optional Specify the remote OS login credential for OneCLI to manage system
in the local host OS.
Chapter 7. Update 71
Table 57. compare command specific parameters (continued)
--type, -T Optional type specifies the type of package to compare. Valid choices are:
• fw|dd (default) to compare firmware and device drivers
• fw to compare firmware
• dd to compare device drivers
Packages are not compared for the CMM and I/O module targets.
flash command
Use the flash command to deploy updates in sequence, from the list generated by the compare command
to the command target. Results of the update flash operation are stored in an XML file. If errors occur during
a CMM, SMM or I/O module or core firmware flash update, the flash command retrieves the FFDC logs
from BMC, CMM, or SMM.
• For In-Band (IB) mode, both firmware and device drivers are supported. An SFTP server is not required to
be specified (--sftp parameter) in IB mode.
• For Remote Update (including Platform, OOB, BMU) mode:
– Scan results include only firmware.
– An SFTP server can be specified (--sftp parameter) when in OOB mode. Users can upload the package
payload to the SFTP server manually, then specify the package location as part of the --sftp parameter.
OneCLI checks the SFTP folder and the local folder, as specified in the compare command results XML
file. If both locations contain an update payload, OneCLI checks if they are the same, using the SFTP
payload file if they are the same and generating an error and exiting the command if they are not the
same. If only the SFTP location has a payload, this payload is used. If only the local location has a
payload, it is uploaded to the SFTP server and flashed (the --uselocalimg parameter must be
specified).
--backup Optional By default, if the --backup parameter is specified, OneCLI flashes the
IMM and UEFI backup firmware by running the flash command.
Chapter 7. Update 73
Table 58. flash command specific parameters (continued)
--esxi Required Specify the esxi OS information, including OS user name, password,
IP address, and port.
If the --ffdc parameter is specified and there are update failures, the
flash command will try to output the FFDC log file from the BMC or
CMM (for I/O module updates only) to the location specified by the
current --output parameter. The --ffdc parameter specifies the SFTP
server to be used to be a temporary storage location for the FFDC log
file. After the log file is downloaded, it is deleted from the SFTP server.
If the --ffdc parameter is not used, OneCLI will use the same SFTP
location that the --sftp parameter uses to specify the file payload
location.
--fileserver Optional Format: <scheme>://[userid:password@]host[:port][/path].
• For XCC, specify sftp/http/https. For example, https://user:
[email protected]/tmp.
• For SMM, specify tftp. For example, tftp://10.240.0.1:123/tmp/
images.
• For CMM, specify sftp. For example, sftp://user:[email protected]/
tmp/upload.
• For ThinkServer, specify ftp/http/https. For example, ftp://
10.240.0.1/tmp
Note: If the options --tfp, --tftp, --sftp, and --https cannot be used,
use --fileserver instead.
--includeid, -I Optional This parameter should be used with the --nocompare parameter.
--iobay Optional bay_number specifies the I/O module bay number. Valid values are 1,
2, 3, or 4.
--noreboot Optional By default, BMC will automatically restart and take effect after the
update. However, if the --noreboot parameter is specified, the flashed
BMC will not restart automatically after the update. To activate the
new firmware, users should manually restart the BMC.
The --noreboot parameter is only used for flashing the primary IMM.
--platform Optional The --platform parameter is used to update the OOB and BMU
update packages of the remote server in the platform.
--queryxml Optional Specify the file containing the query results to control the compare
command.
--remoteos Optional Specify the remote OS login credential for OneCLI to manage system
in the local host OS.
Chapter 7. Update 75
Table 58. flash command specific parameters (continued)
--uselocalimg Optional If the --uselocalimg parameter is specified, OneCLI will copy the
firmware temporary payload file from the local folder to the SFTP
server. If the SFTP server contains a firmware temporary payload file,
this payload file will be overwritten by the local copy.
In this example, we are performing a flash update (update flash command) based on compare results stored
in the “.\#VID:#PID\output\Onecli-update-compare.xml” file (--comparexml .\output\Onecli-update-
compare.xml argument) for an I/O module in bay 2 (--iobay 2 argument) that is accessed via a CMM with a
user ID of “userid”, a password of “password”, an IP address of “host”, and a port number of “5989” (--cmm
userid:password@host[:5989] argument), where the update package file is on a temporary SFTP server
accessed with a user ID of “user”, a password/authentication string of “password;38:a8:21:16:
cb:5d:0c:13:56:7c:2a:b9:f3:62:ed:17”, and an IP address of “host” (--sftp user:password;38:a8:21:16:
cb:5d:0c:13:56:7c:2a:b9:f3:62:ed:[email protected] argument), and storing the log file in the “.\872102cn03e
\output\” directory (--output .\872102cn03e\output\ argument).
iflash command
Use the iflash command to parse and update the system firmware. OneCLI will flash these system firmware
packages one by one in legacy way (ipmi).
Chapter 7. Update 77
Table 59. iflash command specific parameters
The --dir parameter is only used with the --nocompare parameter (in
no compare mode).
--forceid Optional Similar with the --includeid parameter, but it can add force tag for
these updateids to enforce the downgrade. Besides the specified ID,
it also supports “all”, which means it can add force tag for all the
suggested flash packages.
--noreboot Optional By default, BMC will automatically restart and take effect after the
update. However, if the --noreboot parameter is specified, the flashed
BMC will not restart automatically after the update. To activate the
new firmware, users should manually restart the BMC.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--config Optional Specify the OneCLI global config file path, in the format of ./global.
config.
multicompare command
Use the multicompare command to remotely compare the firmware information of multiple BMC, and
specify the BMC information and the configuration parameters by using a JSON configuration file. The
output results are saved in the OneCLI logs in xml format, for example, multi_task\20190429_154002
\Success-10.240.194.248\Onecli-update-compare.xml.
Options
--pattern
Filter the items in the compare result tables of multi servers through the regular expression. The outputs
are displayed on the screen and recorded in the JSON file in the log directory.
--configfile
Specify the JSON configuration file. The template file is available in Sample/multi_task_config.json in
OneCLI binary.
--config Optional Specify the file path for the OneCLI config commands.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
Chapter 7. Update 79
multiflash command
Use the multiflash command to remotely upgrade the firmware of multiple BMC/SMM, update the
firmware and driver for multiple Linux servers. It also specifies the information and the configuration
parameters of the BMC/SMM and the Linux servers by using a JSON configuration file.
OneCli.exe update multiflash <--configfile <arg>> [--dir <arg>] [--quiet|-q] [--forceid|-F <arg>] [--uselocalimg]
[--check-trust|-C] [--never-check-trust|-N] [--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
Options
--configfile
Specify the JSON configuration file. The template file is available in Sample/multi_task_config.json or
Sample/ multi_remote_task_config.json in OneCLI binary.
--configfile Required Specify the JSON configuration file for multi-task commands. The
template file is available in Sample/multi_task_config.json in OneCLI
binary.
--config Optional Specify the file path for the OneCLI config commands.
--forceid, -F Optional It supports to add the force tag for the update ID to enforce the
downgrade.
It also supports <all>, which means it can add force tag for all the
suggested flash packages.
--includeid, -I Optional This parameter should be used with the --nocompare parameter.
--output, -o Optional Specify the output directory. By default, the output directory is saved
in ./logs/.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--uselocalimg Optional If the --uselocalimg parameter is specified, the flash command forces
to copy the payload file from the local folder to the SFTP server.
--platform Optional Update firmware with OOB method and Bare Metal Update (BMU)
method.
• --check-trust, -C Optional Refer to Table 3 “OneCLI global parameters” on page 2.
• --help,-h
• --never-check-
trust, -N
• --nolog
multiscan command
Use the multiscan command to remotely scan the firmware information of multiple BMC, and specify the
BMC information and the configuration parameters by using a JSON configuration file. The output results are
saved in the OneCLI logs in xml format, for example, multi_task\20190429_154002\Success-10.240.194.248
\Onecli-update-scan.xml.
OneCli.exe update multiscan <--configfile <arg>> [--dir <arg>] [--quiet|-q] [--pattern <arg>] [--check-trust|-C]
[--never-check-trust|-N] [--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
Options
--pattern
Filter the items in the scan result tables of multi servers through the regular expression. The outputs are
displayed on the screen and recorded in the JSON file in the log directory.
--configfile
Specify the JSON configuration file. The template file is available in Sample/multi_task_config.json in
OneCLI binary.
Chapter 7. Update 81
Table 62. multiscan command specific parameters
--config Optional Specify the file path for the OneCLI config commands.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
scan command
Use the scan command to build a list of available firmware and device driver updates for the targeted device.
The XML file generated with scan command can be used by the compare command.
Options
--remoteos
Specify the remote OS login credential for OneCLI to manage the servers. After connecting to Linux OS,
OneCLI supports to update firmware and device driver. Ensure that the OneCLI binary for the remote
Linux OS is in the directory specified with the --dir parameter. The sample command is: ./OneCli update
compare --remoteos root@xx. xx.xx.xx --dir packages --quiet.
Note: Before using this function, users should set “PasswordAuthentication yes” to enable the tunneled
clear text passwords in /etc/ssh/ sshd_config.
--esxi Required Specify the esxi OS information, including OS user name, password,
IP address, and port.
--remoteos Optional Specify the remote OS login credential for OneCLI to manage system
in the local host OS.
In this example, we are building a list of firmware (update scan command) installed in a CMM that is
accessed with a user ID of “userid”, a password of “password”, and an IP address of “host” (--cmm userid:
password@host argument) storing the scan report XML file (using the default file name) in the “output”
directory (--output .\872102cn03e\output\ argument).
startstaged command
Use the startstaged command to start the update task staged in XCC2 on the ThinkSystem V3 systems.
Chapter 7. Update 83
startstaged command syntax
The following table list the miscellaneous commands supported by XClarity Essentials OneCLI.
Commands Description
bmcpassword Remotely change password of BMC accounts when first login or password expired.
fpusb Set and view the configurations of the front panel USB port.
multibmcpassword Remotely change password of BMC accounts for multiple systems when first login or
password expired.
multiinventory Remotely collect system information for multiple IMM-based or XCC-based servers.
Commands Description
multiraid Remotely create, clear, and save the RAID configuration for multiple systems.
multiospower Turn on, turn off and restart the server, obtain the server power state, and restart the server to
BIOS setup.
Commands Description
bmcpassword command
Use the bmcpassword command to remotely change the password of BMC accounts when users log in to
BMC for the first time or the password is expired on the XCC-based servers.
Chapter 8. Miscellaneous 87
Table 66. bmcpassword command specific parameters
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
cmos command
Use the cmos command to execute the CMOS action. The system should be powered off before running the
cmos command.
clear OneCli.exe [misc] cmos clear Remotely clear the CMOS data.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
edgeserver command
Use the edgeserver command to manage the status of the ThinkEdge servers.
getsecurityinfo Get ThinkEdge server OneCli.exe [misc] edgeserver getsecurityinfo [--bmc|-b <arg>]
security information [--check-trust|-C] [--never-check-trust|-N] [--quiet|-q] [--noping]
from BMC. [--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
lock Lock the server. OneCli.exe [misc] edgeserver lock [--bmc|-b <arg>] [--check-trust|-C]
[--never-check-trust|-N] [--quiet|-q] [--noping] [--output|-o <arg>]
[--nolog] [--config <arg>] [--help|-h]
unlock Unlock server over OneCli.exe [misc] edgeserver unlock [--bmc|-b <arg>] [--check-trust|-C]
BMC. [--never-check-trust|-N] [--quiet|-q] [--noping] [--output|-o <arg>]
[--nolog] [--config <arg>] [--help|-h]
encrypt command
Use the encrypt command to encrypt, save, and update the credentials or the sensitive setting values in the
specified plain text file.
Chapter 8. Miscellaneous 89
Table 70. encrypt command specific parameters
ffdc command
Use the ffdc command to collect the FFDC of BMC/ESXi/CMM/SMM.
Option
Usage
Usage: OneCli.exe [misc] ffdc [ [--cmm|-c <arg>] [--smm <arg>]
[--bmc|-b <arg>] [--esxi|-e <arg>] ]
[--cn <arg>] [--sn <arg>]
[--mt <arg>] [--check-trust|-C]
[--never-check-trust|-N] [--upload <arg>]
[--proxy|-P <arg>] [--proxy-cacert <arg>]
[--cacert <arg>] [--proxy-insecure]
[--insecure] [--tftp <arg>]
[--sftp <arg>] [--bmc-username|-u <arg>]
[--bmc-password|-w <arg>] [--bmc-rest-port|-p <int>]
[--bmc-cim-port|-p <int>] [--iobay <arg>]
[--node|-n <int>] [--quiet|-q]
[--output|-o <arg>] [--nolog]
[--config <arg>] [--help|-h]
--proxy, -P Optional Specify proxy user credential and IP address used to connect to the
target server specified in the --upload parameter.
--upload Required This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
Chapter 8. Miscellaneous 91
fpusb commands
The topics in this section provide detailed information about how to use the fpusb commands to set and view
the configurations of the front panel USB port.
Command Description
set Set the configurations of the front panel USB port. For more information, refer to “set
command” on page 92.
status View the configurations of the front panel USB port. For more information, refer to “status
command” on page 93.
Notes:
• The front panel USB port does not support the following servers: ThinkSystem SD530, ThinkSystem
SD650, System nx360 M5, System x240 M5 Compute Node, System x240 Compute Node, System x440
Compute Node, System x280/x480/x880 X6 Compute Node, System x3250 M6, System x3500 M5,
System x3550 M5, System x3650 M5, System x3750 M4, System x3850 X6, and System x3950 X6.
• Before configuring the front panel USB port in the target server, select the --bmc-username option and
the --bmc-password option to specify the SSH credentials for the BMC connection.
set command
Use the set command to set the configurations for the front panel USB port in the target server.
--btn Optional Switch the owner by enabling or disabling ID button when the
specified mode is shared.
--mode Optional Specify the mode for the front panel USB. The mode can be set as
bmc, server and shared.
--owner Optional Set the preferred owner when the specified mode is shared. The
values inlcude: server, and bmc.
--timeout Optional Set the inactivity time-out for the fpusb command of the BMC. The
unit is minute.
Notes:
• To set the owner, input the status command to check if the front panel USB port is in shared mode; if no,
select the --mode shared option to set the front panel USB port to shared mode, and then select the
owner.
• To set the inactivity time-out, input the status command to check if the front panel USB port is in shared
mode and if BMC is the preferred owner; if no, select the --mode shared option to set the front panel
USB port to shared mode, and select the --owner bmc option to set BMC as the preferred owner.
status command
Use the status command to view the configurations of the front panel USB port in the target server.
hddlocate command
Use the hddlocate command to manage the LED status of hard disk drive.
Chapter 8. Miscellaneous 93
Table 75. hddlocate commands
show OneCli.exe [misc] hddlocate show [--bmc|-b <arg>] Show the LED status of
[--check-trust|-C] [--never-check-trust|-N] [--quiet|-q] hard disk drive.
[--slot|-S <int>] [--bmc-username|-u <arg>]
[--bmc-password|-w <arg>] [--bmc-rest-port|-p <int>]
[--output|-o <arg>] [--nolog] [--config <arg>]
[--help|-h]
turnon OneCli.exe [misc] hddlocate turnon [--bmc|-b <arg>] Turn on the LEDs of the
[--check-trust|-C] [--never-check-trust|-N] [--quiet|-q] hard disk drive and set
[--slot|-S <int>] [--bmc-username|-u <arg>] them to blink by disk slot
[--bmc-password|-w <arg>] [--bmc-rest-port|-p <int>] number.
[--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
turnoff OneCli.exe [misc] hddlocate turnoff [--bmc|-b <arg>] Turn off the LEDs of the
[--check-trust|-C] [--never-check-trust|-N] [--quiet|-q] hard disk drive by disk slot
[--slot|-S <int>] [--bmc-username|-u <arg>] number.
[--bmc-password|-w <arg>] [--bmc-rest-port|-p <int>]
[--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
--slot Optional Specify the slot number of the target hard disk drive for the LED
status management.
hostinterface command
Use the hostinterface command to manage Host Interface of BMC Redfish.
Command Description
clear Clear Host Interface account. For more information, refer to “clear command” on page 95.
logmgr commands
Use the logmgr commands to obtain and clear BMC event logs. The logmgr commands support in-band and
out-of-band mode.
clearbmclog OneCli.exe misc logmgr • Clear the BMC event logs of the server.
clearbmclog • Clear the remote BMC event logs by inputting --bmc
user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
clearall OneCli.exe misc logmgr • Clear the BMC event logs and the system event logs of
clearall --bmc userid: the server.
password@host • Clear the remote BMC event logs and the system event
logs by inputting --bmc user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”
Chapter 8. Miscellaneous 95
Table 79. logmgr commands and syntax examples (continued)
clearsel OneCli.exe misc logmgr • Clear the system event logs of the server.
clearsel --bmc userid: • Clear the remote BMC system event logs by inputting
password@host --bmc user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
showauditlog OneCli.exe misc logmgr • Display the BMC audit event logs of the server.
showauditlog --bmc userid: • Display the remote BMC audit event logs by inputting
password@host --bmc user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
showbmclog OneCli.exe misc logmgr • Display the BMC Platform event logs of the server.
showbmclog --bmc userid: • Display the remote BMC event logs by inputting --bmc
password@host user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
showmaintlog OneCli.exe misc logmgr • Display the BMC maintenance logs of the server.
showmaintlog --bmc userid: • Display the remote BMC maintenance logs by inputting
password@host --bmc user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
showsel OneCli.exe logmgr • Display the system event logs of the server.
showsel --bmc userid: • Display the remote BMC system event logs by
password@host inputting --bmc user:password@host:port.
• Can be run on the local host OS without specifying
“--bmc”.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
multiffdc command
Use the multiffdc command to obtain the BMC/SMM FFDC logs from multiple servers.
OneCli.exe [misc] multiffdc [ [--smm <arg>] [--bmc|-b <arg>] ][--cn <arg>] [--sn <arg>]
[--mt <arg>] [--check-trust|-C] [--never-check-trust|-N] [--upload <arg>] [--proxy|-P <arg>]
[--proxy-cacert <arg>][--cacert <arg>] [--proxy-insecure][--insecure] [--tftp <arg>]
[--sftp <arg>] [--bmc-username|-u <arg>] [--bmc-password|-w <arg>] [--bmc-rest-port|-p <int>]
[--bmc-cim-port|-p <int>] [--iobay <arg>] [--node|-n <int>] [--quiet|-q][--configfile <arg>]
[--output|-o <arg>][--nolog] [--config <arg>] [--help|-h]
Chapter 8. Miscellaneous 97
Table 82. multiffdc command specific parameters
--iobay Optional bay_number specifies the I/O module bay number. Valid values are 1,
2, 3, or 4.
--upload Required This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
Command Description
getinfor Gets device inventory information from multiple servers. For more information, refer to
“getinfor command” on page 99.
getinfor command
Use the getinfor command to get device inventory information from multiple servers.
OneCli.exe multiinventory getinfor <--configfile <arg>> [ [--cn <arg>] [--sn <arg>] [--mt <arg>]
[--check-trust|-C] [--never-check-trust|-N] [--device <arg>] [--upload <arg>]
[--proxy|-P <arg>] [--proxy-cacert <arg>] [--cacert <arg>] [--proxy-insecure]
[--insecure] [--htmlreport] [--ffdc] [--tftp <arg>] [--sftp <arg>] [--hldec]
[--quiet|-q] [--output|-o <arg>] [--nolog] [--config <arg>] [--help|-h]
--ffdc Optional If specified, the inventory application will retrieve the BMC FFDC log.
--hldec Optional Collect the UEFI hidden logs. This option is only supported for System
X.
--htmlreport Optional If specified, the output results will contain HTML file report.
Chapter 8. Miscellaneous 99
Table 84. getinfor command specific parameters (continued)
For the I/O module target, the CMM machine type is specified.
--proxy Optional Use proxy to connect to Lenovo Web site.
--upload Required This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
Command Description
add Create RAID configuration. For more information, refer to “add command” on page 101.
clear Clear RAID configuration. For more information, refer to “clear command” on page 102.
init Fastly initialize volumes. For more information, refer to “init command” on page 103.
makegood Convert the JBOD drives to the unconfigured good drives. For more information, refer to
“makegood command” on page 104.
makejbod Convert the unconfigured good drives to the JBOD drives. For more information, refer to
“makejbod command” on page 105.
save Save RAID configuration. For more information, refer to “save command” on page 106.
show Show controller and drive information. For more information, refer to “show command” on
page 107.
add command
Use the add command to create the RAID configuration for multiple IMM/XCC-based servers.
Example: --ctrl 1.
--force Optional Forcibly create RAID configuration when there is no user interaction.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
clear command
Use the clear command to clear the RAID configuration for multiple IMM/XCC-based servers.
Example: --ctrl 1.
--force Optional If specified, it will forcibly create RAID configuration without user
interaction.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--volume, -v Optional Specify the target volume ID. The argument can be specified to
multiple targets by comma. If not specified, it means all.
init command
Use the init command to fastly initialize volumes for multiple IMM/XCC-based servers.
Note: This command can only be used in the ThinkSystem servers with XCC level versions released later
than October 2018.
Example: --ctrl 1.
--force Optional Forcibly create RAID configuration when there is no user interaction.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--volume, -v Optional Specify the target volume ID. The argument can be specified to
multiple targets by comma. If not specified, it means all.
makegood command
Use the makegood command to convert the JBOD drives to the unconfigured good drives for multiple IMM/
XCC-based servers.
Example: --ctrl 1.
--force Optional Forcibly create RAID configuration when there is no user interaction.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
makejbod command
Use the makejbod command to convert the unconfigured good drives to the JBOD drives for multiple IMM/
XCC-based servers.
Example: --ctrl 1.
--force Optional Forcibly create RAID configuration when there is no user interaction.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
save command
Use the save command to save the RAID configuration for multiple IMM/XCC-based servers.
Example: --ctrl 1.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
show command
Use the show command to show controller and drive information for multiple IMM/XCC-based servers.
Example: --ctrl 1.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
multiospower commands
Use the multiospower commands to turn on, turn off and restart the server, obtain the server power state,
and restart the server to BIOS setup.
Option Description
boottosetup Restart the server to BIOS setup. For more information, refer to “boottosetup command” on
page 108.
reboot Restart the server. For more information. refer to “reboot command” on page 109.
state Obtain the server power state. For more information. refer to “state command” on page 109.
turnon Turn on the server. For more information. refer to “turnon command” on page 110.
turnoff Turn off the server. For more information. refer to “turnoff command” on page 110.
boottosetup command
Use the boottosetup command to restart the server to BIOS setup.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
reboot command
Use the reboot command to restart the server.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
state command
Use the state command to obtain the server power state.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
turnon command
Use the turnon command to turn on the server.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
turnoff command
Use the turnoff command to turn off the server.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
multiservicedata command
Use the multiservicedata command to obtain service data information from multiple BMC.
--type, -T Optional Specify the type of service data obtained from BMC.
--upload Required This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
multisyshealth command
Use the multisyshealth command to remotely collect system health information for multiple IMM/XCC-
based servers.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
multivm commands
Use the multivm command to list, mount, or unmount the virtual media on multiple BMC.
list OneCLI multivm list --bmc <bmc connection info> List the virtual media status
on BMC.
mount OneCLI multivm mount --id <virtual media id> --path Mount virutal media on
<httpfs or nfs url> --bmc <bmc connection info> BMC by using ID.
umount OneCLI multivm umount --id <virtual media id> --bmc Unmount virutal media on
<bmc connection info> BMC by using ID.
--configfile Required Specify the configuration file for multiple task commands,
the format is: Sample/muti_task_config.json.
--id, -I Only required in the mount and Specify the virtual media ID, for example, RDOC1, EXT1,
umount commands. and Remote1.
CIFS(ThinkBMC) form:
• cifs://[username:password@]host[:port]/path/to/file
ospower command
Use the ospower commands to power on, power off, and restart host OS, and display the power status of the
host server OS. The ospower commands support in-band mode and out-of-band mode.
turnoff OneCli.exe ospower turnoff • Turn off the host server OS.
--bmc userid:password@ • Turn off the remote host OS by inputting --bmc
host user:password@host:port.
turnon OneCli.exe ospower turnon • Turn on the host server OS.
--bmc userid:password@ • Turn on the remote host OS by inputting --bmc
host user:password@host:port.
portctrl commands
Use the portctrl command to display and configure CIM, IPMI, or all interfaces and discovery protocols.
Option
--help
Display the help information for commands.
Connection option
Option Description
all Display and configure all interfaces and discovery protocols. For more information, refer to “all
command” on page 115.
cim Display and configure CIM over HTTPS. For more information. refer to “cim command” on
page 115.
ipmikcs Display and configure IPMI over KCS. For more information. refer to “ipmikcs command” on
page 116.
ipmilan Display and configure IPMI over LAN. For more information. refer to “ipmilan command” on
page 116.
all command
Use the all command to display and configure all interfaces and discovery protocols.
OneCli.exe misc portctrl <all> [on|off] [--bmc <arg>] [--bmc-username|-u <arg>] [--bmc-password|-w <arg>]
[--check-trust|-C] [--never-check-trust|-N] [--bmc-rest-port|-p <int>] [--quiet|-q] [--output|-o <arg>]
[--nolog] [--config <arg>] [--help|-h]
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
cim command
Use the cim command to display and configure CIM over HTTPS.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
ipmikcs command
Use the ipmikcs command to display and configure IPMI over KCS.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
ipmilan command
Use the ipmilan command to display and configure IPMI over LAN.
--quiet, -q Optional This parameter answers “yes” for all questions, and decreases the
outputs displayed on screen.
raid command
Use the raid command to create, clear, and save the RAID configuration, check the drive information,
convert the JBOD drives to the unconfigured good drives, and convert the unconfigured good drives to the
JBOD drives.
Notes:
• It is risky to change the RAID configuration because all data on the disk might not be available.
• From V2.4.0, OneCLI supports the RAID configuration on M.2 SSD with the matching XCC level. The RAID
configuration on M.2 SSD supports the following commands: add, clear, save, and show.
• From V2.5.0, OneCLI supports Software Raid configuration with Intel RSTe Software on Linux. The
Software Raid configuration with Intel RSTe Software supports the following commands: show, add, and
clear.
• From V2.8.0, OneCLI supports Broadcom RAID configuration with storcli utility on Windows and Linux.
The Broadcom RAID configuration supports the following commands: show, add, save, clear, makegood,
and makejbod.
• From V3.0.0, OneCLI supports M.2 controller RAID configuration in the in-band mode on Windows and
Linux. The M.2 controller RAID configuration supports the following commands: show, add, save, and
clear.
• From V3.5.1, OneCLI supports Broadcom RAID/Microchip RAID configuration through out-of-band mode
for the ThinkServer servers.
Command Description
Command Description
fwdeviceorder Enable or disable the “firmware device ordering” feature of the RAID adapter.
The following is the template policy file for Hardware Raid configuration. For the latest template policy
file, refer to RAID_HW_new.ini in OneCLI binary.
# EXAMPLE
# Create one simple RAID1 volume for Broadcom controller RAID, one simple RAID1 volume for Microchip controller
# RAID and one simple RAID0 volume for Marvell controller RAID.
# For Broadcom controller RAID, create one RAID1 volume which consumes 200GB.
# For Microchip controller RAID, create one RAID1 volume which consumes 300GB.
# For Marvell controller RAID, create one RAID0 volume that consumes all volume capacity.
# For controller RAID on ThinkServer, create one RAID0 volume that consumes 446GB.
# SYNTAX EXPLANATION
#
# disks
# In out-of-band mode:
# [Broadcom] [Required] Specify drive(s) index separated by ",", supporting ”rest”(case insensitive).
# Specify span(s) index separated by ":"when RAID level is 1E, 10, 50, 60 or 00.(For example, 0,1:2,3)
# [Microchip] [Required] Specify drive(s) index separated by ",". Specify span(s) index separated by ":"
# when RAID level is 10, 50, 60 or 00.(For example, 0,1:2,3)
# [Marvell] [Unsupported]
# [ThinkServer] [Required] The same as Broadcom oob way except not supporting ”rest”.
#
# In inband mode:
# [Broadcom] [Required] The same as Broadcom oob way except not supporting ”rest”.
# [Microchip] [Required] Specify drive(s) index separated by ",".
# [Marvell] [Unsupported]
#
# Sample template to configure RAID volumes with Intel RSTe Software RAID and Intel(R) virtual RAID using
# --ctrl parameter.
#
# Intel VROC and Intel Rapid Storage Technology Enterprise (Intel RSTe) were previously related products in
# the same product family.
# The SATA RAID portion of the product family was called Intel RSTe and the NVMe RAID portion was called Intel VROC.
# However, starting in Q1 2019, with the launch of Intel VROC 6.0, the Intel RSTe name was removed, and all RAID
# solutions in this product
# family were branded as Intel VROC. The SATA functionality remains, but is now branded as Intel VROC (SATA RAID).
# USAGE NOTE
# Software RAID can be created and configured by OneCLI running in the Operating System.
# If the disk count is sufficient, one array and up to two volumes of mixed RAID levels can be created.
# Ensure that the proper Intel software RAID driver is installed on Windows.
#
# To use this sample, uncomment and edit a block of example based on your needs.
# EXAMPLE 1
# For Intel VROC via out-of-band mode, create one RAID0 volume which consumes 300GB.
#[ctrl1-vol0]
# disks=1,2
# raid_level=0
# vol_name=volume1
# volume_size=300GB
# strip_size=128K
#
# EXAMPLE 2
# For Intel VROC via inband mode in windows, create one RAID0 volume which consumes 50GB and one RAID0 volume
# which consumes rest capacity.
#[ctrl0-vol0]
# disks=1,2
# raid_level=0
# vol_name=vol0
# vol_capacity=50GB
# vol_strip_size=64K
# RAID_write_hole=Off
#[ctrl0-vol1]
# disks=1,2
# raid_level=0
# vol_name=vol1
# vol_strip_size=64K
# RAID_write_hole=Off
#[ctrl0]
# global_hot_spares=3
# SYNTAX EXPLANATION
#
# disks
# [Required] Specify drive(s) index separated by ",".
# [Format] disks=0,1
#
# raid_level
# [Required] Values: 0, 1, 5, 10.
# [Format] raid_level=1
#
# vol_name
# [Required] Allowed characters: A-Z, a-z, 0-9, -(dash), .(period), and _(underscore).
# [Format] vol_name=vol0
add command
Use the add command to create RAID configuration.
Example: --ctrl 1.
--force Optional Forcibly create RAID configuration when there is no user interaction.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
addhsp command
Use the addhsp command to assign the drive as hot spare.
Example: --ctrl 1.
changemode command
Use the changemode command to change the connector mode for Microchip RAID adapter.
Example: --ctrl 1.
--mode Required Specify the mode for the front panel USB. The mode can be set as
bmc, server and shared.
clear command
Use the clear command to clear RAID configuration.
Example: --ctrl 1.
--force Optional Force to create RAID configuration when there is no user interaction.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
--volume, -v Optional Specify the target volume ID. The argument can be specified to
multiple targets by comma. If not specified, it means all.
ekm command
Use the ekm command to display the external key management status of the RAID adapter, and enable or
disable the external key management.
Example: --ctrl 1.
envol command
Use the envol command to display the encryption status of the virtual disks/volumes managed by RAID
adapter, and enable the encryption of the virtual disks/volumes.
Example: --ctrl 1.
Value: enable.
--volume, -v Optional Specify the target volume ID. The argument can be specified to
multiple targets by comma. If not specified, it means all.
fwdeviceorder command
Use the fwdeviceorder command to enable or disable the “firmware device ordering” feature of the RAID
adapter.
Example: --ctrl 1.
--mode Optional Specify the firmware device order mode. The values include: on, off.
init command
Use the init command to quickly initialize volumes. This command can only be used in the ThinkSystem
servers with XCC level versions released after October 2018.
Example: --ctrl 1.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
--volume, -v Optional Specify the target volume ID. The argument can be specified to
multiple targets by comma. If not specified, it means all.
makegood command
Use the makegood command to convert the JBOD drives to the unconfigured good drives.
Example: --ctrl 1.
makejbod command
Use the makejbod command to convert the unconfigured good drives to the JBOD drives. This command
can only be used in the ThinkSystem servers.
Example: --ctrl 1.
rmhsp command
Use the rmhsp command to remove the hot spare.
Example: --ctrl 1.
save command
Use the save command to save RAID configuration.
Example: --ctrl 1.
show command
Use the show command to show the drive information to the controllers.
Example: --ctrl 1.
--target, -t Optional (Deprecated It is recommended to use the --ctrl option instead.
from V3.5.1)
Specify the target controller ID. The following is the description on ID:
• 1: ctrl[1]
• m2/m.2: Single m.2 raid
• m2-1/m.2-1: Multi m.2 raid
The argument can be specified to multiple targets by comma. If not
specified, it means all.
rebootbmc command
Use the rebootbmc command to restart BMC. The rebootbmc command still works for backward
compatibility, so the script solution will not destroy the rebootimm command specified in the scripts.
rebootcmm command
Use the rebootcmm command to restart CMM.
rebootiom command
Use the rebootiom command to restart I/O Module on the Flex chassis.
rebootsmm command
Use the rebootsmm command to restart SMM.
reseatblade command
Use the reseatblade command to reseat the blades on the Flex chassis.
--standby Optional If the --standby parameter is specified, the reseatcmm command will
reseat the standby CMM instead of the primary CMM.
reseatswitch command
Use the reseatswitch command to reseat the switch on the Flex chassis.
restorebmu command
Use the restorebmu command to restore the BMU status on BMC.
--node, -n Optional Specify the node index for in-band mode on the multi-node system.
restoresmm command
Use the restoresmm command to restore the SMM update progress.
rpp commands
Use the rpp commands to assert and deassert Remote Physical Presence(RPP), or obtain its status.
Command Description
assert Assert RPP in the target server. For more information, refer to “assert command” on page 138.
deassert De-Assert RPP in the target server. For more information, refer to “deassert command” on
page 139.
status Obtain RPP status. For more information, refer to “status command” on page 139.
assert command
Use the assert command to assert RPP in the target server.
deassert command
Use the deassert command to deassert RPP in the target server.
status command
Use the status command to obtain RPP status.
Notes:
• Using the standardized secure erase/sanitize commands applicable to the media-specific techniques,
OneCLI supports to erase SATA/SAS/NVMe drives attached to the backplane, managed by a RAID
controller, or connected with an HBA adapter.
• Following are the erase methods:
--dir Optional Specify the path of the Maintenance OS boot file and the OneCLI
package file.
The address is used to upload the maintenance OS boot file and the
OneCLI package file.
Note: Before running the serase command, users should run the following command to download
necessary files for secure erase. For more information about secure erase, refer to “Secure data deletion for
all data storage devices” on page 173.
servicedata command
Use the servicedata command to obtain service data information from BMC.
--type, -T Required Specify the type of service data obtained from BMC.
servicelog command
Use the servicelog command to obtain service data log from BMC.
--iobay Optional bay_number specifies the I/O module bay number. Valid values are 1,
2, 3, or 4.
--mt Optional Specify with --sn. Specify the machine of the target system when
uploading the files to System CARE.
--proxy, -P Optional Specify proxy user credential and IP address used to connect to the
target server specified in the --upload parameter.
Format: IP[:port][/path].
--upload Optional This parameter can be specified with the following arguments: lenovo
and server address.
If specified with lenovo, the format is: --upload lenovo. The inventory
data is uploaded to Lenovo Upload Facility. Users should specify the
case number, or specify both machine type and serial number.
smartdata command
Use the smartdata command to get the SMART data of disk drive.
Option
Usage
OneCli.exe [misc] smartdata [--bmc|-b <arg>] [--node|-n <int>]
[--check-trust|-C] [--never-check-trust|-N]
[--bmc-username|-u <arg>] [--bmc-password|-w <arg>]
[--bmc-rest-port|-p <int>] [--bmc-cim-port|-p <int>]
[--quiet|-q] [--output|-o <arg>]
[--nolog] [--config <arg>]
[--help|-h]
smmlan commands
Use the smmlan commands to enable or disable SMM LAN.
disable OneCli.exe misc smmlan disable Disable the SMM LAN by following the XCC connection
information about SMM.
enable OneCli.exe misc smmlan enable Enable the SMM LAN by following the XCC connection
information about SMM.
query OneCli.exe misc smmlan query Query the SMM LAN status by following the XCC
connection information about SMM.
--method Optional Support the following values for the enable command: dhcp, static,
and DHCP-Failover.
switchcmm command
Use the switchcmm command to toggle active CMM.
sysguard command
Use the sysguard command to manage BMC system guard.
Command Description
clearsnapshot Clear all snapshots data under BMC System Guard. For more information, refer to
“clearsnapshot command” on page 144.
clearsnapshot command
Use the clearsnapshot command to clear all snapshots data under BMC System Guard.
syshealth command
Use the syshealth command to query the system health status. Only the ThinkSystem servers support this
command.
OneCli.exe syshealth
OneCli.exe misc syshealth --bmc userid:password@host
OneCli.exe misc syshealth --device power
OneCli.exe misc syshealth --device power --bmc userid:password@host
usblan command
Use the usblan commands to enable or disable USB LAN in host OS.
Com-
mand Syntax example Output example Description
disable onecli.exe usblan disable Succeed to disable BMC Lan over USB. Disable all of the LAN-over-USB
devices on the host OS side.
enable onecli.exe usblan enable Succeed to enable BMC Lan over USB. Enable all of the LAN-over-USB
devices on the host OS side.
query onecli.exe usblan query No /Device state /BMC IP Query all of the LAN-over-USB
/Host IP devices status on the host OS
0 /connected side.
/host Its output statuses include:
/host • disabled: LAN-over-USB
interface is off
• enabled:LAN-over-USB
interface is on, but BMC IP is
not reachable
• connected: BMC IP is
reachable
Note: Only one of the previous commands should be specified in a command line at the same time.
vm commands
Use the vm commands to list, mount, or unmount the virtual media.
vm command syntax
list OneCLI vm list --bmc <bmc connection info> List the virtual media status on
BMC.
mount OneCLI vm mount --id <virtual media id> --path Mount virutal media on BMC by
<httpfs or nfs url> --bmc <bmc connection info> using ID.
umount OneCLI vm umount --id <virtual media id> --bmc Unmount virutal media on BMC
<bmc connection info> by using ID.
--id, -I Only required in the mount and Specify the virtual media ID, for example, RDOC1, EXT1,
umount commands. and Remote1.
--path, -P Only required in the mount and Specify the URL of virtual media path, which supports
umount commands. NFS and HTTPFS.
CIFS(ThinkBMC) form:
• cifs://[username:password@]host[:port]/path/to/file
Command Description
run Run the diagnostics program of the remote server.
run command
Use the run command to run the diagnostics program of the remote server.
Notes:
• To enable or disable advanced memory test, refer to “Enabling/disabling advanced memory test” on page
171.
• Restart the remote server before running the diagnostics program. If the message “System reboot is
required, confirm to continue (yes/no)” is displayed, input yes/y to run the diagnostics program, or input
no/n to exit.
• For the ThinkServer/WenTian/KaiTian servers, only WR5220 G3 and WR5228 G3 support the diags
function, and it only supports the hdd, hdd_full, mem, and mem_full parameters.
--item Optional The values include: hdd, hdd_full, mem, mem_full, and pmem. If not
specified, hdd, mem, and pmem are the default parameters. The
value is case insensitive.
Note: “pmem” stands for Intel Optane DC Persistent Memory
Module.
--force Optional If specified, it will run the diagnostics program without interaction.
Input tui syntax to enter into OneCLI Interactive Menu, and input the item number to start the program based
on the actual needs.
Submenus Description
[4] Collect FFDC Logs and Inventory Information Input 4 to collect FFDC logs and
inventory information. The path for
saving FFDC logs and inventory
information will be displayed when the
program completes.
tui syntax
OneCli.exe tui
For information about specific FoD key application commands, refer to the following:
• “Commands that generate and acquire the FoD key” on page 153
• “Commands that generate, get, replace, and upload FoD key information” on page 154
• “Commands that install, uninstall, and export the FoD key, and report the FoD key information” on page
158
Command Description
acquire Generate and acquire the FoD key from Lenovo Web site and install the key to the target key
repository.
acquire command
Use the acquire command to generate and acquire the FoD key from Lenovo Web site and install the key to
the target key repository.
OneCli.exe [misc] fod acquire <--uid >> <--auth <auth_code>> <--kmsid <kms_id>> <--mt <mt>>
<--installin <mt_sn>> [--all] [--dir <dir_name>] [--proxy <proxy_info>] [<options>]
--all Optional Get all the FoD keys for the specified system.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth.
--dir Optional Specify the directory to save the downloaded key file. The default
value is the current directory.
--installin Optional System machine type and serial number of the target system.
--kmsid Required Specify Lenovo ID credential for Lenovo Web site interactive.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
OneCli.exe fod acquire --mt 2582 --uid xxx --auth xxx --kmsid userid:password
--bmc userid:password@host
Note: If the FoD key is already generated in KMS, the acquire command will report the failure in generating.
Acquire and install the FoD key through the steps in the following section.
Commands that generate, get, replace, and upload FoD key information
The topics in this section provide detailed information about how to use the FoD key application and
commands to generate, get, replace, and upload FoD key information.
Command Description
generate generate the FoD key on Lenovo Web site.
replace Replace the FoD key for the specified system on Lenovo Web site.
generate command
Use the generate command to generate the FoD key on Lenovo Web site.
OneCli.exe [misc] fod generate <--uid <uid>> <--auth <auth_code>> <--kmsid <kms_id>> <--mt <mt>> <--installin <mt_sn>>
[--proxy <proxy_info>] [<options>]
--installin Required System machine type and serial number of the target system.
--kmsid Required Specify Lenovo ID credential for Lenovo Web site interactive.
--mt Required Specify system machine type for system/option feature.
get command
Use the get command to get the generated FoD key from Lenovo Web site.
OneCli.exe [misc] fod get <--uid <uid>> <--kmsid <kms_id>> [--all] [--dir <dir_name>] [--proxy <proxy_info>]
[<options>]
--all Optional Get all the FoD keys for the specified system.
--dir Optional Specify the directory to save the downloaded key file. The default
value is the current directory.
--kmsid Optional Specify Lenovo ID credential for Lenovo Web site interactive.
--proxy Optional Use proxy to connect to Lenovo Web site.
replace command
Use the replace command to replace the FoD key for the specified system on Lenovo Web site.
OneCli.exe [misc] fod replace <--featurecode <feature_code>> <--uid <uid>> <--olduid <old_uid>> <--kmsid<kms_id>>
[--installin <install_in>] [--dir <dir_name>] [--proxy <proxy_info>] [<options>]
--dir Optional Specify the directory to save the downloaded key file. The default
value is the current directory.
--featurecode Required Specify the feature code of the FoD key to be replaced.
--installin Optional System machine type and serial number of the target system.
--kmsid Required Specify Lenovo ID credential for Lenovo Web site interactive.
OneCli.exe fod replace --featurecode xxxx --uidxxx --olduid xxx --kmsid userid:password
--installin xxxxxx --output replace
uploadreport command
Use the uploadreport command to upload the SDSi state report to Intel.
Table 161. Commands that install, uninstall, and export the FoD key, and report the FoD key information
Command Description
export Export the FoD key from the target key repository.
install Install the target FoD key to the target key repository.
showppin Get the processor index, PPIN, the machine type, and serial number of target server.
uninstall Uninstall the FoD key from the target key repository.
export command
Use the export command to export the FoD key from the target key repository.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth. Format: --authproto MD5 or --authproto.
--keyid Required Specify the FoD key ID that can be acquired from command report. If
the key ID is specified to “all”, all the FoD keys in the target key
repository will be exported.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
exportreport command
Use the exportreport command to export the Intel SDSi status report from the target key repository to the
local.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth. Format: --authproto MD5 or --authproto.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
--socketid Optional Specify the processor index. If the --socketid argument is not
specified, then all SDSi status reports will be exported.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
install command
Use the install command to install the target the FoD key to the target key repository.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth.
--keyfile Required Specify the path or file name of the FoD key file on local system.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
report command
Use the report command to report the FoD key information from the target key repository.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth. Format: --authproto MD5 or --authproto.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
Format: user:password@IP:port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
showppin command
Use the showppin command to get the processor index, PPIN, the machine type, and serial number of target
server.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth. Format: --authproto MD5 or --authproto.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
uninstall command
Use the uninstall command to uninstall the FoD key from the target key repository.
--authproto Optional The parameter only for snmpv3, Protocol supported value: MD5/SHA,
default: No auth. Format: --authproto MD5 or --authproto.
--keyid Required Specify the FoD key ID that can be acquired from command report. If
the key ID is specified to “all”, all the FoD keys in the target key
repository will be uninstalled.
--privproto Optional The parameter only for snmpv3. Privacy protocol supported value:
DES/AES, default: No privacy.Format: --privproto DES or --privproto.
Format: user:password@IP:port
--switch Optional SWITCH connection information. Format: user:password@IP: port
--tftp Optional TFTP server for snmp interface. Format: user:password@host: port
multifod commands
The topics in this section provide detailed information about how to use multifod application and commands
to generate and acquire multiple FoD keys by using the specified arguments from KMS, and install the
existing multiple FoD keys to the specified system.
install Install the existing multiple FoD keys to the specified system.
acquire command
Use the acquire command to generate and acquire multiple FoD keys from Lenovo website and install these
keys to the target key repository.
--configfile Required Specify the config file for multi task command. For the format, refer to
Sample/multi_task_config.json
--kmsid Required Specify Lenovo ID credential for Lenovo Web site interactive.
install command
Use the install command to install the existing multiple FoD keys to the specified system.
--configfile Required Specify the configuration file for the multi task command.
--keyfile Required Specify the path and file name of the FoD key file on local system.
Command Description
rdmount Mount CD/DVD drives, ISO image files, or USB key on a remote BMC-based.
rdumount Unmount CD/DVD drives, ISO image files, or USB key mounted using rdmount.
rdmount
Use rdmount to mount CD/DVD drives, ISO image files, or USB key on a remote BMC-based system. The
application authenticates with the BMC and functions as a file server to access the virtual disk. It can also
query and return a list of drives that are already mounted. Virtual disks are unmounted using the rdumount
command.
Note: After V2.4.0, the rdmount command and the rdumount command can be used in the ThinkSystem
servers with the matching XCC level.
rdmount syntax
Options
-h
Displays help information.
-q
Queries the existing mounts and returns a list of ‘tokens’ that can be used by rdumount to unmount a
virtual disk.
-v
Requests verbose output.
rdumount
Use rdumount to unmount CD/DVD drives, ISO image files, or USB key mounted using rdmount.
rdumount syntax
rdumount.exe <token>
Options
-h
Displays help information.
Users can run rdmount.exe -q to display a list of mounted drives and their tokens.
Auto-completion function
From V3.4.0, OneCLI supports the auto-completion function on Linux and Windows.
Users can run the script to install the auto-completion function, restart the shell to make the function take
effect, and use the tab button to auto-complete the application name, command name, option name, and
option value.
Following are the scrips and shells of the specific operating systems:
Before applying updates to a target server, users should get the latest update packages for that specific
server. OneCLI provides the function to acquire the package.
Typically, users can run a single OneCLI command to acquire the latest UXSP (recommended update stack)
from Lenovo site for the target server according to the specific machine type and operating systems.
To acquire the latest UXSP to c:\pkgs\, which can then be updated/installed inside an RHEL7 installed on
server xxxx, see the following sample command:
Note: Users can acquire updates for an OS different from the one where OneCLI runs. For example, run
OneCLI on Windows to acquire a UXSP for RHEL7
Note: Only users with the supervisor user authority can perform the following steps.
• To change the UEFI administrator password, run the following command:
OneCLi config set IMM.UefiAdminPassword "xxx" --bmc userid:password@bmc_ip
where,
xxx means the new UEFI administrator password.
• To recover the UEFI administrator password, run the following command:
OneCLi config set IMM.UefiAdminPassword "" --bmc userid:password@bmc_ip
Steps
1. Run the encrypt command to encrypt the file with plain text setting values.
Notes:
• Sample command:
OneCli encrypt --configfile config_plaintext.json --unattended
• The template file is available in Sample/setting.json.
2. Remove the plain text file.
3. Run the bmcpassword command to change the password of BMC account in the plain text file based on
the plain text password information.
Notes:
• Sample command:
OneCli bmcpassword
• It is not recommended to specify the “--newpwd” parameter to change the password of BMC
account when running the bmcpassword command.
{
//list settings name and value.
"sensitive_settings":{
"IMM.Password.1":"1qazP232wsx3edc",
"IMM.Password.2":"1qP2wsxwer@!$@%",
"IMM.Password.3":"1qP2wsxwerbled",
"newpwd":"1q2w3e4r5t"
}
}
Steps
1. Run the encrypt command to encrypt the file with plain text setting values.
Notes:
• It is unnecessary for the user to specify the setting values when running the set command.
• Sample command:
To generate HTML report of full inventory data of a server from a Windows OS remotely, see the following
sample command:
Note: To view the result of advanced memory test, check the XCC/BMC system event logs.
Steps:
1. Acquire all necessary files for the multiple BMC by running the following command:
OneCli.exe update acquire --ostype platform --mt xxxx,xxxx,xxxx --dir C:\pkg
2. Input the information of multiple BMC and the configuration parameters to a JSON configuration file.
Note: For the JSON configuration file sample, refer to Sample/multi_task_config.json in OneCLI binary
or “JSON configuration file sample” on page 172.
3. Input the target server BMC password and the SFTP password to the following multiflash command
in the interactive mode.
OneCLI update multiflash --configfile multi_task_config.json [--sftp user:pass@ip/xx]
4. Reflash the multiple server firmware in batch by running the multiflash command.
{
//Set the concurrency number, the max value is 50, if more than 50, use 50 as default
"parallel_number": 50,
//Set start task order by order or by random, 0 is for random; none zero is for order by order.
"parallel_order": 1,
// List of credentials to log in to the servers BMC
"bmc_credential":
Note: The package will be uploaded to sftp server if specified option ‘--sftp’ is added.
Step 2. Run OneCLI secure erase command to launch the BMU solution.
./OneCli serase --bmc userid:password@ipaddress [--sftp userid:password@ipaddress:6990] --dir xxx
Note: Set the sftp port as 6990. The default port 22 cannot work.
OneCLI will boot the remote target server to Maintenance OS.
Step 3. Check the OneCLI scan results and select the disk to perform secure erase operation after the
Maintenance OS booting.
a. OneCLI will scan all the available disk(s) on the target server and show the disk(s) table.
c. After all the erase operations completion, OneCLI will report the results. Make sure that the
OneCLI commands remain active during the entire execution time, otherwise the task might be
interrupted by error.
Steps
1. Send the firmware package (the ZIP file) to XCC2 and set the applytime for applying the firmware.
Note: If XCC2 firmware is staged and the apply time is OnReset or OnStartUpdateRequest, the XCC2
firmware will not be restarted automatically. To restart XCC firmware, users should manually restart
XCC2 on web page or use the rebootbmc command.
Sample command:
Notes:
• The default apply time is OnReset.
• If XCC2 firmware is staged and the apply time is OnReset or OnStartUpdateRequest, the XCC2 firmware
will not be restarted automatically. To restart XCC firmware, users should manually restart XCC2 on web
page or use the rebootbmc command.
Supported settings
• CPUPowerCapping.CPU{N}_PowerLimitedValue
Example
Setting XCC cache SED key from remote key management server
OneCLI supports to set XCC cache SED key by using the -redfish parameter from remote key management
server.
Example
Example
To apply the UXSP (available at /tmp/pkgs/) to a server installed with a SLES12 from within that SLES12, see
the following sample command:
For the ThinkSystem V3 servers, the service pack is named as Update Bundles. For some IO components
(for example, Broadcom NX1 Adapter and some Intel NIC/HDD/SSD), the agentless or execuatable firmware
binaries are not available in the host OS. In this case, these IO components would be staged to XCC2 with
delay update on system reset.
Note: The BIN and EXE executable firmware packages of the legacy HDD/SSD can only be downloaded
along with Update Bundles by using OneCLI.
2. Do one of the following:
• On Linux, find out lnvgy_fw_drives_all-xxxx_linux_x86-64.bin under the directory ./xxxx-pkg.
• On Windows, find out lnvgy_fw_drives_all_xxxx_windows_x86-64.exe under the directory .\xxxx-pkg.
3. Flash the hard drive packages in the host OS or run the binary file, do one of the following:
• On Linux, do one of the following:
– Flash the hard drive packages in the host OS.
Sample command:
OneCli update flash --scope individual --includeid lnvgy_fw_drives_all-xxxx_linux_x86-64 --dir ./xxxx-pkg
– Run the binary file:
lnvgy_fw_drives_all-xxxx_linux_x86-64.bin -s
• On Windows, do one of the following:
– Flash the hard drive packages in the host OS.
Sample command:
OneCli update flash --scope individual --includeid lnvgy_fw_drives_all_xxxx_windows_x86-64 --dir .\xxxx-pkg
– Run the binary file:
lnvgy_fw_drives_all_xxxx_windows_x86-64.exe -s
Steps:
1. Acquire all necessary files for platform update against the target server.
Sample command:
OneCli.exe update acquire --ostype platform --mt xxxx --dir C:\pkg
2. Flash the update packages in out-of-band mode to the target server.
Sample command:
OneCli.exe update flash --bmc userid:password@bmcip --dir C:\pkg --uselocalimg --platform
Notes:
• OneCLI restarts the server automatically after some components are updated, for example, Hard
Drive and Broadcom NX1 Network adapters. Use the following command to skip these updates and
avoid restarting the server.
OneCli.exe update flash --bmc userid:password@bmcip --dir C:\pkg --uselocalimg
• The --fileserver parameter is mandatory for SystemX and optional for ThinkSystem. When using
this parameter on the ThinkSystem servers, port 6990 must be enabled.
Sample command:
--fileserver sftp://user:password@host/tmp/
To change the value of setting IMM.SSH_Enable to Enabled, see the following sample command:
The topics in this section provide detailed information about how proxy tools maps ASU, DSA, and UXSPi
command to XClarity Essentials OneCLI command.
The following table lists commands and parameters used by the ASU proxy tool and the corresponding
XClarity Essentials OneCLI commands and parameters.
ASU OneCLI
Com- Com-
mand Parameter mand Parameter
-n node
--host --user --password --bmc user:pwd@host
show --group show
The mapped result for asu show --group BMC is OneCli
show BMC. The --group parameter is removed in the
OneCLIcommand string.
-n --node
--host --user --password --bmc user:pwd@host
showval- showval-
ues --group ues The mapped result for asu show --group BMC is OneCli
show BMC. The --group parameter is removed in the
OneCLI command string.
-n --node
--host --user --password --bmc user:pwd@host
showde- showde-
fault --group fault The mapped result for asu show --group BMC is OneCli
show BMC. The --group parameter is removed in the
OneCLI command string.
ASU OneCLI
Com- Com-
mand Parameter mand Parameter
--host --user --password --bmc user:pwd@host
-n --node
set set
--host --user --password --bmc user:pwd@host
-n --node
loadde- loadde-
fault --host --user --password fault --bmc user:pwd@host
ASU OneCLI
Com- Com-
mand Parameter mand Parameter
-n --node
help showdes
--host --user --password --bmc user:pwd@host
The DSA parameters table lists DSA parameters used by the DSA proxy tool and the corresponding XClarity
Essentials OneCLI commands and parameters.
Table 175. Matrix of DSA and OneCLI commands and parameters parameters and
i formatlog srcdata
d output
diags diags
disable-bmc-lan disable-bmc-lan
no-bmc-lan no-bmc-lan
h, ?, help getinfor help
ipmi-lan bmc
t upload
upload upload
v htmlreport
vmware-esxi esxi
ffdc ffdc
hldec hldec
html output
[--proxy-port=port]
[--proxy-user=user]
[--proxy-password=pwd]
The DSA script examples table provides examples of DSA scripts and the XClarity Essentials OneCLI
commands and parameters they map to.
The following table lists commands and parameters used by the UXSPI proxy tool and the corresponding
XClarity Essentials OneCLI commands and parameters.
UXSPi OneCLI
Com- Com-
mand Parameter mand Parameter
--check -update Not supported.
--meta-only --metaonly
--proxy-password= password
--xml --xml
--vmware-esxi-update= 4.1/5.0 Not supported.
UXSPi OneCLI
Com- Com-
mand Parameter mand Parameter
-n, --new Not supported.
UXSPi OneCLI
Com- Com-
mand Parameter mand Parameter
-n, --new Not supported.
--ignore-req --noreq
UXSPi OneCLI
Com- Com-
mand Parameter mand Parameter
-m --mm Not supported. UXSPi needs input update file
--mm-address=address names, while OneCLI needs input package
IDs. The IDs and files names cannot match,
--mm-user=user so the proxy tool will not transfer these
bc bc
(CMM --mm-password=password (CMM commands.
update update
com- --mm-password-secure=secure-password com-
mands) --mm-file=file1 mands)
--mm-file2=file2
--mm-force
-i, --io Not supported. UXSPi needs input update file
names, while OneCLI needs input package
--mm-address=address IDs. The IDs and files names cannot match,
--mm-user=user so the proxy tool will not transfer these
commands.
--mm-password=password
bc bc
(I/O- --mm-password-secure=secure-password (I/O-
module module
--io-bay=bayID
update update
com- --io-user=user com-
mands) mands)
--io-password=password
--io-password-secure=secure-password
--io-file=file1
--io-file2=file2
General limitations
XClarity Essentials OneCLI has the following known general limitations.
OneCLI cannot connect to the SFTP server that only supports the deprecated algorithms ssh-rsa and
ssh-dss.
After upgrading the SSH client, OneCLI supports algorithms ssh-ed25519, ecdsa-sha2-nistp521, ecdsa-
sha2-nistp384, ecdsa-sha2-nistp256, [email protected], sk-ecdsa-sha2-
[email protected], rsa-sha2-512, and rsa-sha2-256. The SFTP server that only supports the
deprecated algorithms ssh-rsa and ssh-dss cannot be connected to OneCLI.
OneCLI does not support to mount/unmount virtual media under in-band mode.
OneCLI retrieves a temporary account from BMC when running in-band scenarios, but the temporary
account does not have the privilege to mount/unmount virtual media.
OneCLI does not support inventory and raid configuration on Virtual Raid on CPU (VRoC).
The glibc.i686 and glibc-locale libraries are required to load shared libraries.
If the glibc.i686 and glibc_locale libraries are not installed, users might receive the following error when
attempting to load a shared library:OneCli error while load shared libraries: libstdc++.so.6: cannot open
shared object: no such file or directory.
OneCLI uses BMC Lan over USB which uses "169.254.95. xx" network by default.
The default setting for BMC Lan-over-USB is "169.254.95.xx". If the "169.254.95.xx" network is used for
another application, such as Oracle RAC, running OneCli will change the network route table, which can
cause the other application to behave unexpectedly. In this case, set the IP address in the "BMC
Ethernet over USB IP Settings" section of the BMC Web page to a non-conflict IP address so that
OneCli will use this IP address to connect to BMC.
OneCLI might print warning message when Broadcom CIM provider v17.0.5 or older installed on a
customized the VMware ESXI system.
If users have a Broadcom CIM provider v17.0.5 or older installed on a customized the VMware ESXI
system, the following warning message will be displayed in the log file: You have a Broadcom CIM provider
v17.0.5 or older installed in the target system. Broadcom CIM Provider versions older than 17.0.5 is not
recommended to use for Firmware Update. If you want to update Firmware, install the latest ESXi patch."
Config limitations
The limitations listed in this section are specific to the config application.
OneCLI may fail to restore settings in backup file for SR645 V3.
Users run the backup command to save the settings in the encrypted way for SR645 V3. However, the
settings might not be restored in the backup file and the passphrase.
The state of LAN-over-USB is saved as “enabled” when using the config command “backup” to save
the configuration with an encrypted way in in-band mode.
When users use the config command backup to save the configuration with an encrypted way in in-band
mode, LAN-over-USB will be enabled and its state will be saved as enabled. When users perform the
config command restore to recover from the saved configuration file, the LAN-over-USB state might
still be displayed as enabled no matter what the initial state it is.
When running the OneCLI config command Onecli.exe config save --group BIOS --file save.txt in
the OS on SR635/SR655, the command might return success, but no BIOS settings can be found in the
save.txt file.
Add IPMI/SNMP interface for an existing account(without IPMI or SNMP) in batch mode.
It is required to provide the password for the specified account when adding IPMI or SNMP interface in
IMM.Accessible_Interfaces.*. It is recommended to run the batch file containing both IMM.Accessible_
Interfaces.* and IMM.Password.* in batch mode; otherwise, OneCLI will fail with error code 93(0x5D).
A BMC local user account is required in OneCLI out-of-band configuration.
It is recommended not to use OneCli config on configuration with LSI adapters
It is recommended not to use OneCli config on configuration with LSI adapters because it is difficult to
do settings on LSI adapters and it may impact the RAID controller.
OneCLI shows failure to set BMC to shared mode but actually it succeeds
Using OneCLI config command to set "BMC.SharedNicMode" to "SharedOption_1" results in the error
message "The SET command execute failure;" however, the configuration change is successful and the
network interface of the BMC is changed to shared mode.
Not valid configuration settings are not saved
Some initial values for settings are not valid as defined in the XML and are not saved.
Restarting the BMC for config values to take effect
For some settings to take effect, users might have to restart the BMC. Users might also need to restart
the BMC for any values that are set through the OneCLI config application and displayed in the BMC
Web interface.
Some Flex System settings cannot be set with null string
For some Flex Systems, the IMM.IMMInfo_Contact, IMM.IMMInfo_Location, and IMMInfo_RoomId
settings cannot be set with the value of null string.
Some settings might not match their default values
When using the comparedefault command, some settings might not match their default values, even
though the loaddefault command was run before the comparedefault command.
OneCLI config might fail to get the set result
After the OneCLI config application sets some BMC network settings, it could cause a BMC connection
section reset or an IP address change, resulting in the config application failing to get the set result.
OneCLI config does not restore/replicate some settings from the saved file
When running command restore and replicate of OneCLI config, users could meet the following actions:
• Filter some settings to restore because the value is empty.
• Skip some settings for this type of command. For example, VPD settings for command restore.
• Ignore some settings which can’t be found on the target system.
OneCLI does not translate 1/0 to True/False for suppress-if sentence in the output of command
showvalues
Inventory limitations
The limitations listed in this section are specific to the inventory application.
Users with LDAP authentication (for example, LXCA account) could not collect IPMI logs (for example,
IPMI event logs and system settings).
Users could use XCC local account to collect IPMI logs.
No Mellanox adapters raw data in inventory result since OneCLI V2.9.0
Users can download the Mellanox utility to generate raw data from: https://www.mellanox.com/
downloads/MFT/WinMFT_x64_4_14_0_105.exe.
The value of DIMM serial number shown by OneCLI is inconsistent with the serial number shown by
the BMC Web application (Retain tip 95884)
The DIMM serial number shown by OneCLI is not in the same byte order as the serial number shown by
the BMC. For example, the DIMM serial number displays as 441B13BD on the BMC Web page, which
corresponds to the 4 byte sequence 44 1B 13 BD, while in OneCLI the DIMM serial number is displayed
as BD131B44, with a byte sequence of BD 13 1B 44.
OneCLI shows the volumes' layout and status unknown on windows 2012 series OS
OneCLI shows the volume layout and status as unknown for Windows 2012 series operating systems
when the partition type is static. This is because logical disk management (LDM) is deprecated in favor
of Storage Spaces for Windows 8 and Windows 2012. When OneCLI attempts to read LDM data from
the Windows operating system for these properties, OneCLI shows an unknown status for these two
properties of a static disk.
Cache Enable information might be inaccurate
Information about Level 1, 2, 3 Cache Enable might be inaccurate
Common tables with instances from multiple data sources may have blank fields
If there is no data for a particular field, the field is blank. This situation is most often encountered in
common tables containing instances from multiple data sources.
Dates fall outside the valid date range for XClarity Essentials OneCLI
When XClarity Essentials OneCLI collects dates and times that are before January 1, 1970, 00:00:00, or
after January 19, 2038, 03:14:07, XClarity Essentials OneCLI reports these dates and times as January
1, 1970, 00:00:00. These dates fall outside the valid date range for XClarity Essentials OneCLI.
Extended collection times
If users encounter extended collection times, it might be helpful to disconnect external devices
temporarily. For example, unplug fiber cables or additional USB devices where information about these
devices is not essential to the data collection.
Intel Ethernet controller is displayed as Not Available
The description about the Intel Ethernet controller is displayed as Not Available on the Network Settings
page under RHEL6.
Memory speed reported as Unknown in the Memory section of the Hardware Information report
XClarity Essentials OneCLI might report the memory speed as Unknown in the Memory section of the
Hardware Information report, which is caused by the issues with SMBIOS support on some systems.
OneCLI is displayed as Unknown in the item PartitionSubType
OneCLI is displayed as Unknown in the item PartitionSubType in the Disk Information table on the
Hardware Inventory page when the HDD is in the GUID Partition Table (GPT) format on UEFI systems.
QLogic utility limitation
Update limitations
The limitations listed in this section are specific to the update application.
Notes:
• For update limitations relating to the Lenovo UpdateXpress System Pack Installer, see limitations listed in
the UXSPi documentation at:
https://datacentersupport.lenovo.com/docs/LNVO-XPRSUG
• To download packages from IBM Web site through proxy, ensure that the proxy server can access
domain www.ibm.com and www-03.ibm.com for Windows operating systems and IP address
207.25.252.197 and 129.42.160.51 for Linux operating systems.
The installed driver version is displayed as "Undetected" in the update compare results.
For some network adapters, RAID adapters, and chipsets, if the installed driver name does not match
any out-of-box driver in the server update packages, the installed driver version will be displayed as
Workaround: Users should use OneCLI with the --force parameter or manually install the out-of-box
driver to override the in-box driver.
The installed driver version is displayed as "N/A" in the update compare results.
For some network adapters, RAID adapters, and chipsets, if the installed driver version is non-sequential
compared with the out-of-box driver in server update packages, the installed driver version will be
displayed as N/A in the update compare results. By default, OneCLI will recognize the installed driver as
in-box driver and install the corresponding out-of-box driver.
Specific command needed to install ESXi6.0u2, ESXi6.0U3, ESXi6.5
The ESXi6.0u2 software bundle must be installed using the following command:
esxcli software vib install --maintenance-mode -d file:///<dir>/<zip_file_name>
Where:
• <dir> is the directory where the CIM zip file is stored (for example, /var/tmp/)
• <zip_file_name> is the name of the zip file, using the form lenovo_extension_lnv-xxx-offline_bundle.
zip
The XClarity Essentials OneCLI does not support firmware updates for systems where LAN-over-USB
ports are bridged by bridge network ports.
For example, on a SLES11 XEN system, there might be network ports, such as the br0 (bridge) port, eth0
(Ethernet controller) port, and usb0 (LAN-over-USB) port. If the usb0 port is bridged by the br0 port, the
XClarity Essentials OneCLI is unable to flash any firmware on the system due because it is unable to
establish a CIM connection when the usb0 port is bridged by the br0 port. To solve this problem, the
usb0 port must be manually removed from the bridged devices list of br0. To edit the bridged devices
List of br0 on SLES systems, run the yast2 command at a command prompt to display the Network
Card Setup GUI window; then, select Network Bridge br0 and click Edit. In the next configuration
Miscellaneous limitations
The limitations listed in this section are specific to the miscellaneous application.
OneCli may report failure when booting to setup a server if the target server's host OS is RHEL or
SLES.
When the OS of the target system host is RHEL or SLES, the following message might be displayed after
running OneCli ospower boottosetup --bmc USERID:[email protected]:
There is an internal time-out of 9 seconds in the Marvell RAID firmware, and the SSD might not respond
to the command in time. Then, the Marvell RAID firmware will reset the SSD, the secure erase will fail,
the SSD will be locked and could not work. In this case, run the following command to unlock SSD:
hdparm --user-master u --security-unlock user123 %diskName%
Return codes
XClarity Essentials OneCLI issues a return code to indicate either successful execution of a command or to
indicate that an error occurred while the program was running. A return code of zero indicates that the
operation was successful, and a nonzero return code indicates an error.
To determine whether any errors occurred and when based on the associated timestamp, refer to one of the
following log files:
• For Windows, review the C:\Lenovo_Support\onecli.log file.
• For Linux, review the /var/log/Lenovo_Support/onecli.log file.
config-related return codes Table 179 “OneCLI config-related return codes” on page
198
update-related return codes Table 180 “OneCLI update-related return codes” on page
199
FFDC-related return codes Table 181 “OneCLI FFDC-related return codes” on page
200
raid-related return codes Table 182 “OneCLI raid-related return codes” on page
201
diags-related return codes Table 183 “OneCLI diags-related return codes” on page
201
FoD-related return codes Table 184 “OneCLI FoD-related return codes” on page
201
0x00 0 Success.
0x01 1 Generic failure.
0x03 3 Invalid application.
0x14 20 Users are running on an IBM system. Do not use proxy tool in onecli extract path
when set the executable binary of legacy ToolsCenter path in global.config.
0x16 22 The BMC default internal IP conflicts with external machine. Correct the problem,
and try again.
0x29 41 Fail to find the matching tool package for remote machine.
0x35 53 Check the format of input for connection parameter. For credential encrypt user,
can't find crypt.json.
0x36 54 The password provided for this account must be changed before access is
granted.
0x60 96 Operation unavailable. Users should wait a moment and retry later.
0x6D 109 The password can only be changed in low security level.
0x6E 110 Previous passwords are not allowed. Try another passwords.
0x6F 111 The password does not meet password policy requirements.
0x74 116 Failed to display the instance setting. Create the instance first.
0x7c 124 Update does not take effect after successful flash.
0x7b 123 Current BMC version does not support this package. Upgrade BMC to the latest
version and try again.
0x7a 122 Failed to update because this package does not support current method.
0x79 121 Failed to update because this device does not support current method.
0x78 120 The candidate update is older than the allowed minimum version.
0x73 115 BMC RDOC space not enough. Remove other mounted device from BMC RDOC.
0x6c 108 UXSPI does not support the current command run in the IBM system.
0x6a 106 Failed to run UXSPI. For more information about the error, see UXSPI logs.
0x69 105 Failed to update flash because the error backup does not support the update.
0x67 103 Update error: Flash finished running, however multiple packages failed to be
flashed. Check flash status xml for further information.
0x66 102 Users are running on an IBM system. Ensure that UXSPI_PATH is set to the
executable binary of UXSPI in global.config.
0x63 99 No applicable update available in the Repository for the specified machine type or
OS.
0x62 98 Failed to connect to the Repository.
0x7A 122 Download SMM FFDC error: tar ffdc files failed.
0x79 121 Download SMM FFDC error: tftp server is not found.
0x78 120 FFDC log is uploaded to the specified FTP/TFTP server, but fails to download
FFDC log from FTP/TFTP server.
0x7D 125 Ensure that the command of RAID configuration runs on the ThinkSystem server
with the latest XCC firmware version.
0x7C 124 The target device does not exist.
0x74 116 RAID config does not support this command on M.2 SSD.
0x7A 122 FoD key is not found from target key repository.
0x6E 110 Unable to find the processor specified by 'socketid' on current system.
0x6A 106 The FoD SDSi is only supported with redfish interface.
0x69 105 The FoD SDSi dose not exist on current system.
0x68 104 The FoD SDSi specified by the socketid command does not exist on current
system.
0x67 103 The FoD installed is not supported when specifying directory of parameter keyfile.
0x66 102 Could not find the match key from specified folder.
0x64 100 The key does not support the uninstall and the export commands.
0x60 96 The specified FoD key does not exist in the current system.
Table 185. Mapping table of return codes between OneCLI V2.3.0 and OneCLI V2.4.0
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
0x07/7 Input xml file format error. 0x07/7 The file is not valid.
0x0E/14 Local file does not exist. 0x06/6 Local file does not exist.
0x0F/15 Failed to create directory. 0x08/8 Failed to create directory.
0x12/18 Fail to get XCC account through KCS. 0x13/19 Fail to get XCC account through KCS.
0x13/19 • BMC Lan Over USB device driver is 0x1A/26 • LAN-over-USB device is not
not detected (for windows). detected. Make sure that RNDIS is
• Miss some tools, such as: lsusb, correctly installed (for windows).
lsmod, and modprobe (for linux). • LAN-over-USB device is not
detected. Make sure that following
tools are installed: lsusb, lsmod, and
modprobe (for linux).
0x15/21 Users are running on a blue system. Do 0x14/20 Users are running on a blue system. Do
not use proxy uxspi in onecli extract not use proxy uxspi in onecli extract
path when set the executable binary of path when set the executable binary of
UXSPI path in global.config. UXSPI path in global.config.
0x18/24 Fail to create directory or put file in FTP 0x0F/15 Upload failed.
server: No such file or directory, or
permission denied for the specified
user name.
0x19/25 LXCE has no enable permission. Enable 0x15/21 LAN-over-USB device is disabled on
BMC Lan Over USB device manually. BMC side. Enable it manually.
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
0x23/35 UXSP xml do not exist. Check the 0x06/6 Local file does not exist.
UXSP package.
0x62/98 Failed to set the setting items. 0x7C/124 Failed to set the setting items.
0x45/69 Update error: File related error 0x0B/11 Failed to write file.
occurred, see log/xml for more
information.
0x46/70 Update error: CIM service fails. See log/ 0x01/1 Generic failure.
xml for more information.
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
0x4D/77 Update error: Flash finished running, 0x0B/11 Failed to write file.
however multiple packages failed to be
flashed. Check flash status xml for
more information.
0x4E/78 Users are running on an IBM system. 0x72/114 Users are running on an IBM system.
Make sure that UXSPI_PATH is set Make sure that UXSPI_PATH is set
correctly to the executable binary of correctly to the executable binary of
UXSPI in global.config. UXSPI in global.config.
0x4F/79 Users are running on an IBM system. 0x6D/109 Users are running against an IBM
But the current command is not system, but the current command is
supported in UXSPI. not supported.
0x50/80 Update blue not supported. 0x6D/109 Users are running against an IBM
system, but the current command is
not supported.
0x52/82 Update module was not able to write to 0x0B/11 Failed to write file.
XML file.
0x53/83 Update flash module failure: failed to 0x01/1 Generic failure.
run flash with ESXi. See log/xml for
more detail information.
0x54/84 Update flash module failure: failed to 0x01/1 Generic failure.
run flash with IOSwitch. See log/xml for
more detail information.
0x55/85 Update flash module failure: failed to 0x01/1 Generic failure.
run flash with CMM Update. See log/
xml for more detail information.
0x56/86 Update flash module failure: failed to 0x01/1 Generic failure.
run flash with OOB. See log/xml for
more detail information.
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
0x5B/91 Update flash failure: Error backup does 0x6C/108 Backup bank does not exist.
not support.
0x5C/92 The BMC default internal IP conflicts 0x16/22 The BMC default internal IP conflicts
with external machine. Correct the with external machine. Correct the
problem, and try again. problem, and try again.
0x5E/94 Update flash failure: current BMC does 0x7B/123 Current BMC version does not support
not support internal SFTP for this case. this package. Upgrade BMC to the
latest version, and try again.
0xD0/208 Download SMM FFDC error: setup 0x7D/125 Download SMM FFDC error: setup
environment failed. environment failed.
0xD1/209 Download SMM FFDC error: start 0x7C/124 Download SMM FFDC error: start
dump failed. dump failed.
0xD2/210 Download SMM FFDC error: query 0x7B/123 Download SMM FFDC error: query
failed. failed.
0xD3/211 Download SMM FFDC error: tar ffdc 0x7A/1222 Download SMM FFDC error: tar ffdc
files failed. files failed.
0xD4/212 Download SMM FFDC error: upload 0x0F/15 Upload failed.
path does not exist.
0xDA/218 Failed to get FFDC log. 0x77/119 Failed to get FFDC log.
0xB0/176 Raid config fails to operate. 0x7D/125 Raid config fails to operate.
0xB1/177 Raid config ini file error. 0x7C/124 Raid config ini file error.
0xB2/178 Raid config has no config to operate. 0x7B/123 Raid config has no config to operate.
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
0xB4/180 Raid config does not need make jbod. 0x79/121 Raid config does not need make jbod.
0x35/53 Fail to get status of diags. 0x7C/124 Fail to get status of diags.
0x36/54 Fail to get result file. 0x7B/123 Fail to get result file.
0x82/130 Specified machine type or serial 0x7C/124 Specified machine type or serial
number is not valid. number is not valid.
0x83/131 The FoD key file is not found. 0x7B/123 The FoD key file is not found.
0x86/134 The FoD key ID is not valid. 0x79/121 The FoD key ID is not valid.
0x87/135 Active key exists in KMS Web site. 0x78/120 Active key exists in KMS Web site.
0x88/136 Authentication code does not exist. 0x77/119 Authentication code does not exist.
0x89/137 Unique identifier is not valid. 0x76/118 Unique identifier is not valid.
0x8A/138 Failed to install the FoD key. 0x75/117 Failed to Install the FoD key.
0x8B/139 Failed to uninstall the FoD key. 0x74/116 Failed to export the FoD key.
0x8C/140 Failed to export the FoD key. 0x73/115 Fail to export the FoD key.
0x8D/141 Failed to report the FoD key. 0x72/114 Failed to report the FoD key.
0x8E/142 Failed to get current tier. 0x71/113 Failed to get current tier.
0xDD/221 Switch does not support EHCM or the 0x76/118 Switch does not support EHCM or the
CMM build is not supported to check CMM build is not supported to check
EHCM. EHCM.
V2.3.0 V2.4.0
Return code/ Description Return code/ Description
Accessibility
The following list includes the major accessibility features in Lenovo XClarity Essentials OneCLI:
• Can be operated using only the keyboard
• Communicates all information independent of color
• Supports the attachment of alternate output devices
• Provides online documentation in an accessible format
Keyboard navigation
This product uses standard Microsoft Windows navigation keys.
Note: When running OneCLI on Windows OS in in-band mode, the AMI RNDIS device driver should be
installed manually.
Supported features
In-band and out-of-band features:
Features Reference
Collect FFDC. “ffdc command” on page 90
Manage the LED status of hard disk drive. “hddlocate command” on page 93.
Use TUI mode for OneCLI command. Chapter 10 “tui” on page 151
In-band features:
Features Reference
Manage USB LAN. “usblan command” on page 146
Features Reference
Collect FFDC logs from multiple BMC. “multiffdc command” on page 97
List, mount, or umount virtual media on multiple BMC. “multivm commands” on page 112
Obtain the BMC FFDC logs from multiple servers. “multiffdc command” on page 97
Obtain service data information from multiple BMC. “multiservicedata command” on page 110
Remotely change password of BMC accounts for multiple systems in “multibmcpassword command” on page 97
the first login or the password expiration scenarios.
Remotely collect system health information for multiple systems. “multisyshealth command” on page 111
Remotely create, clear, and save the RAID configuration for multiple “multiraid command” on page 101
systems.
Remotely show or change the system configuration for multiple Chapter 5 “Multiple configuration” on page 51
servers.
Remotely upgrade the firmware of multiple servers. “multiflash command” on page 80
Turn on, turn off and restart the server, and obtain the server power “multiospower commands” on page 108
state.
Limitations
The hddlocate command is not supported in the DN8848 V2 server.
When running OneCLI raid commands in out-of-band mode (for example, add or delete a RAID array),
it is recommended to wait 30-60s until BMC update the data in the back end. Then OneCLI will retrieve
the latest results by using OneCLI raid show command.
For the multiple virtual media instances (for example, CD1, CD2) that can be enabled on the
ThinkServer servers, OneCLI will mount the image to the first available virtual media in ascending
order of the index.
When running OneCLI on Windows OS in in-band mode, the AMI RNDIS device driver should be
installed manually. This driver is supported in the ThinkServer/WenTian servers. For more information,
refer to https://datacentersupport.lenovo.com/cn/zc/products/servers/thinkserver/sr590v2-china-only/
7d53/downloads/driver-list/.
For the ThinkServer/WenTian servers, OneCLI doesn’t support the following:
• ESXi related functions
• BMC firmware level downgrade
OneCLI preserves the configuration settings when updating the BMC firmware level on the
ThinkServer SR590 V2/SR660 V2/DN8848 V2 servers. Users can upgrade the BMC firmware in BMC
web without preserving configuration settings.
OneCLI preserves the configuration settings when upgrading the BMC firmware level. However, this
feature is not supported in the following BMC versions:
• ThinkServer SR590 V2: BMC version is 5.34 and earlier.
• ThinkServer SR660 V2: BMC version is 5.49 and earlier.
• ThinkServer DN8848 V2: BMC version is 5.14 and earlier.
In this case, users should upgrade the BMC firmware on BMC web interface without preserving
configuration settings.
If the HTTPS server is used for the firmware update, OneCLI only supports the self-signed certificate,
and both read and write permissions are required. If the FTP server is used for storing the payload
files for the firmware update, the read, write, and delete permissions are required.
Note: When using global.config in the executable version of OneCLI, the --config parameter should be used
for specifying the absolute path.
The configuration items varied depending on OneCLI versions. Following is the example:
# XClarity Essentials OneCLI consolidates ToolsCenter 1.x tools, i.e. UXSPI for update, DSA for inventory,
# ASU for configuration
# To point XClarity Essentials OneCLI to old ToolsCenter 1.x version to help manage old MTM using proxy tools
# that come with XClarity Essentials OneCLI
# Users can change the following three config items
# Example for Windows:
# To set UXSPI path, users can change the value of "UXSPI_PATH" from "NONE" to the absolute path to where
#users put the UXSPI executable file prepared separately
# Do not set the path to the proxy tool "uxspi.exe" inside XClarity Essentials OneCLI
# UXSPI_PATH=C:\lnvgy_utl_uxspi_10.1_winsrvr_32-64.exe
UXSPI_PATH=NONE
# To set DSA path, users can change the value of "DSA_PATH" from "NONE" to the absolute path to where users
# put the DSA executable file prepared separately
# Do not set the path to the proxy tool "dsa.exe" inside XClarity Essentials OneCLI
# DSA_PATH=C:\lnvgy_utl_dsa_dsala5q-10.1_portable_windows_x86-64.exe
DSA_PATH=NONE
# To set ASU path, users should first extract "asu.exe" out of the official ASU executable wrapper
# (e.g, lnvgy_utl_asu_asut90e-10.1_windows_x86-64.exe), then, change the value of "ASU_PATH" from "NONE"
# to the absolute path to where users put "asu.exe" extracted above
# Do not set the path to the proxy tool inside XClarity Essentials OneCLI
# default value is "NONE"
# ASU_PATH=C:\asu\asu64.exe
ASU_PATH=NONE
# Set the number of Windows log entries OneCLI inventory collect. It could be an integer, or "All".
ONECLI_EVENTLOG_MAX=4096
Any reference to a Lenovo product, program, or service is not intended to state or imply that only that
Lenovo product, program, or service may be used. Any functionally equivalent product, program, or service
that does not infringe any Lenovo intellectual property right may be used instead. However, it is the
responsibility of user to evaluate and verify the operation of any other product, program, or service.
Lenovo may have patents or pending patent applications covering subject matter described in this
document. The furnishing of this document does not give you any license to these patents. You can send
license inquiries, in writing, to:
Lenovo (United States), Inc.
8001 Development Drive
Morrisville, NC 27560
U.S.A.
Attention: Lenovo Director of Licensing
LENOVO PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do not allow
disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to
you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made
to the information; these changes will be incorporated in new editions of the publication. Lenovo may
improve or change the products and the programs described in this publication at any time without notice.
The products described in this document are not intended for use in implantation or other life support
applications where malfunction may result in injury or death to persons. The information contained in this
document does not affect or change Lenovo product specifications or warranties. Nothing in this document
shall operate as an express or implied license or indemnity under the intellectual property rights of Lenovo or
third parties. All information contained in this document was obtained in specific environments and is
presented as an illustration. The result obtained in other operating environments may vary.
Lenovo may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Any references in this publication to non-Lenovo Web sites are provided for convenience only and do not in
any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the
materials for this Lenovo product, and use of those Web sites is at your own risk.
Any performance data contained are determined in a controlled environment. Therefore, the result obtained
in other operating environments may vary significantly. Some measurements may have been made on
development-level systems and there is no guarantee that these measurements will be the same on generally
available systems. Furthermore, some measurements may have been estimated through extrapolation.
Actual results may vary. Users of this document should verify the applicable data for their specific
environment.
Important notes
Processor speed indicates the internal clock speed of the microprocessor; other factors also affect
application performance.
When referring to processor storage, real and virtual storage, or channel volume, KB stands for 1 024 bytes,
MB stands for 1 048 576 bytes, and GB stands for 1 073 741 824 bytes.
When referring to hard disk drive capacity or communications volume, MB stands for 1 000 000 bytes, and
GB stands for 1 000 000 000 bytes. Total user-accessible capacity can vary depending on operating
environments.
Lenovo makes no representations or warranties with respect to non-Lenovo products. Support (if any) for the
non-Lenovo products is provided by the third party, not Lenovo.
Some software might differ from its retail version (if available) and might not include user manuals or all
program functionality.
R
rdmount 167
U
rdmount command 167 uninstall 163
rdumount 167 uninstall command 163
rdumount command 168 update 63
reboot 109 update, acquire 64
rebootbmc command for BMC 134 update, compare 68
rebootcmm command for CMM 135 update, flash 73
rebootiom command for IOM 135 update, rebootbmc command for BMC 134
replace 156 update, rebootcmm command for CMM 135
replace command 156 update, rebootiom command for IOM 135
replicate command 38, 52 update, scan 82
report 161 upgrade, specify, BMC 77
report command 161 upgrade, specify, BMC/SMM 80
requirements upload command 60
software 7 uploadreport command 157
reseatblade command 136 usblan command 146
reseatcmm command 137 using OneCLI for Linux 12
restore command 39, 52 using OneCLI for Windows 11
restorebmu command 137 UXSPi proxy tool 184
return codes 196
rpp 138
V
S virtual disk mount 167
virtual disk unmount 168
save command 40 vm command 147
scan command 82
Secure data deletion 173
serase command 140
server options 7 W
servicedata 141
Web resources xi
servicelog 141
set command 34, 53, 92