def __init__(self, id, netmask=24, description=''):
     if id.find("/") > -1: id, netmask = id.split("/",1)
     DeviceOrganizer.__init__(self, id, description)
     if id != "Networks":
         checkip(id)
     self.netmask = maskToBits(netmask)
     self.description = description
 def __init__(self, id, netmask=24, description='', version=4):
     if id.find("/") > -1: id, netmask = id.split("/", 1)
     DeviceOrganizer.__init__(self, id, description)
     if not id.endswith("Networks"):
         checkip(id)
     self.netmask = maskToBits(netmask)
     self.version = version
     self.description = description
     self.title = ipunwrap(id)
Beispiel #3
0
 def __init__(self, id, netmask=24, description='', version=4):
     if id.find("/") > -1: id, netmask = id.split("/",1)
     DeviceOrganizer.__init__(self, id, description)
     if not id.endswith("Networks"):
         checkip(id)
     self.netmask = maskToBits(netmask)
     self.version = version
     self.description = description
     self.title = ipunwrap(id)
Beispiel #4
0
    def zenPropertyOptions(self, propname):
        """
        Provide a set of default options for a zProperty

        @param propname: zProperty name
        @type propname: string
        @return: list of zProperty options
        @rtype: list
        """
        if propname == 'zCollectorPlugins':
            from Products.DataCollector.Plugins import loadPlugins
            return sorted(ldr.pluginName for ldr in loadPlugins(self.dmd))
        if propname == 'zCommandProtocol':
            return ['ssh', 'telnet']
        if propname == 'zSnmpVer':
            return ['v1', 'v2c', 'v3']
        if propname == 'zSnmpAuthType':
            return ['', 'MD5', 'SHA']
        if propname == 'zSnmpPrivType':
            return ['', 'DES', 'AES']
        return DeviceOrganizer.zenPropertyOptions(self, propname)
Beispiel #5
0
    def zenPropertyOptions(self, propname):
        """
        Provide a set of default options for a zProperty

        @param propname: zProperty name
        @type propname: string
        @return: list of zProperty options
        @rtype: list
        """
        if propname == 'zCollectorPlugins':
            from Products.DataCollector.Plugins import loadPlugins
            return sorted(ldr.pluginName for ldr in loadPlugins(self.dmd))
        if propname == 'zCommandProtocol':
            return ['ssh', 'telnet']
        if propname == 'zSnmpVer':
            return ['v1', 'v2c', 'v3']
        if propname == 'zSnmpAuthType':
            return ['', 'MD5', 'SHA']
        if propname == 'zSnmpPrivType':
            return ['', 'DES', 'AES']
        return DeviceOrganizer.zenPropertyOptions(self, propname)
 def getSubDevices(self, filter=None):
     """get all the devices under and instance of a DeviceGroup"""
     return DeviceOrganizer.getSubDevices(self, filter, "ipaddresses")
 def snmpStatus(self, devrel=None):
     """aggregate snmp status for all devices in this group and below"""
     unused(devrel)
     return DeviceOrganizer.snmpStatus(self, "ipaddresses")
Beispiel #8
0
 def getSubDevices(self, filter=None):
     """get all the devices under and instance of a DeviceGroup"""
     return DeviceOrganizer.getSubDevices(self, filter, "ipaddresses")
Beispiel #9
0
 def snmpStatus(self, devrel=None):
     """aggregate snmp status for all devices in this group and below"""
     unused(devrel)
     return DeviceOrganizer.snmpStatus(self, "ipaddresses")