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 system Compressed file Self-extracting executable file
Microsoft Windows lnvgy_utl_lxce_oneclixxx-x.x.x_winsrv_x86-64.zip lnvgy_utl_lxceb_oneclixxx-x.x.x_winsrv_x86-64.exe
Table 2. The format of compressed file and self-extracting executable file for Linux
Operating system Compressed file Self-extracting executable file
SUSE Linux Enterprise Server Edition lnvgy_utl_lxce_oneclixxx-x.x.x_sles_x86-64.tgz lnvgy_utl_lxceb_oneclixxx-x.x.x_sles_x86-64.bin
Red Hat Enterprise Linux Edition lnvgy_utl_lxce_oneclixxx-x.x.x_rhel_x86-64.tgz lnvgy_utl_lxceb_oneclixxx-x.x.x_rhel_x86-64.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-x.x.x_rhel_x86-64.rpm.

  • To update OneCLI RPM, run rpm –Uvh lnvgy_utl_lxce_oneclixxx-x.x.x_rhel_x86-64.rpm.