Skip to content

Commit 5c8a7fd

Browse files
bmm replace now includes hwv error messages
1 parent 244a9de commit 5c8a7fd

File tree

2 files changed

+203
-181
lines changed

2 files changed

+203
-181
lines changed

articles/operator-nexus/howto-baremetal-functions.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: eak13
55
ms.author: ekarandjeff
66
ms.service: azure-operator-nexus
77
ms.topic: how-to
8-
ms.date: 07/19/2024
8+
ms.date: 04/02/2025
99
ms.custom: template-how-to, devx-track-azurecli
1010
---
1111

@@ -147,7 +147,7 @@ az networkcloud baremetalmachine reimage \
147147

148148
Use the `replace` command when a server encounters hardware issues requiring a complete or partial hardware replacement.
149149
After the replacing components such as motherboard or Network Interface Card (NIC), the MAC address of Bare Metal Machine will change; however, the iDRAC IP address and hostname will remain the same.
150-
A `replace` **must** be executed after each hardware maintenance operation, read through [Best Practices for Bare Metal Machine Operations](./howto-bare-metal-best-practices.md) for more details.
150+
A `replace` **must** be executed after each hardware maintenance operation, read through [Best practices for a Bare Metal Machine replace](./howto-bare-metal-best-practices.md#best-practices-for-a-bare-metal-machine-replace) for more details.
151151

152152
[!INCLUDE [warning-do-not-run-multiple-actions](./includes/baremetal-machines/warning-do-not-run-multiple-actions.md)]
153153

@@ -162,3 +162,27 @@ az networkcloud baremetalmachine replace \
162162
--serial-number <SERIAL_NUMBER> \
163163
--subscription <subscriptionID>
164164
```
165+
166+
If the `replace` action fails due to a hardware validation failure, the specific error or test failure is shown in the `replace` response, as shown in the following examples.
167+
This information can also be found in the Activity Log for the Bare Metal Machine (Operator Nexus).
168+
The error code and error message are included the JSON properties of the corresponding `BareMetalMachines_Replace` operation.
169+
170+
### Example 1: hardware validation fails due to invalid Baseboard Management Controller (BMC) credentials provided
171+
172+
```shell
173+
$ az networkcloud baremetalmachine replace --name rack1compute02 --resource-group hostedRG --bmc-credentials password=REDACTED username=root --bmc-mac-address 00-00-5E-00-01-00 --boot-mac-address 00-00-5E-00-02-00 --machine-name RACK1COMPUTE02 --serial-number SN123435
174+
(None) BMC login unsuccessful: Fail - Unauthorized; System health test(s) failed: [Additional logs: Server power down at end of test failed with: Unauthorized]
175+
Code: None
176+
Message: BMC login unsuccessful: Fail - Unauthorized; System health test(s) failed: [Additional logs: Server power down at end of test failed with: Unauthorized]
177+
```
178+
179+
### Example 2: hardware validation fails due to networking failure
180+
181+
```shell
182+
$ az networkcloud baremetalmachine replace --name rack1compute02 --resource-group hostedRG --bmc-credentials password=REDACTED username=root --bmc-mac-address 00-00-5E-00-01-00 --boot-mac-address 00-00-5E-00-02-00 --machine-name RACK1COMPUTE02 --serial-number SN123435
183+
(None) Networking test(s) failed: [NIC.Slot.6-1-1_LinkStatus] expected: up; observed: Down; [Additional logs: Link failure detected on NIC.Slot.6-1-1; Unable to perform cabling check on PCI Slot 6]
184+
Code: None
185+
Message: Networking test(s) failed: [NIC.Slot.6-1-1_LinkStatus] expected: up; observed: Down; [Additional logs: Link failure detected on NIC.Slot.6-1-1; Unable to perform cabling check on PCI Slot 6]
186+
```
187+
188+
For more information about troubleshooting hardware validation failures, see [Troubleshoot Hardware Validation Failure](./troubleshoot-hardware-validation-failure.md).

0 commit comments

Comments
 (0)