Package pymeterlib :: Module RemoteHost :: Class RemoteHost
[show private | hide private]
[frames | no frames]

Class RemoteHost

Host --+
       |
      RemoteHost


Remote Unix-like Host.
Method Summary
  __init__(self, host_name, user_name, password, prompt, connection_type, *plugins)
List of strings check_stats(self)
Connect to a remote host and run plugin commands.
    Inherited from Host
  disable_storage(self)
Disable internal storage of stats and flush any existing storage.
  enable_storage(self)
Enable internal storage of stats.
  flush_stats(self)
Flush (clear) any stats stored in the object.

Instance Variable Summary
  connection_type: Protocol used for remote connection
  host_name: Host name or IP address
  password: Password
  prompt: Command prompt (or partial string matching the end of the prompt)
  user_name: User name
    Inherited from Host
  last_stat: Value of last single stat from the last check
  last_stats: List of stats (values) from the last check
  plugins: Instances of plugin objects to run for stat checks
  stat_labels: Labels (names) of the stats to be checked
  storage_enabled: Indication if internal storage of stats is enabled (boolean)
  stored_stats: List of stats collected since enabling storage or last flush

Method Details

__init__(self, host_name, user_name, password, prompt, connection_type, *plugins)
(Constructor)

Parameters:
host_name - Host name or IP address
user_name - User name
password - Password
prompt - Command prompt (or partial string matching end of the prompt)
connection_type - Protocol used for remote connection (telnet|ssh)
plugins - Instances of plugin objects to run for stat checks (arbitrary number of arguments)
Overrides:
pymeterlib.Host.Host.__init__

check_stats(self)

Connect to a remote host and run plugin commands.
Returns:
Stats
           (type=List of strings)
Overrides:
pymeterlib.Host.Host.check_stats

Instance Variable Details

connection_type

Protocol used for remote connection

host_name

Host name or IP address

password

Password

prompt

Command prompt (or partial string matching the end of the prompt)

user_name

User name

Generated by Epydoc 2.1 on Fri Mar 17 09:16:20 2006 http://epydoc.sf.net