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

# Class CiscoLoader

source code

                  object --+
                           |
    ZenUtils.CmdBase.CmdBase --+
                               |
    ZenUtils.ZenDaemon.ZenDaemon --+
                                   |
          ZenUtils.ZCmdBase.ZCmdBase --+
                                       |
        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) | source code
parseOptions(self) | source code
Inherited from `ZenUtils.BasicLoader.BasicLoader`: `loadDatabase`, `setfields` Inherited from `ZenUtils.ZCmdBase.ZCmdBase`: `closeAll`, `closedb`, `findDevice`, `getConnection`, `getContext`, `getDataRoot`, `getDmdObj`, `login`, `logout`, `opendb`, `sigTerm`, `syncdb`, `zeoConnect` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `becomeDaemon`, `becomeWatchdog`, `changeUser`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenUtils.CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `pretty_print_config_comment` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

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|catalyst')`
Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `pidfile` Inherited from `ZenUtils.CmdBase.CmdBase`: `doesLogging`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
Handle command line options, get app instance, load caches and setup log file Overrides: ZenUtils.BasicLoader.BasicLoader.__init__

### buildOptions(self) | source code
Overrides: ZenUtils.BasicLoader.BasicLoader.buildOptions

### parseOptions(self) | source code
Overrides: 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+) \}.*')