Skip to content

Commit d11effb

Browse files
authored
Update howto-baremetal-functions.md
1 parent addc0ec commit d11effb

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

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

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ This command will `power-off` the specified `bareMetalMachineName`.
4848
```azurecli
4949
az networkcloud baremetalmachine power-off \
5050
--name "bareMetalMachineName" \
51-
--resource-group "cluster_MRG"
51+
--resource-group "cluster_MRG" \
52+
--subscription "subscription_ID"
5253
```
5354

5455
## Start the BMM
@@ -58,7 +59,8 @@ This command will `start` the specified `bareMetalMachineName`.
5859
```azurecli
5960
az networkcloud baremetalmachine start \
6061
--name "bareMetalMachineName" \
61-
--resource-group "cluster_MRG"
62+
--resource-group "cluster_MRG" \
63+
--subscription "subscription_ID"
6264
```
6365

6466
## Restart the BMM
@@ -68,24 +70,27 @@ This command will `restart` the specified `bareMetalMachineName`.
6870
```azurecli
6971
az networkcloud baremetalmachine restart \
7072
--name "bareMetalMachineName" \
71-
--resource-group "cluster_MRG"
73+
--resource-group "cluster_MRG" \
74+
--subscription "subscription_ID"
7275
```
7376

7477
## Make a BMM unschedulable (cordon)
78+
#***(PLACEHOLDER: We need to explain how a customer can identify if workloads are currently running on a BMM and the az cli command used to get this information. Ask NAKS team to provide.)*** \
7579

7680
You can make a BMM unschedulable by executing the [`cordon`](#make-a-bmm-unschedulable-cordon) command.
7781
On the execution of the `cordon` command,
7882
Operator Nexus workloads aren't scheduled on the BMM when cordon is set; any attempt to create a workload on a `cordoned`
7983
BMM results in the workload being set to `pending` state. Existing workloads continue to run.
8084
The cordon command supports an `evacuate` parameter with the default `False` value.
81-
On executing the `cordon` command, with the value `True` for the `evacuate`
85+
It is a best practice to set this to `True`. On executing the `cordon` command, with the value `True` for the `evacuate`
8286
parameter, the workloads that are running on the BMM are `stopped` and the BMM is set to `pending` state.
8387

8488
```azurecli
8589
az networkcloud baremetalmachine cordon \
8690
--evacuate "True" \
8791
--name "bareMetalMachineName" \
88-
--resource-group "cluster_MRG"
92+
--resource-group "cluster_MRG" \
93+
--subscription "subscription_ID"
8994
```
9095

9196
The `evacuate "True"` removes workloads from that node while `evacuate "False"` only prevents the scheduling of new workloads.
@@ -98,7 +103,8 @@ state on the BMM are `restarted` when the BMM is `uncordoned`.
98103
```azurecli
99104
az networkcloud baremetalmachine uncordon \
100105
--name "bareMetalMachineName" \
101-
--resource-group "cluster_MRG"
106+
--resource-group "cluster_MRG" \
107+
--subscription "subscription_ID"
102108
```
103109

104110
## Reimage a BMM
@@ -115,7 +121,8 @@ command, with `evacuate "True"`, before executing the `reimage` command.
115121
```azurecli
116122
az networkcloud baremetalmachine reimage \
117123
–-name "bareMetalMachineName" \
118-
--resource-group "cluster_MRG"
124+
--resource-group "cluster_MRG" \
125+
--subscription "subscription_ID"
119126
```
120127

121128
## Replace BMM
@@ -131,9 +138,10 @@ Use the `replace` command when a server encounters hardware issues requiring a c
131138
az networkcloud baremetalmachine replace \
132139
--name "bareMetalMachineName" \
133140
--resource-group "cluster_MRG" \
134-
--bmc-credentials password="{password}" username="{user}" \
135-
--bmc-mac-address "00:00:4f:00:57:ad" \
136-
--boot-mac-address "00:00:4e:00:58:af" \
141+
--bmc-credentials password="$IDRAC_PASSWORD" username="$IDRAC_USER" \
142+
--bmc-mac-address "idrac_MAC" \
143+
--boot-mac-address "pxe_MAC" \
137144
--machine-name "OS_hostname" \
138-
--serial-number "BM1219XXX"
145+
--serial-number "OS_HOSTNAME" \
146+
--subscription "subscription_ID"
139147
```

0 commit comments

Comments
 (0)