Package DataCollector :: Module PortscanClient :: Class PortscanClient
[hide private]
[frames] | no frames]

Class PortscanClient

source code

object --+
         |
        PortscanClient

Instance Methods [hide private]
 
__init__(self, hostname, ipaddr, options=None, device=None, datacollector=None, plugins=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
run(self)
Start portscan collection.
source code
 
_cbScanComplete(self, results, pluginName) source code
 
_ebScanError(self, err, pluginName)
Handle an error generated by one of our requests.
source code
 
getResults(self)
ZenUtils.PortScan records open ports in a list that are the values for a key in a dict where the key is the IP address scanned.
source code
 
clientFinished(self, pluginName)
Tell the datacollector that we are all done.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, hostname, ipaddr, options=None, device=None, datacollector=None, plugins=[])
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

getResults(self)

source code 

ZenUtils.PortScan records open ports in a list that are the
values for a key in a dict where the key is the IP address
scanned.

For example, if we scan host 10.0.4.55 and ports 22 and 80 are
open, getSuccesses() will return the following:

    {'10.0.4.55': [22, 80]}