Skip to main content

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.

getinfor command syntax

OneCli.exe inventory getinfor [<options>]
Table 1. getinfor command specific parameters
ParameterRequired/OptionalNotes
--configfileRequiredSpecify the config file for the multi-task command. The template file is available in Sample/multi_task_config.json.
--cmmOptional

If specified, the inventory application will only obtain the information of a remote CMM.

  • Default format: user:password@IP

  • IPv6 address format: user:password@[IPv6]

--deviceOptional

Default value: all

Displays all of the supported inventory items.

Device name separated by commas or space, such as: system_overview, processes

Gets the inventory information for the specified items.

--ffdcOptionalIf specified, the inventory application will retrieve the BMC FFDC log.
--hldecOptionalCollect the UEFI hidden logs. This option is only supported for System X.
--htmlreportOptionalIf specified, the output results will contain HTML file report.
--proxyOptional

Use proxy to connect to upload server. The format is user:password@host[:port].

For IPv6 address, the format is socks5://user:password@[IPv6]:port.

--servicelogOptionalIf specified, the inventory application will retrieve the BMC service data log.
--smmOptional

If specified, the inventory application will only get the information for a remote SMM.

The format is user:password@IP. For the IPv6 address, the format is user:password@[IPv6].

--uploadOptional

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.

If specified with server address, the format is: --upload server address. The inventory data is uploaded to the target server. The supported protocols include: TFTP, FTP, and SFTP.

If not specified, no inventory data will be uploaded.

--sftpOptional

SFTP connection information. Format: user:password@IP[port][dir/]. The address is used to save FFDC logs for VMWare ESXi.

  • --bmc, -b

  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --check-trust, -C

  • --config

  • --nolog

  • --never-check-trust, -N

  • --output, -o

Optional

Refer to Table 2.

inventory example

This is an example of the inventory application and the getinfor command using OneCLI.

OneCli.exe inventory getinfor --output d:\onecli\inventory --htmlreport --ffdc --upload lenovo
Note
  • 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 OneCLI global configuration file.

  • 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.