Package TestON :: Package drivers :: Package common :: Package cli :: Module remotesysdriver :: Class RemoteSysDriver
[hide private]
[frames] | no frames]

Class RemoteSysDriver

source code


Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
connect(self, **connectargs)
Connection will establish to the remote host using ssh.
source code
 
disconnect(self) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
execute(self, **execparams)
It facilitates the command line execution of a given command. (Inherited from TestON.drivers.common.clidriver.CLI)
source code
 
onfail(self) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
remove_contol_chars(self, response) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
runAsSudoUser(self, handle, pwd, default) (Inherited from TestON.drivers.common.clidriver.CLI) source code
 
secureCopy(self, user_name, ip_address, filepath, pwd, dst_path)
Connection will establish to the remote host using ssh. (Inherited from TestON.drivers.common.clidriver.CLI)
source code

Inherited from component.Component: __getattr__, cleanup, close_log_handles, config, experimentRun, get_version, log

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  handle
if self.handle: self.execute( cmd= " ",prompt= "\$|>|#",timeout= 10 ) self.execute( cmd= "ssh -l paxterra 10.128.4.1",prompt= "paxterra@10.128.4.1's password:",timeout= 10 ) self.execute( cmd= " ",prompt= "paxterra@10.128.4.1's password:",timeout= 10 ) self.execute( cmd="0nLab_gu3st",prompt="\$",timeout=10 ) self.execute( cmd="cd TestON/bin/",prompt="\$",timeout=10 ) self.execute( cmd="./cli.py run Assert example 1",prompt="\$",timeout=10 ) self.execute( cmd= " ",prompt= "$",timeout= 10 ) #self.execute( cmd="help",prompt=">",timeout=10 )
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

connect(self, **connectargs)

source code 

Connection will establish to the remote host using ssh. It will take user_name ,ip_address and password as arguments<br> and will return the handle.

Overrides: component.Component.connect

Instance Variable Details [hide private]

handle


        if self.handle:
            self.execute( cmd= "
",prompt= "\$|>|#",timeout= 10 )
            self.execute( cmd= "ssh -l paxterra 10.128.4.1",prompt= "paxterra@10.128.4.1's password:",timeout= 10 )
            self.execute( cmd= "
",prompt= "paxterra@10.128.4.1's password:",timeout= 10 )
            self.execute( cmd="0nLab_gu3st",prompt="\$",timeout=10 )
            self.execute( cmd="cd TestON/bin/",prompt="\$",timeout=10 )
            self.execute( cmd="./cli.py run Assert example 1",prompt="\$",timeout=10 )
            self.execute( cmd= "
",prompt= "$",timeout= 10 )
            #self.execute( cmd="help",prompt=">",timeout=10 )

            #self.execute( cmd="~.",prompt= ".*",timeout= 10 )
        return main.TRUE