131 | | Add in a node_type for your power controller. We assume you are using an APC 7902 networked power controller: |
132 | | |
133 | | {{{ |
134 | | insert into `node_types` (class, type) values ('power','APC'); |
135 | | }}} |
136 | | |
137 | | Now add in a node entry for the power controller: |
138 | | |
139 | | {{{ |
140 | | insert into nodes set node_id='apc23',phys_nodeid='apc23',type='APC',role='powerctrl'; |
141 | | }}} |
142 | | |
143 | | |
| 131 | We assume you are using an APC 7902 networked power controller. The default node_type for this is 'APC'. |
| 132 | |
| 133 | Now add in a node entry for the power controller. For mini-isi, our power controller is named apc23: |
| 134 | |
| 135 | {{{ |
| 136 | insert into nodes set node_id='apc23', phys_nodeid='apc23', type='APC', role='powerctrl'; |
| 137 | }}} |
| 138 | |
| 139 | Now add a line to the interfaces table. For mini-isi, the power controller is at 192.168.254.23: |
| 140 | |
| 141 | {{{ |
| 142 | insert into interfaces set node_id='apc23', |
| 143 | IP='192.168.254.23', mask='255.255.255.0', |
| 144 | interface_type='fxp', iface='eth0', role='other'; |
| 145 | }}} |