Use the upload command to upload log files to a server. The XML log files are generated using the getinfor command. If the upload command is specified, the log file is automatically uploaded to the specified server.
upload command syntax
OneCli.exe inventory upload [--srcdata<file>][--upload [Lenovo/multitool/serveraddress]\ [username:password@ftphost]@ftphost/path/]
Parameter | Required/Optional | Notes |
---|---|---|
--srcdata | Required | Used to identify the log file that will be formatted and uploaded to a server. |
--upload | Required |
|
--output | Optional | A report file is saved to the specified directory. |
Example of the upload command
In this example, --srcdata is used to identify the log file name that will be formatted and uploaded to a server.OneCli.exe inventory upload --srcdata xxx.xml --output d:\onecli\inventory --upload Lenovo --proxy user: password@host:port