Package TestON :: Package drivers :: Package common :: Module clidriver :: Class CLI
[hide private]
[frames] | no frames]

Class CLI

source code


This will define common functions for CLI included.

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) source code
 
execute(self, **execparams)
It facilitates the command line execution of a given command.
source code
 
remove_contol_chars(self, response) source code
 
runAsSudoUser(self, handle, pwd, default) source code
 
onfail(self) source code
 
secureCopy(self, user_name, ip_address, filepath, pwd, dst_path)
Connection will establish to the remote host using ssh.
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__

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

disconnect(self)

source code 
Overrides: component.Component.disconnect

execute(self, **execparams)

source code 

It facilitates the command line execution of a given command. It has arguments as : cmd => represents command to be executed, prompt => represents expect command prompt or output, timeout => timeout for command execution, more => to provide a key press if it is on.

It will return output of command exection.

Overrides: component.Component.execute

secureCopy(self, user_name, ip_address, filepath, pwd, dst_path)

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.