Package DataCollector :: Module CollectorClient
[hide private]
[frames] | no frames]

Module CollectorClient

source code

Classes [hide private]
  CollectorClient
Data collector client class to be subclassed by different types collector protocols
Functions [hide private]
optparse object
buildOptions(parser=None, usage=None)
Build a list of command-line options we will accept
source code
object
parseOptions(parser, port)
Command-line option parser
source code
Variables [hide private]
  __doc__ = """CollectorCli...
  log = logging.getLogger("zen.CmdClient")
Function Details [hide private]

buildOptions(parser=None, usage=None)

source code 
Build a list of command-line options we will accept
Parameters:
  • parser (optparse object) - optparse parser
  • usage (string) - description of how to use the program
Returns: optparse object
optparse parser

parseOptions(parser, port)

source code 
Command-line option parser
Parameters:
  • parser (optparse object) - optparse parser
  • port (integer) - IP port number to listen on
Returns: object
parsed options

Variables Details [hide private]

__doc__

Value:
"""CollectorClient

Base class for client collectors

zCommandLoginTries - number of times to attempt to login
zCommandPathList - list of paths to check for a command
zCommandExistanceCheck - shell command issued to look for an executabl\
e
...