Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/provisioning/ingesting-hosts.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ nico-admin-cli -c <api-url> credential add-uefi --kind=dpu --password='x'

NICo needs to know the factory default credentials for each BMC, which is expressed as a JSON table of "Expected Machines". The serial number is used to verify the BMC MAC matches the actual serial number of the chassis.

Prepare an `expected_machines.json` file as follows:
To add a single host, use `expected-machine add`:

```bash
nico-admin-cli -c <api-url> expected-machine add --bmc-mac-address "02:00:00:00:00:01" --bmc-password 'default-password' --chassis-serial-number CHASSIS-SN-001 --bmc-username root
```
Comment thread
nvda-jake marked this conversation as resolved.

To load or replace the full table, prepare an `expected_machines.json` file as follows:

```json
{
Expand All @@ -164,7 +170,7 @@ Prepare an `expected_machines.json` file as follows:
}
```

Only servers listed in this table will be ingested, so you must include all servers in this file.
Only servers listed in the expected machines table will be ingested. Use `expected-machine add` for individual hosts, or use `replace-all` when you want the JSON file to define the complete table.

### Optional Per-Host Fields

Expand Down Expand Up @@ -327,4 +333,4 @@ Export the current table as JSON:

```bash
nico-admin-cli -c <api-url> -f json em show
```
```