Skip to main content

upload command

Use the upload command to upload the XML files or other log files to Lenovo service or other remote server.

upload command syntax

OneCli.exe inventory upload [<options>]
Table 1. upload command specific parameters
ParameterRequired/OptionalNotes
--cnOptional

Specify the case number to upload the files to Lenovo System CARE. The case number should be composed of at least seven characters.

--mtOptional

Specify with --sn. Specify the machine of the target system when uploading the files to System CARE.

--proxyOptional

Use proxy to connect to upload server. The format is user:password@host[:port].

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

--srcdataRequired

Used to identify the log file that will be uploaded.

--snOptional

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

--uploadRequired

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.

  • --check-trust, -C

  • --never-check-trust, -N

  • --nolog

  • --output, -o

Optional

Refer to Table 2

Example of the upload command

In this example, --srcdata is used to identify the log file name that is uploaded.
OneCli.exe inventory upload --srcdata xxx.xml --upload lenovo