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>]
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. |
--mt | Optional | Specify with --sn. Specify the machine of the target system when uploading the files to System CARE. |
--proxy | Optional | 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. |
--srcdata | Required | Used to identify the log file that will be uploaded. |
--sn | Optional | Specify with --mt. Specify the serial number of the target system when uploading the files to System CARE. |
--upload | Required | 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. |
| 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