servicelog command
Use the servicelog command to obtain service data log from BMC.
servicelog command syntax
OneCli.exe [misc] servicelog [options]
Parameter | Required/Optional | Notes |
---|---|---|
--cacert | Optional | Specify the path of CACert. |
--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. |
--insecure | Optional | Allow insecure server connections when using SSL. |
--iobay | Optional | bay_number specifies the I/O module bay number. Valid values are 1, 2, 3, or 4. |
--mt | Optional | Specify with --sn. Specify the machine of the target system when uploading the files to System CARE. |
--proxy, -P | Optional | Specify proxy user credential and IP address used to connect to the target server specified in the --upload parameter. This parameter should be used with --upload. The format is user: password@host[:port]. For IPv6 address, the format is socks5://user:password@[IPv6]:port. |
--proxy-cacert | Optional | Specify the path of proxy CACert. |
--proxy-insecure | Optional | Connect to HTTPS proxy without verifying. |
--sftp | Optional | SFTP connection information. Format: user: password@IP[port][dir/]. The address is used to save FFDC logs for VMWare ESXi. |
--sn | Optional | Specify with --mt. Specify the serial number of the target system when uploading the files to System CARE. |
--tftp | Optional | TFTP server for SMM interface. Format: IP[:port][/path]. |
--upload | Optional | 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 servicelog command
OneCli.exe servicelog --bmc USERID:PASSW0RD@xx.xx.xx.xx