131 | | === Adding in the power controller itself === |
| 131 | === Adding the power controller to DNS === |
| 132 | |
| 133 | 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. |
| 134 | |
| 135 | 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: |
| 136 | |
| 137 | {{{ |
| 138 | [jhickey@boss ~]$ sudo su - |
| 139 | boss# echo "apc23 IN A 192.168.254.23" >> /etc/namedb/mini-isi.deterlab.net.internal.db.head |
| 140 | boss# logout |
| 141 | [jhickey@boss ~]$ /usr/testbed/sbin/named_setup |
| 142 | [jhickey@boss ~]$ ping -c 1 apc23 |
| 143 | PING apc23.mini-isi.deterlab.net (192.168.254.23): 56 data bytes |
| 144 | 64 bytes from 192.168.254.23: icmp_seq=0 ttl=254 time=3.476 ms |
| 145 | |
| 146 | --- apc23.mini-isi.deterlab.net ping statistics --- |
| 147 | 1 packets transmitted, 1 packets received, 0.0% packet loss |
| 148 | round-trip min/avg/max/stddev = 3.476/3.476/3.476/0.000 ms |
| 149 | }}} |
| 150 | |
| 151 | === Adding the power controller to the database === |