Skip to content

Day 1

Check a BMC

Make sure that one BMC answers, and find its serial number, media slots and NIC MAC addresses.

  • You have the pk-metal binary on a workstation that can reach the BMC on TCP 443. Install the operator shows how to build it.
  • You have the BMC user name and password. Usually these are the factory values.
  • The machine can be on or off. The two commands read only. They change nothing on the machine.
  1. Put the BMC password in the environment. The commands read it only from there.

    Terminal window
    read -rs PK_METAL_BMC_PASSWORD && export PK_METAL_BMC_PASSWORD
  2. Check the BMC. If the BMC certificate comes from your own CA, give the CA file with --bmc-ca. Use --insecure only if the BMC has a self-signed certificate.

    Terminal window
    pk-metal check --user admin --insecure https://192.0.2.21
    manager: Huawei fw 6.72
    media: CD dialect=vmm-control
    media: USBStick dialect=none
    system: 1 serial=SIMHW2288V5000391 power=On
    check: OK (read-only)

    This is the output for the simulated Huawei iBMC.

  3. Read the inventory into a file.

    Terminal window
    pk-metal inventory --user admin --insecure --node sim-0001 https://192.0.2.21 > sim-0001.yaml

    The file has the BMC MAC, the media slots, the serial number, the NICs and the drives. If the BMC has more than one system, add --system <id>. The command then describes that system.

  4. Write down the serial number and the BMC MAC. You need them for the Asset.

  5. Write down the MAC of the NIC that the node uses, and the serial of the install disk. You need them for the TalosNode.

media: lines
One line for each virtual media slot. Count the lines that do not show dialect=none. One such line means a one-slot BMC. The example above has two lines, but only one usable slot.
dialect=none
The slot cannot mount an image. The operator does not use it.
One usable slot
Add the media store to your overlay before the install. See One-slot BMCs and One-slot BMC.
More than one system: line
The BMC controls more than one machine. pk-metal inventory needs --system, and your HostClaim must set spec.systemRef.
serial=-
The system has no serial. The inventory file then shows the board serial of the chassis.

The last line of pk-metal check is check: OK (read-only).

What you see Go to
check failed: with a timeout or a TLS error BMC unreachable
401 or 403 in the error Check the user name and the password.
No media: line Media slot busy or missing
The check passes with --insecure, but the endpoint is Unreachable later The manager checks the certificate. See BMC certificates.