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

Class ExportDevices

source code

Products.ZenUtils.ZCmdBase.ZCmdBase --+
                                      |
                                     ExportDevices

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

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
strip_out_zenoss_internals(self, doc)
Remove Zenoss internal-use objects that we don't need for an import.
source code
string
getVersion(self)
Gather our current version information
source code
string
getServerName(self)
Gather our Zenoss server name
source code
 
export(self)
Create XML header and then call exportXml() for all objects starting at root.
source code
Method Details [hide private]

strip_out_zenoss_internals(self, doc)

source code 
Remove Zenoss internal-use objects that we don't need for an import. doc is our XML document tree.
Parameters:
  • doc (XML DOM document) - XML tree
Returns: string
XML output

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