Home | Trees | Index | Help |
|
---|
Package pymeterlib :: Module TelnetController :: Class TelnetController |
|
Method Summary | |
---|---|
| |
Connect to a remote host and login. | |
Close the connection to the remote host. | |
String |
Connect to a remote host, login, run a command, and close the connection. |
String |
Run a command on the remote host. |
String |
Strip everything from the response except the actual command output. |
Instance Variable Summary | |
---|---|
host_name : Host name or IP address | |
password : Password | |
prompt : Command prompt (or partial string matching the end of the prompt) | |
tn : Instance of a telnetlib.Telnet object | |
user_name : User name |
Method Details |
---|
__init__(self,
host_name,
user_name,
password,
prompt)
|
login(self)Connect to a remote host and login. |
logout(self)Close the connection to the remote host. |
run_atomic_command(self, command)Connect to a remote host, login, run a command, and close the connection.
|
run_command(self, command)Run a command on the remote host.
|
__strip_output(self, command, response)Strip everything from the response except the actual command output.
|
Instance Variable Details |
---|
host_nameHost name or IP address |
passwordPassword |
promptCommand prompt (or partial string matching the end of the prompt) |
tnInstance of a telnetlib.Telnet object |
user_nameUser name |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Mar 17 09:16:19 2006 | http://epydoc.sf.net |