getinfor command

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] 
Table 1. getinfor command parameters
Parameter Required/Optional Notes
--device Optional
all
The default value.
Displays all of the supported settings.
system_overview, processes
Gets the complete list of supported devices.
--output Optional

By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/.

--upload Optional
  • If multitool is specified, the zipped XML file of the output directory is uploaded to Lenovo multitool web server.
  • If Lenovo is specified, the zipped XML file of the output directory is uploaded to Lenovo ftp server.
  • If the server address is specified, the zipped XML file of the output directory is uploaded to the specified server. the command parameter supports ftp and sftp. For example, ftp://root:SYS2009health@10.240.193.x/log/ or sftp://root:Password@10.240.193.x/log/.

  • If not specified, there is no upload.
--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

This is an example of the inventory application and the getinfor command using ToolsCenter Suite CLI Portable Edition on removable medium (CD-ROM, or USB key).
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.