Skip to main content

getinfor command

Use the getinfor command to get device inventory information from multiple servers.

getinfor command syntax

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]
Table 1. getinfor command specific parameters
ParameterRequired/OptionalNotes
--cnOptionalSpecify the case number to upload the files to Lenovo System CARE. The case number should be composed of at least seven characters.
--cacertOptionalSpecify the path of CACert.
--device, -dOptional

Specify the device to get the status.

The supported parameters used with --device: system, processor, fan, dimm, power, and pci_adapter.

If not specified, the system health summary containing errors and warning events will be displayed.

--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.
--insecureOptionalAllow insecure server connections when using SSL.
--mtOptional

Specify the machine type of target device. Lenovo server, chassis, and enclosure all have machine types.

The --mt parameter is required only when using the --noscan parameter (the system is not automatically obtaining the machine-type information).

For the I/O module target, the CMM machine type is specified.

--proxyOptional

Use proxy to connect to Lenovo Web site.

The format is user: password@host[:port].

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

--proxy-cacertOptionalSpecify the path of proxy CACert.
--proxy-insecureOptionalDo HTTPS proxy connections without verifying the proxy
--snOptional

Specify with --mt. Specify the serial number of the target system when uploading the files to System CARE.

--sftpOptional

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

--tftpOptionalTFTP server for SMM interface.

Format: IP[:port][/path].

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

--configfileRequired

Refer to Table 2.

  • --config

  • --check-trust, -C

  • --never-check-trust, -N

  • --help, -h

  • --nolog

  • --output, -o

  • --quiet

Optional

Refer to Table 2.

Example of the getinfor command

OneCli.exe multiinventory getinfor --configfile xxxx/xxxx