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]
Parameter | Required/Optional | Notes |
---|---|---|
--cn | Optional | Specify the case number to upload the files to Lenovo System CARE. The case number should be composed of at least seven characters. |
--cacert | Optional | Specify the path of CACert. |
--device, -d | Optional | 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. |
--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. |
--insecure | Optional | Allow insecure server connections when using SSL. |
--mt | Optional | 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. |
--proxy | Optional | 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-cacert | Optional | Specify the path of proxy CACert. |
--proxy-insecure | Optional | Do HTTPS proxy connections without verifying the proxy |
--sn | Optional | Specify with --mt. Specify the serial number of the target system when uploading the files to System CARE. |
--sftp | Optional | SFTP connection information. Format: user:password@IP[port][dir/]. The address is used to save FFDC logs for VMWare ESXi. |
--tftp | Optional | TFTP server for SMM interface. 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. 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. |
--configfile | Required | Refer to Table 2. |
| Optional | Refer to Table 2. |
Example of the getinfor command
OneCli.exe multiinventory getinfor --configfile xxxx/xxxx