Skip to main content

servicelog command

Use the servicelog command to obtain service data log from BMC.

servicelog command syntax

OneCli.exe [misc] servicelog [options]
Table 1. servicelog command specific parameters
ParameterRequired/OptionalNotes
--cacertOptionalSpecify the path of CACert.
--cnOptional

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

--insecureOptionalAllow insecure server connections when using SSL.
--iobayOptional

bay_number specifies the I/O module bay number. Valid values are 1, 2, 3, or 4.

--mtOptional

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

--proxy, -POptional

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-cacertOptionalSpecify the path of proxy CACert.
--proxy-insecureOptionalConnect to HTTPS proxy without verifying.
--sftpOptionalSFTP connection information. Format: user: password@IP[port][dir/]. The address is used to save FFDC logs for VMWare ESXi.
--snOptional

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

--tftpOptional

TFTP server for SMM interface.

Format: IP[:port][/path].

--uploadOptional

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.

  • --bmc, -b

  • --bmc-cim-port, -p

  • --bmc-password, -w

  • --bmc-username, -u

  • --config

  • --check-trust, -C

  • --output, -o

  • --never-check-trust, -N

  • --node, -n

  • --nolog,-n

Optional

Refer to Table 2.

Example of the servicelog command

OneCli.exe servicelog --bmc USERID:PASSW0RD@xx.xx.xx.xx