Skip to main content

acquire command

Use the acquire command to generate and acquire the FoD key from Lenovo Web site and install the key to the target key repository.

acquire command syntax

OneCli.exe fod acquire < --uid >> < --auth <auth_code>> < --kmsid <kms_id>> < --mt <mt>> 
< --installin <mt_sn>> [--all] [--dir <dir_name>] [--proxy <proxy_info>] [<options>]
Table 1. acquire command specific parameters
ParameterRequired/OptionalNotes
--allOptionalGet all the FoD keys for the specified system.
--authRequiredSpecify Lenovo authorization code.
--authprotoOptional

The parameter only for snmpv3, Protocol supported value: MD5/SHA, default: No auth.

Format: --authproto MD5 or --authproto.

--communityOptionalCommunity for snmpv1v2. Supported value: public/private/ protect, default: public
--dirOptionalSpecify the directory to save the downloaded key file. The default value is the current directory.
--installinOptionalSystem machine type and serial number of the target system.
--kcsOptionalForce to use IPMI over KCS local interface.
--kmsidRequiredSpecify Lenovo ID credential for Lenovo Web site interactive.
--mtOptionalSpecify system machine type for system/option feature.
--node, -nOptionalNode index for in-band case on a multi-node system.
--privprotoOptionalThe parameter only for snmpv3. Privacy protocol supported value: DES/AES, default: No privacy.Format: --privproto DES or --privproto.
--privpasswdOptionalPrivacy password.
--proxyOptional

Use proxy to connect to Lenovo Web site.

The format is user: password@host[:port].

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

--sftpOptional

Specify the SFTP server.

Format: user:password@IP:port

--switchOptionalSWITCH connection information. Format: user:password@IP: port
--tftpOptionalTFTP server for snmp interface. Format: user:password@host: port
--uidOptionalSpecify unique identifier information.
  • --bmc, -b

  • --bmc-username, -u

  • --bmc-password, -w

  • --bmc-cim-port, -p

  • --cmm, -c

  • --check-trust, -C

  • --never-check-trust, -N

  • --nolog

  • --output, -o

Optional

Refer to Table 2.

Example of the acquire command

OneCli.exe fod acquire --mt 2582 --uid xxx --auth xxx --kmsid userid:password 
--bmc userid:password@host
Note
If the FoD key is already generated in KMS, the acquire command will report the failure in generating. Acquire and install the FoD key through the steps in the following section.