![HGST SA-7000 Скачать руководство пользователя страница 49](http://html1.mh-extra.com/html/hgst/sa-7000/sa-7000_replacement-manual_2128575049.webp)
FRU Replacement Guide
4 Storage Node Replaceable Units
49
12.
Update the Active Archive System database with the MAC addresses for the new chassis.
a) From the Management Node, create a cloudAPI connection.
cloudapi = i.config.cloudApiConnection.find('main')
b) From the Management Node, get the machine GUID using your work table value for
Original Hostname of
Node
.
Note:
Use upper case for
HOSTNAME_OF_OLD_NODE
.
machine_guid = cloudapi.machine.find(name='
HOSTNAME_OF_OLD_NODE
')\
['result'][0]
For example,
machine_guid = cloudapi.machine.find(name='HGST-S3-DC01-R01-SN06')['result'][0]
c) From the Management Node, get the machine object.
machine = cloudapi.machine.getObject(machine_guid)
d) Display all the Ethernet port names (
eth
N
) that are registered:
For example,
In [3]: machine = cloudapi.machine.getObject(machine_guid)
In [4]: print machine.nics[0].name
eth1
In [5]: print machine.nics[1].name
eth3
In [6]: print machine.nics[2].name
eth2
In [7]: print machine.nics[3].name
eth0
In [8]: print machine.nics[4].name
BMC
e) Write the
index
of the above
machine.nics[
index
].name
value into the work table in column
NIC
Array ID
, in the row corresponding to
eth
N
.
For the sample output from the step above, the work table would look like this:
Serial Bus Path
MAC Address on the
New Chassis
Ethernet Port Name
NIC Array ID
0000:02:00.0
90:e2:ba:7e:b8:30 eth0
3
0000:02:00.1
90:e2:ba:7e:b8:31 eth1
0
0000:07:00.0
0c:c4:7a:33:38:10 eth2
2
0000:07:00.1
0c:c4:7a:33:38:11 eth3
1
IPMI
See
IPMI MAC Address
of Node
in the work table.
BMC
4