Package ZenModel :: Module CiscoLoader :: Class CiscoLoader
[hide private]
[frames] | no frames]

Class CiscoLoader

source code

Products.ZenUtils.CmdBase.CmdBase --+            
                                    |            
Products.ZenUtils.ZenDaemon.ZenDaemon --+        
                                        |        
      Products.ZenUtils.ZCmdBase.ZCmdBase --+    
                                            |    
    Products.ZenUtils.BasicLoader.BasicLoader --+
                                                |
                                               CiscoLoader

Load a machine

Instance Methods [hide private]
 
__init__(self)
Handle command line options, get app instance, load caches and setup log file
source code
 
loaderBody(self, line)
loader body override to customize what will load
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code
 
parseOptions(self) source code

Inherited from Products.ZenUtils.BasicLoader.BasicLoader: loadDatabase, setfields

Inherited from Products.ZenUtils.ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, pretty_print_config_comment

Class Variables [hide private]
  lineparser1 = re.compile(r'^(?P<model>\w+)\s+OBJ.*Products (?P...
  lineparser2 = re.compile(r'^(?P<model>\w+)\s+OBJ.*Products (?P...
  modelclean = re.compile(r'cisco|atalyst')

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Handle command line options, get app instance, load caches and setup log file
Overrides: Products.ZenUtils.BasicLoader.BasicLoader.__init__

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: Products.ZenUtils.BasicLoader.BasicLoader.buildOptions

parseOptions(self)

source code 
Overrides: Products.ZenUtils.BasicLoader.BasicLoader.parseOptions

Class Variable Details [hide private]

lineparser1

Value:
re.compile(r'^(?P<model>\w+)\s+OBJ.*Products (?P<id>\d+) \}.*-- (?P<de\
scr>.*)')

lineparser2

Value:
re.compile(r'^(?P<model>\w+)\s+OBJ.*Products (?P<id>\d+) \}.*')