Skip to main content

scan command

Use the scan command to build a list of available firmware and device driver updates for the targeted device. The XML file generated with scan command can be used by the compare command.

  • For Out-of-Band (OOB) mode, scan results include only firmware.

  • For In-Band (IB) mode, scan results include both firmware and device drivers.

Options

  • --remoteos: Specify the remote OS login credential for OneCLI to manage the servers. After connecting to Linux OS, OneCLI supports to update firmware and device driver. Ensure that the OneCLI binary for the remote Linux OS is in the directory specified with the --dir parameter. The sample command is: ./OneCli update compare --remoteos root@xx. xx.xx.xx --dir packages --quiet.
    Note
    Before using this function, users should set PasswordAuthentication yes to enable the tunneled clear text passwords in /etc/ssh/ sshd_config.

scan command syntax

Onecli.exe update scan [--bmc <userid:password@host[:port]>] [--esxi <userid:password@host[:port]>] 
[--remoteos userid:password@host[:port]][--cmm <userid:password@host[:port]>]
[--smm <userid:password@host[:port]>] [--iobay <bay_number>][--output<folder>] [<options>]
Table 1. scan command specific parameters
ParameterRequired/OptionalNotes
--iobayOptional

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

The --iobay parameter specifies an I/O module scan operation. When scanning an I/O module target, the --cmm parameter must also be specified.

--cmmOptionalSpecify the CMM information for the scan functions. If the --scanxml parameter or the --noscan parameter is specified, this parameter is not required.
--esxiRequiredSpecify the esxi OS information, including OS user name, password, IP address, and port.
--remoteosOptional

Specify the remote OS login credential for OneCLI to manage system in the local host OS.

Support Windows-to-Windows, Linux-to-Linux, and Windows-to-Linux.

--smmRequired

Specify the access information of the target SMM. The format is: userid:password@host[:port].

Note
  • Both the IPv4 address and the IPv6 address are supported. The IPv6 address shall be enclosed in square brackets. For example, [FE80:3BA7:94FF:FE07:CBD0].

  • If the IPv6 is LLA, the format is [FE80:3BA7:94FF:FE07:CBD0%xxx]. Replace xxx with the interface name.

--type, -TOptionalSpecify the type of package or component to be downloaded, scanned, compared, or flashed.
  • --bmc, -b

  • --bmc-username, -u

  • --bmc-password, -w

  • --bmc-rest-port

  • --bmc-cim-port, -p

  • --configfile

  • --check-trust, -C

  • --config

  • --output, -o

  • --nolog

  • --never-check-trust, -N

Optional

Refer to Table 2.

Example of the scan command

In this example, we are building a list of firmware (update scan command) installed in a CMM that is accessed with a user ID of “userid”, a password of “password”, and an IP address of “host” (--cmm userid:password@host argument) storing the scan report XML file (using the default file name) in the “output” directory (--output .\872102cn03e\output\ argument).

Onecli.exe update scan --cmm userid:password@host --output .\872102cn03e\output\