Example #1
0
    def getVersion(self):
        """
        Gather our current version information

        @return: Zenoss version information
        @rtype: string
        """
        from Products.ZenModel.ZenossInfo import ZenossInfo
        zinfo = ZenossInfo('')
        return str(zinfo.getZenossVersion())
    def getVersion(self):
        """
        Gather our current version information

        @return: Zenoss version information
        @rtype: string
        """
        from Products.ZenModel.ZenossInfo import ZenossInfo
        zinfo = ZenossInfo('')
        return str(zinfo.getZenossVersion())
Example #3
0
 def buildParser(self):
     """
     Create the options parser
     """
     if not self.parser:
         from Products.ZenModel.ZenossInfo import ZenossInfo
         try:
             zinfo = ZenossInfo('')
             version = str(zinfo.getZenossVersion())
         except Exception:
             from Products.ZenModel.ZVersion import VERSION
             version = VERSION
         self.parser = OptionParser(usage=self.usage,
                                    version="%prog " + version,
                                    option_class=LogSeverityOption)
Example #4
0
 def buildParser(self):
     """
     Create the options parser
     """
     if not self.parser:
         from Products.ZenModel.ZenossInfo import ZenossInfo
         try:
             zinfo= ZenossInfo('')
             version= str(zinfo.getZenossVersion())
         except Exception:
             from Products.ZenModel.ZVersion import VERSION
             version= VERSION
         self.parser = OptionParser(usage=self.usage,
                                    version="%prog " + version,
                                    option_class=LogSeverityOption)