+ def show_vplc (self):
+ "print out a shell command that can be cut'n pasted to define the GUEST variable"
+ # these work but the shell prompt does not get displayed..
+ command1="ssh %s vserver %s enter"%(self.plc_spec['host_box'],self.plc_spec['vservername'])
+ command2="ssh root@%s %s"%(socket.gethostname(),command1)
+ # guess local domain from hostname
+ domain=socket.gethostname().split('.',1)[1]
+ fqdn="%s.%s"%(self.plc_spec['host_box'],domain)
+ print "export PLCHOST=%s"%fqdn
+ print "export GUEST=%s"%self.plc_spec['vservername']
+ return True
+