Package Products :: Package ZenRelations :: Module ExportRM :: Class ExportRM
[hide private]
[frames] | no frames]

Class ExportRM

source code

              object --+            
                       |            
ZenUtils.CmdBase.CmdBase --+        
                           |        
ZenUtils.ZenDaemon.ZenDaemon --+    
                               |    
      ZenUtils.ZCmdBase.ZCmdBase --+
                                   |
                                  ExportRM

Wrapper class around exportXml() to create XML exports of relations.

Instance Methods [hide private]
 
__init__(self)
Initializer that creates an output file, or if nothing is specified with the command-line option --outfile, sends to stdout.
source code
 
buildOptions(self)
Command-line options setup
source code
string
getVersion(self)
Gather our current version information
source code
string
getServerName(self)
Gather our Zenoss server name
source code
 
export(self, root=None)
Create XML header and then call exportXml() for all objects starting at root.
source code

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, parseOptions, pretty_print_config_comment, validateConfigFile

Class Variables [hide private]

Inherited from ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initializer that creates an output file, or if nothing is specified with the command-line option --outfile, sends to stdout.

Overrides: ZenUtils.CmdBase.CmdBase.__init__

buildOptions(self)

source code 

Command-line options setup

Overrides: ZenUtils.CmdBase.CmdBase.buildOptions

getVersion(self)

source code 

Gather our current version information

Returns: string
Zenoss version information

getServerName(self)

source code 

Gather our Zenoss server name

Returns: string
Zenoss server name

export(self, root=None)

source code 

Create XML header and then call exportXml() for all objects starting at root.

Parameters:
  • root (object) - DMD object root