git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svn merge -r 12308:13112 https://svn.planet-lab.org/svn/Monitor/branches/2.0/
[monitor.git]
/
pcucontrol
/
models
/
BayTech.py
diff --git
a/pcucontrol/models/BayTech.py
b/pcucontrol/models/BayTech.py
index
83de3a5
..
065cc28
100644
(file)
--- a/
pcucontrol/models/BayTech.py
+++ b/
pcucontrol/models/BayTech.py
@@
-1,6
+1,7
@@
from pcucontrol.reboot import *
class BayTechRPC3NC(PCUControl):
from pcucontrol.reboot import *
class BayTechRPC3NC(PCUControl):
+ supported_ports = [22,23]
def run_telnet(self, node_port, dryrun):
return self.run_ssh(node_port, dryrun)
def run_telnet(self, node_port, dryrun):
return self.run_ssh(node_port, dryrun)
@@
-22,6
+23,7
@@
class BayTechRPC3NC(PCUControl):
return 0
class BayTechRPC16(PCUControl):
return 0
class BayTechRPC16(PCUControl):
+ supported_ports = [22,23]
def run_telnet(self, node_port, dryrun):
return self.run_ssh(node_port, dryrun)
def run_ssh(self, node_port, dryrun):
def run_telnet(self, node_port, dryrun):
return self.run_ssh(node_port, dryrun)
def run_ssh(self, node_port, dryrun):
@@
-48,6
+50,7
@@
class BayTechCtrlCUnibe(PCUControl):
indefinitely, unless you send a Ctrl-C after the password. No idea
why.
"""
indefinitely, unless you send a Ctrl-C after the password. No idea
why.
"""
+ supported_ports = [22]
def run_ssh(self, node_port, dryrun):
print "BayTechCtrlC %s" % self.host
def run_ssh(self, node_port, dryrun):
print "BayTechCtrlC %s" % self.host
@@
-69,9
+72,11
@@
class BayTechCtrlCUnibe(PCUControl):
if index == 0:
print "3"
s.send("3\r\n")
if index == 0:
print "3"
s.send("3\r\n")
+ time.sleep(5)
index = s.expect(["DS-RPC>", "Enter user name:"])
if index == 1:
s.send(self.username + "\r\n")
index = s.expect(["DS-RPC>", "Enter user name:"])
if index == 1:
s.send(self.username + "\r\n")
+ time.sleep(5)
index = s.expect(["DS-RPC>"])
if index == 0:
index = s.expect(["DS-RPC>"])
if index == 0:
@@
-112,6
+117,7
@@
class BayTechCtrlC(PCUControl):
indefinitely, unless you send a Ctrl-C after the password. No idea
why.
"""
indefinitely, unless you send a Ctrl-C after the password. No idea
why.
"""
+ supported_ports = [22]
def run_ssh(self, node_port, dryrun):
print "BayTechCtrlC %s" % self.host
def run_ssh(self, node_port, dryrun):
print "BayTechCtrlC %s" % self.host