| 254 | |
| 255 | == Setting up IPMI == |
| 256 | |
| 257 | === IPMI Nodes === |
| 258 | |
| 259 | Each IPMI controller is treated as special node in the database. |
| 260 | |
| 261 | It must exist in the nodes table, the interfaces table, and the wires table. |
| 262 | |
| 263 | {{{ |
| 264 | insert into nodes set node_id='cpc5-ipmi', phys_nodeid='cpc5-ipmi', type='IPMI', role='powerctrl'; |
| 265 | insert into interfaces set node_id='cpc5-ipmi', IP='192.168.254.5', mask='255.255.240.0', mac='002590761bf0',interface_type='fxp', iface='eth0', role='ctrl'; |
| 266 | insert into wires set node_id1='cpc5-ipmi', card1=0, port1=1, node_id2='hp1', card2=1, port2=12, type='Control'; |
| 267 | }}} |
| 268 | |
| 269 | |
| 270 | The node type IPMI will have to be added to /usr/local/etc/dhcpd.conf.template and then 'dhcpd_makeconf -ir' should be run. |
| 271 | |
| 272 | {{{ |
| 273 | # |
| 274 | # IPMI Network |
| 275 | # |
| 276 | subnet 192.168.254.0 netmask 255.255.255.0 { |
| 277 | option subnet-mask 255.255.255.0; |
| 278 | option domain-name-servers 192.168.252.1; |
| 279 | option domain-name "isi.deterlab.net"; |
| 280 | |
| 281 | group { |
| 282 | %%nodetype=IPMI |
| 283 | } |
| 284 | } |
| 285 | }}} |
| 286 | |
| 287 | |
| 288 | === IPMI Power Control === |
| 289 | |
| 290 | In the outlets table, simply use the IPMI node for the associated testbed node. |
| 291 | |
| 292 | {{{ |
| 293 | mysql> select * from outlets where node_id='cpc5'; |
| 294 | +---------+-----------+--------+---------------------+ |
| 295 | | node_id | power_id | outlet | last_power | |
| 296 | +---------+-----------+--------+---------------------+ |
| 297 | | cpc5 | cpc5-ipmi | 1 | 2013-01-22 06:01:04 | |
| 298 | +---------+-----------+--------+---------------------+ |
| 299 | 1 row in set (0.00 sec) |
| 300 | }}} |
| 301 | |
| 302 | |
| 303 | === IPMI Serial Console === |
| 304 | |
| 305 | TBD. |