HP Insight Cluster Management Utility v7.1 User Guide

EXAMPLES
Example 1
To scan 128 sequential ILO addresses starting at 3.4.5.6 and put node definitions similar to the
following in the HP Insight CMU database:
# /opt/cmu/bin/cmu_scan_macs -h node%i -i 1.2.3.4 -m 255.255.0.0 -t ILO
-b 3.4.5.6 -n 128
node1 1.2.3.4 255.255.0.0 00-1C-C4-AB-06-56 default 3.4.5.6 ILO x86_64 -1 -1
node2 1.2.3.5 255.255.0.0 00-1F-29-66-4C-F2 default 3.4.5.7 ILO x86_64 -1 -1
.
.
Example 2
In this ILOCM example, each node in the chassis is connected to the HP Insight CMU management
network through NIC2. Three ILOCM addresses are scanned and a node definition is created for
every discovered node using the MAC address of NIC2. Nodes are named using hostname format
L%2L_C%c_N%n which creates names with an ILOCM number (displayed with a minimum field
width of 2 characters, %2L), the cartridge number (%c), and the number of the node within the
cartridge (%n). Notice in the example node definitions below that all cartridges contain one node.
The node definitions are loaded directly into the HP Insight CMU database.
# /opt/cmu/bin/cmu_scan_macs -h L%2L_C%c_N%n -i 1.2.3.1 -m 255.255.0.0 -t \
ILOCM -N 2 -b 10.84.202.251,10.84.202.254,10.84.203.13
Example node definitions:
L01_C01_N1 1.2.3.1 255.255.0.0 38-ea-a7-0f-01-6d default 10.84.202.251 ILOCM x86_64 1 1
L01_C02_N1 1.2.3.2 255.255.0.0 44-1e-a1-d3-80-11 default 10.84.202.251 ILOCM x86_64 2 1
L01_C03_N1 1.2.3.3 255.255.0.0 44-1e-a1-d3-b4-03 default 10.84.202.251 ILOCM x86_64 3 1
.
L02_C19_N1 1.2.3.19 255.255.0.0 44-1e-a1-d3-ac-b9 default 10.84.202.254 ILOCM x86_64 19 1
L02_C20_N1 1.2.3.20 255.255.0.0 44-1e-a1-d3-80-7f default 10.84.202.254 ILOCM x86_64 20 1
L02_C21_N1 1.2.3.21 255.255.0.0 44-1e-a1-d3-b3-79 default 10.84.202.254 ILOCM x86_64 21 1
.
L03_C28_N1 1.2.3.28 255.255.0.0 44-1e-a1-d3-ca-b9 default 10.84.203.13 ILOCM x86_64 28 1
L03_C29_N1 1.2.3.29 255.255.0.0 44-1e-a1-d3-c7-1b default 10.84.203.13 ILOCM x86_64 29 1
L03_C30_N1 1.2.3.30 255.255.0.0 44-1e-a1-d3-b3-47 default 10.84.203.13 ILOCM x86_64 30 1
.
L03_C45_N1 1.2.3.45 255.255.0.0 44-1e-a1-d3-c8-31 default 10.84.203.13 ILOCM x86_64 45 1
Example 3
This example scans an ILOCM address and puts the generated node definitions into the nodes.dat
file that can be reviewed and subsequently loaded into the HP Insight CMU database using
/opt/cmu/bin/cmu_add_node -f nodes.dat.
Hostnames have the format n%i_C%c_N%n where %i is replaced with an integer representing the
number of the node in the order it was discovered, %c is replaced with the cartridge number and
%n is replaced with the number of the node within the cartridge. Notice that each discovered
cartridge has 4 nodes. Also notice that there is no cartridge in slot 2 and that the %i numbering
and IP address generation account for this by incrementally increasing their values by 4 (the number
of nodes in the largest cartridge on the ILOCM). If a cartridge is inserted into slot 2 in the future,
a subsequent scan will give the cartridge the following hostname/IP values:
n05_C02_N1 1.2.3.5
n06_C02_N2 1.2.3.6
n07_C02_N3 1.2.3.7
n08_C02_N4 1.2.3.8
The hostnames and IPs of the surrounding cartridges remain unchanged.
# /opt/cmu/bin/cmu_scan_macs -h n%i_C%c_N%n -i 1.2.3.1 -m 255.255.0.0 -t ILOCM \
-b 10.84.202.42 -o nodes.dat
n01_C01_N1 1.2.3.1 255.255.0.0 38-ea-a7-0f-01-6c default 10.84.202.42 ILOCM x86_64 1 1
n02_C01_N2 1.2.3.2 255.255.0.0 44-1e-a1-d3-80-10 default 10.84.202.42 ILOCM x86_64 1 2
172