Package ZenModel :: Module Device
[hide private]
[frames] | no frames]

Module Device

source code

Classes [hide private]
  Device
Device is a base class that represents the idea of a single computer system that is made up of software running on hardware.
Functions [hide private]
Device
manage_createDevice(context, deviceName, devicePath='/Discovered', tag='', serialNumber='', zSnmpCommunity='', zSnmpPort=161, zSnmpVer='', rackSlot=0, productionState=1000, comments='', hwManufacturer='', hwProductName='', osManufacturer='', osProductName='', locationPath='', groupPaths=[], systemPaths=[], statusMonitors=['localhost'], performanceMonitor='localhost', discoverProto='snmp', priority=3)
Device factory creates a device and sets up its relations and collects its configuration.
source code
tuple of (community, port, version, device name)
findCommunity(context, ip, devicePath, community='', port=None, version=None)
Find the SNMP community and version for an p address using zSnmpCommunities.
source code
 
manage_addDevice(context, id, REQUEST=None)
Creates a device
source code
Variables [hide private]
  log = logging.getLogger("zen.Device")
  addDevice = DTMLFile('dtml/addDevice', globals())
  RELMETATYPES = ('ToOneRelationship', 'ToManyContRelationship',...
Function Details [hide private]

manage_createDevice(context, deviceName, devicePath='/Discovered', tag='', serialNumber='', zSnmpCommunity='', zSnmpPort=161, zSnmpVer='', rackSlot=0, productionState=1000, comments='', hwManufacturer='', hwProductName='', osManufacturer='', osProductName='', locationPath='', groupPaths=[], systemPaths=[], statusMonitors=['localhost'], performanceMonitor='localhost', discoverProto='snmp', priority=3)

source code 
Device factory creates a device and sets up its relations and collects its configuration. SNMP Community discovery also happens here. If an IP is passed for deviceName it will be used for collection and the device name will be set to the SNMP SysName (or ptr if SNMP Fails and ptr is valid)
Returns: Device

Variables Details [hide private]

RELMETATYPES

Value:
('ToOneRelationship', 'ToManyContRelationship', 'ToManyRelationship')