Changes between Version 10 and Version 11 of Installation/DatabaseSetup


Ignore:
Timestamp:
Mar 8, 2013 1:03:26 PM (11 years ago)
Author:
jhickey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installation/DatabaseSetup

    v10 v11  
    142142This 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.
    143143
    144 For example, on mini-isi.deterlab.net we have our switch that we will name apc23 at 192.168.254.23 on the HARDWARE_CONTROL network.  So we add it to DNS as follows:
     144For 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:
    145145
    146146{{{
    147147[jhickey@boss ~]$ sudo su -
    148 boss# echo "apc23    IN A 192.168.254.23" >> /etc/namedb/mini-isi.deterlab.net.internal.db.head
     148boss# echo "apc1    IN A 192.168.254.10" >> /etc/namedb/mini-isi.deterlab.net.internal.db.head
    149149boss# logout
    150150[jhickey@boss ~]$ /usr/testbed/sbin/named_setup
    151 [jhickey@boss ~]$ ping -c 1 apc23
    152 PING apc23.mini-isi.deterlab.net (192.168.254.23): 56 data bytes
    153 64 bytes from 192.168.254.23: icmp_seq=0 ttl=254 time=3.476 ms
    154 
    155 --- apc23.mini-isi.deterlab.net ping statistics ---
     151[jhickey@boss ~]$ ping -c 1 apc1
     152PING apc1.mini-isi.deterlab.net (192.168.254.10): 56 data bytes
     15364 bytes from 192.168.254.10: icmp_seq=0 ttl=254 time=3.476 ms
     154
     155--- apc1.mini-isi.deterlab.net ping statistics ---
    1561561 packets transmitted, 1 packets received, 0.0% packet loss
    157157round-trip min/avg/max/stddev = 3.476/3.476/3.476/0.000 ms
     
    162162We assume you are using an APC 7902 networked power controller.  The default node_type for this is 'APC'.
    163163
    164 Now add in a node entry for the power controller.  For mini-isi, our power controller is named apc23:
    165 
    166 {{{
    167 insert into nodes set node_id='apc23', 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='apc23',
    174                            IP='192.168.254.23', mask='255.255.255.0',
     164Now add in a node entry for the power controller.  For mini-isi, our power controller is named apc1:
     165
     166{{{
     167insert into nodes set node_id='apc1', phys_nodeid='apc1', type='APC', role='powerctrl';
     168}}}
     169
     170Now add a line to the interfaces table.  For mini-isi, the power controller is at 192.168.254.10:
     171
     172{{{
     173insert into interfaces set node_id='apc1',
     174                           IP='192.168.254.10', mask='255.255.255.0',
    175175                           interface_type='fxp', iface='eth0', role='other';
    176176}}}
     
    179179
    180180{{{
    181 insert into wires set node_id1='apc23', card1=0, port1=1,
     181insert into wires set node_id1='apc1', card1=0, port1=1,
    182182                      node_id2='hp1', card2=1, port2=4,
    183183                      type='Control';
     
    201201}}}
    202202
    203 So to add, say pc001 which is on apc23 port 1, we would do:
    204 
    205 {{{
    206 insert into outlets set node_id='pc001', power_id='apc23', outlet=1;
     203So to add, say pc001 which is on apc1 port 1, we would do:
     204
     205{{{
     206insert into outlets set node_id='pc001', power_id='apc1', outlet=1;
    207207}}}
    208208