Changes between Version 10 and Version 11 of Installation/DatabaseSetup
- Timestamp:
- Mar 8, 2013 1:03:26 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Installation/DatabaseSetup
v10 v11 142 142 This is pretty much the same as with the switch above. Technically, you can get away without this step since the IP address will also be in the database, but it is good housekeeping. 143 143 144 For example, on mini-isi.deterlab.net we have our switch that we will name apc 23 at 192.168.254.23 on the HARDWARE_CONTROL network. So we add it to DNS as follows:144 For example, on mini-isi.deterlab.net we have our switch that we will name apc1 at 192.168.254.10 on the HARDWARE_CONTROL network (the IP address isn't important, just that the APC is on hardware control network). So we add it to DNS as follows: 145 145 146 146 {{{ 147 147 [jhickey@boss ~]$ sudo su - 148 boss# echo "apc 23 IN A 192.168.254.23" >> /etc/namedb/mini-isi.deterlab.net.internal.db.head148 boss# echo "apc1 IN A 192.168.254.10" >> /etc/namedb/mini-isi.deterlab.net.internal.db.head 149 149 boss# logout 150 150 [jhickey@boss ~]$ /usr/testbed/sbin/named_setup 151 [jhickey@boss ~]$ ping -c 1 apc 23152 PING apc 23.mini-isi.deterlab.net (192.168.254.23): 56 data bytes153 64 bytes from 192.168.254. 23: icmp_seq=0 ttl=254 time=3.476 ms154 155 --- apc 23.mini-isi.deterlab.net ping statistics ---151 [jhickey@boss ~]$ ping -c 1 apc1 152 PING apc1.mini-isi.deterlab.net (192.168.254.10): 56 data bytes 153 64 bytes from 192.168.254.10: icmp_seq=0 ttl=254 time=3.476 ms 154 155 --- apc1.mini-isi.deterlab.net ping statistics --- 156 156 1 packets transmitted, 1 packets received, 0.0% packet loss 157 157 round-trip min/avg/max/stddev = 3.476/3.476/3.476/0.000 ms … … 162 162 We assume you are using an APC 7902 networked power controller. The default node_type for this is 'APC'. 163 163 164 Now add in a node entry for the power controller. For mini-isi, our power controller is named apc 23:165 166 {{{ 167 insert into nodes set node_id='apc 23', phys_nodeid='apc23', type='APC', role='powerctrl';168 }}} 169 170 Now add a line to the interfaces table. For mini-isi, the power controller is at 192.168.254. 23:171 172 {{{ 173 insert into interfaces set node_id='apc 23',174 IP='192.168.254. 23', mask='255.255.255.0',164 Now add in a node entry for the power controller. For mini-isi, our power controller is named apc1: 165 166 {{{ 167 insert into nodes set node_id='apc1', phys_nodeid='apc1', type='APC', role='powerctrl'; 168 }}} 169 170 Now add a line to the interfaces table. For mini-isi, the power controller is at 192.168.254.10: 171 172 {{{ 173 insert into interfaces set node_id='apc1', 174 IP='192.168.254.10', mask='255.255.255.0', 175 175 interface_type='fxp', iface='eth0', role='other'; 176 176 }}} … … 179 179 180 180 {{{ 181 insert into wires set node_id1='apc 23', card1=0, port1=1,181 insert into wires set node_id1='apc1', card1=0, port1=1, 182 182 node_id2='hp1', card2=1, port2=4, 183 183 type='Control'; … … 201 201 }}} 202 202 203 So to add, say pc001 which is on apc 23port 1, we would do:204 205 {{{ 206 insert into outlets set node_id='pc001', power_id='apc 23', outlet=1;203 So to add, say pc001 which is on apc1 port 1, we would do: 204 205 {{{ 206 insert into outlets set node_id='pc001', power_id='apc1', outlet=1; 207 207 }}} 208 208