Skip to main content

Downloading and using OneCLI

The topics in this section describe how to download and use OneCLI. OneCLI is packaged as the compressed file (zip file for Windows and tgz file for Linux), which can be used by being decompressed, be removed by being deleted, and be upgraded by being replaced with the new files.

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 1. The format of compressed file and self-extracting executable file for Windows
Operating systemCompressed fileSelf-extracting executable file
Microsoft Windowslnvgy_utl_lxce_oneclixxx-{ version }_winsrv_indiv.ziplnvgy_utl_lxceb_oneclixxx-{ version }_winsrv_indiv.exe
Table 2. The format of compressed file and self-extracting executable file for Linux
Operating systemCompressed fileSelf-extracting executable file
SUSE Linux Enterprise Server Editionlnvgy_utl_lxce_oneclixxx-{ version }_linux_indiv.tgzlnvgy_utl_lxceb_oneclixxx-{ version }_linux_indiv.bin
Red Hat Enterprise Linux Editionlnvgy_utl_lxce_oneclixxx-{ version }_linux_indiv.tgzlnvgy_utl_lxceb_oneclixxx-{ version }_linux_indiv.bin
Note
  • 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-{ version }_linux_indiv.rpm.

  • To update OneCLI RPM, run rpm –Uvh lnvgy_utl_lxce_oneclixxx-{ version }_linux_indiv.rpm.