generate command

Use the generate command to generate a private key and public key pair with a self-signed certificate or a certificate sign request.

generate command syntax

OneCli.exe config generate<setting> --file<exportfilename>[--output<folder>]
[connection option]
Table 1. generate command parameters
Parameter Required/Optional Notes
setting Required Certificate management setting
--file Required
  • This is the file name of *generate file, using the format of template.xml.
  • For more information about the template.xml, see The template.xml file.
--output Optional

By default, the log file output is saved to: ../Onecli-%PID%-%date%-%time%/.

connection option Optional
--imm <user:pwd@ip>
Use for OOB.
Use for in-band, if you know the LAN over USB IP of the target IMM.
Use to specify the target IMM.
--node <x>
Use for inband cases on a multinode system.
Where x is a numeric value that indicates the node number. For example, if "--node 2" the target IMM is in the second node of a multinode system.
  • The generate command is used specifically for certificate management. The supported settings are certificate management settings.
  • The supported setting list can be generated using showvalues using a value such as generate.
  • The values after the * are for the supported certificate management settings:

Example of the generate command

OneCli.exe config generate IMM.SSL_HTTPS_SERVER_CERT
--file template.xml --imm USERID:PASSW0RD@
This is the output generated from this example:
Lenovo ToolsCenterSuite CLI tcliXXX-X.X.X
Based on module version X.X.X
Licensed Materials - Property of Lenovo
(C) Copyright Lenovo Corp. 2013-2016 All Rights Reserved
Invoking SHOW command ...
Connected to IMM by IP address
Waiting for command completion status.
 Certificate was generated successfully!