Changes between Version 19 and Version 20 of Installation/Nodes


Ignore:
Timestamp:
Jul 23, 2011 9:52:39 PM (13 years ago)
Author:
jhickey
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Installation/Nodes

    v19 v20  
    129129== Setting up your power controller ==
    130130
     131=== Adding in the power controller itself ===
     132
    131133We assume you are using an APC 7902 networked power controller.  The default node_type for this is 'APC'.
    132134
     
    144146                           interface_type='fxp', iface='eth0', role='other';
    145147}}}
     148
     149Now, finally we need a wires table entry:
     150
     151{{{
     152insert into wires set node_id1='apc23', card1=0, port1=1,
     153                      node_id2='hp1', card2=0, port2=4,
     154                      type='Control';
     155}}}
     156
     157=== Telling the database about the power controller ports ===
     158
     159This is jumping the gun since we have not gotten to the point of adding PC type nodes to the testbed yet, but when we do, they will go in the '''outlets''' table.
     160
     161{{{
     162mysql> describe outlets;
     163+------------+---------------------+------+-----+-------------------+-------+
     164| Field      | Type                | Null | Key | Default           | Extra |
     165+------------+---------------------+------+-----+-------------------+-------+
     166| node_id    | varchar(32)         | NO   | PRI |                   |       |
     167| power_id   | varchar(32)         | NO   |     |                   |       |
     168| outlet     | tinyint(1) unsigned | NO   |     | 0                 |       |
     169| last_power | timestamp           | NO   |     | CURRENT_TIMESTAMP |       |
     170+------------+---------------------+------+-----+-------------------+-------+
     1714 rows in set (0.00 sec)
     172}}}
     173
     174So to add, say pc001 which is on apc23 port 1, we would do:
     175
     176{{{
     177insert into outlets set node_id='pc001', power_id='apc23', outlet=1;
     178}}}
     179
     180You can add in a dummy entry and test if you like.
    146181
    147182== Setting up your serial server ==