Use the getinfor command to generate device inventory information after using the getdevices command to obtain the device list. By default, the device list is output to the XML file.
getinfor command syntax
OneCli.exe inventory getinfor[--device]][--upload [Lenovo/multitool]|[username:password @ftphost/path/]][--output][--proxy userid:password@IP[:port]] [--htmlreport][--ffdc][connection opt]
Parameter | Required/Optional | Notes |
---|---|---|
--device | Optional |
|
--output | Optional | By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/. |
--upload | Optional |
|
--proxy | Optional | Use proxy to connect to upload server. The format is socks5://user:password@IP:port. For IPv6 address, the format is socks5://user:password@[IPv6]:port. You need to specify the protocol (socks5, http, etc) which supports the upload function by the proxy server. |
--htmlreport | Optional | Output contains HTML format. |
--ffdc | Optional | Use the misc application with the ffdc parameter to get the ffdc log. |
--bmc | Optional | If specified, the inventory application can
receive information using only out-of-band mode. The format is user:password@IP:port. For IPv6 address, the format is user:password@[IPv6]:port. |
--esxi | Optional | If specified, the inventory application can receive information
only on the VMware ESXi operating systems. The format is user:password@IP:port. For IPv6 address, the format is user:password@[IPv6]:port. |
--sftp | Optional | This should be specified in VMware ESXi operating systems if --ffdc is specified. The format is user:password@IP[:port][/directory/]. Note: If you want
to save the ffdc log in a certain directory on the SFTP server, ensure
that you add "/" at the end of the specified SFTP directory.
|
Portable Edition -inventory example
Onecli.exe inventory getinfor --output d:\onecli\inventory --htmlreport --device lsi --upload lenovo --proxy user: password@host:port --ffdc
The Inventory device xxx list is displayed on the console. A temporary directory is created to save the XML or HTML report.