Participants: DanielAllen, Dave Gawley; advice by FraserGunn.
Demo at: http://lurch.uwaterloo.ca/cyclades/
As per Dave's requirements, the:
I will use additional tables for:
Functionality / Code Design:
The only property identified so far is "requires data by IP address instead of name." The design should have the flexibility to add other properties; these are different from Services offered or Class the host is in (although they could supplant/suppliment both lists).
See CycladesConfigurationProjectData for the list Dave/Dan have started giving me (hosts that require data by IP).
https://www.math.uwaterloo.ca/mfcf/internal/procedures/access/cyclades.html
example configuration file: cscf.cs:/software/cyclades/spool/config_files/20050519/cts2.cscf/etc/portslave
-
we want to load/save the data at the very bottom of that file.
a cscf /etc/portslave
file has the following format:
s17.serverfarm services103.math s18.serverfarm descartes-csw4 s19.serverfarm descartes-csw5 s20.serverfarm pilatus.cs s21.serverfarm fs101.math s22.serverfarm fe02.math s23.serverfarm cscf.cs s24.serverfarm NC s20.speed 38400
Hm, but that data is a bit different on, for example, cts2.mfcf, which has extra columns:
#Port Hostname Cable# Comments s17.serverfarm NC s18.serverfarm neutral.math - no response s19.serverfarm cacr2.math 1101 s20.serverfarm general.math 1116 s21.serverfarm theano.math 1102 s22.serverfarm cemc-dev.math - was 1103, dantzig s23.serverfarm pythagoras.math 1184 s24.serverfarm lanyard.math 1119 didn't verify cable #
this file also has comments with datestamps, prior to the definitions.
[this should be merged with the instructions at the tail end of https://www.math.uwaterloo.ca/mfcf/internal/procedures/access/cyclades.html, which is an older, only slightly stale, set of instructions].
nmap -p 1-1024 cts3.cscf
to find out what services are running. PORT STATE SERVICE 22/tcp open ssh 23/tcp open telnet 80/tcp open http 111/tcp open rpcbind 443/tcp open https
saveconf
, turned device off and on, saw that it preserved changes. Turned off because I didn't know what firewall settings were.
/etc/hostname, /etc/hosts, /etc/resolv.conf,
and looked at /etc/network/st_routes
and /etc/portslave/pslave.conf
. Ran signal_ras hup
to activate changes. saved configuration changes via saveconf
.
.ssh/authorized_keys
; verified that it uses passwordless authentication. Aside: when I rebooted, it seems to have reset the shell root password to something other than what I set it to, or the default. Googled for instructions on resetting it; the answer is when it first boots, the console displays "Linux/PPC load: (...)". Press space, enter the word 'single' and hit enter. You can then reset the root password normally with 'passwd; saveconf'
cyclades-1
. /software/cyclades/spool/config_files/20050519
has the most recent config files; sorted by cts number.
saveconf
iptables-save >/etc/network/firewall-new
. Edited the file with vi to fix a few mistakes; and renamed over /etc/network/firewall
. ran saveconf /etc/network/firewall
and rebooted.
iptables -L
will try and use reverse DNS translation, so you need '-n' to prevent that.
-- DanielAllen - 08 Jun 2005