add netconfig aspect to rpm
[raven.git] / tools / phonehome / runinitscript_hostnames.py
1 import os
2 import time
3
4 slicename = "arizona_beta"
5
6 slicenodes = ["node1.chic.nlr.vini-veritas.net",
7               "node2.chic.nlr.vini-veritas.net",
8               "node1.chic.internet2.vini-veritas.net",
9               "node2.chic.internet2.vini-veritas.net",
10               "node1.newy.internet2.vini-veritas.net",
11               "node2.newy.internet2.vini-veritas.net",
12               "node1.wash.internet2.vini-veritas.net",
13               "node2.wash.internet2.vini-veritas.net",
14               "node1.atla.internet2.vini-veritas.net",
15               "node2.atla.internet2.vini-veritas.net",
16               "node1.kans.internet2.vini-veritas.net",
17               "node2.kans.internet2.vini-veritas.net",
18               "node1.hous.internet2.vini-veritas.net",
19               "node2.hous.internet2.vini-veritas.net",
20               "node1.losa.internet2.vini-veritas.net",
21               "node2.losa.internet2.vini-veritas.net",
22               "node1.seat.internet2.vini-veritas.net",
23               "node2.seat.internet2.vini-veritas.net",
24               "node1.salt.internet2.vini-veritas.net",
25               "node2.salt.internet2.vini-veritas.net"];
26
27
28
29
30 #INITSCRIPT_URL = "http://www.cs.arizona.edu/stork/downloads/initscript"
31 #remoteCmd = 'wget ' + INITSCRIPT_URL + ' -O initscript; chmod +x ./initscript; sudo ./initscript'
32
33 for node in slicenodes:
34    print "running initscript on " + node
35    cmd = "ssh -q -o \"StrictHostKeyChecking no\" " + slicename + "@" + node + " \"sudo /etc/rc.vinit\"&"
36    #cmd = 'ssh -q -o "StrictHostKeyChecking no" ' + slicename + '@' + node + ' "' + remoteCmd + '"&'
37    print "  " + cmd
38    os.system(cmd)
39    time.sleep(1)
40
41
42