Example #1
0
    def __init__(self,
                 name,
                 logfile_object=sys.stdout,
                 u_name=U_NAME,
                 passwd=PASSWD):

        Host.__init__(self, name)
        self.name = name
        self.logfile = logfile_object
        self.user = u_name
        self.passwd = passwd
    def __init__(self,name,u_name = U_NAME,passwd = PASSWD,logon = 1):
	
	Host.__init__(self,name)

        self.name           = name
        self.user           = u_name
        self.passwd         = passwd
        self.ssh            = ""
        
	if logon == 1:
	    
            self.logon()
Example #3
0
    def __init__(self, host,username= "", password= "",stdprompt=tek_prompt_regex):
        """tek specific init method.  Basically just filling in the blanks."""

        Host.__init__(self, host, username, password, stdprompt)
        log.output("G-35 object for host %s created." % host)
Example #4
0
 def __init__ (self, screen, x, y):
     Host.__init__(self, screen, x, y)
     self.selectable = True        
     self.corespondent = self.name
     self.timer = 0
     self.color = (64, 128, 223)