Package DataCollector :: Module zendisc :: Class ZenDisc
[show private | hide private]
[frames | no frames]

Class ZenDisc

CmdBase --+            
          |            
  ZenDaemon --+        
              |        
       ZCmdBase --+    
                  |    
         ZenModeler --+
                      |
                     ZenDisc


Method Summary
  __init__(self, noopts, app, single, threaded, keeproot)
  buildOptions(self)
basic options setup sub classes can add more options here
  discoverDevice(self, ip, devicepath, prodState)
Discover a device based on its ip address.
  discoverDevices(self, ips, devicepath, prodState)
Discover devices by active ips that are not associated with a device.
  discoverIps(self, nets)
Ping all ips create if nessesary and perform reverse lookup.
  discoverRouters(self, rootdev, seenips)
Discover all default routers based on dmd configuration.
  run(self)
  sendDiscoveredEvent(self, ipobj, sev)
Send an device discovered event.
  sendIpStatusEvent(self, ipobj, sev)
Send an ip down event.
Inherited from ZenModeler: addClient, checkCollection, checkStop, clientFinished, cmdCollect, collectDevice, collectSingle, fillCollectionSlots, loadPlugins, main, mainLoop, portscanCollect, processOptions, reactorLoop, resolveDevice, selectPlugins, sigTerm, snmpCollect, stop, timeoutClients
Inherited from ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect
Inherited from ZenDaemon: becomeDaemon, changeUser, setupLogging
Inherited from CmdBase: buildParser, parseOptions

Class Variable Summary
Inherited from ZenModeler: generateEvents
Inherited from ZenDaemon: pidfile
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
DataCollector.zenmodeler.ZenModeler.buildOptions (inherited documentation)

discoverDevice(self, ip, devicepath='/Discovered', prodState=1000)

Discover a device based on its ip address.

discoverDevices(self, ips, devicepath='/Discovered', prodState=1000)

Discover devices by active ips that are not associated with a device.

discoverIps(self, nets=None)

Ping all ips create if nessesary and perform reverse lookup.

discoverRouters(self, rootdev, seenips=[])

Discover all default routers based on dmd configuration.

sendDiscoveredEvent(self, ipobj, sev=2)

Send an device discovered event.

sendIpStatusEvent(self, ipobj, sev=2)

Send an ip down event. These are used to cleanup unused ips.

Generated by Epydoc 2.1 on Thu Aug 16 09:55:14 2007 http://epydoc.sf.net