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) basic options setup sub classes can add more options here | source code
parseOptions(self) Uses the optparse parse previously populated and performs common options. | 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`, `zodbConnect` Inherited from `ZenUtils.ZenDaemon.ZenDaemon`: `becomeDaemon`, `becomeWatchdog`, `changeUser`, `convertSocketOption`, `logname`, `niceDoggie`, `openPrivilegedPort`, `setupLogging`, `sighandler_USR1`, `watchdogCycleTime`, `watchdogMaxRestartTime`, `watchdogStartTimeout`, `writePidFile` Inherited from `ZenUtils.ZenDaemon.ZenDaemon` (private): `_sigUSR1_called` Inherited from `ZenUtils.CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `pretty_print_config_comment`, `validateConfigFile`

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`

Method Details | [hide private]

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

### buildOptions(self) | source code
basic options setup sub classes can add more options here Overrides: ZenUtils.CmdBase.CmdBase.buildOptions (inherited documentation)

### parseOptions(self) | source code
Uses the optparse parse previously populated and performs common options. Overrides: ZenUtils.CmdBase.CmdBase.parseOptions (inherited documentation)

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+) \}.*')