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

# Module Device

source code

Classes | [hide private]
NoNetMask
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]
getNetworkRoot(context, performanceMonitor) Return the default network root. | source code
checkDeviceExists(context, deviceName, ip, performanceMonitor) | source code
Device |
manage_createDevice(context, deviceName, devicePath="/Discovered", tag="", serialNumber="", zSnmpCommunity="", zSnmpPort=161, zSnmpVer="", rackSlot="", productionState=1000, comments="", hwManufacturer="", hwProductName="", osManufacturer="", osProductName="", locationPath="", groupPaths=[], systemPaths=[], performanceMonitor="localhost", discoverProto="snmp", priority=3, manageIp="", zProperties=None, title=None) 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 ip address using zSnmpCommunities. | source code
manage_addDevice(context, id, REQUEST=None) Creates a device | source code

Variables | [hide private]
| __doc__ = `"""Dev`...``
| log = `logging.getLogger("zen.Device")`
| addDevice = `DTMLFile('dtml/addDevice', globals())`

Function Details | [hide private]

### manage_createDevice(context, deviceName, devicePath="/Discovered", tag="", serialNumber="", zSnmpCommunity="", zSnmpPort=161, zSnmpVer="", rackSlot="", productionState=1000, comments="", hwManufacturer="", hwProductName="", osManufacturer="", osProductName="", locationPath="", groupPaths=[], systemPaths=[], performanceMonitor="localhost", discoverProto="snmp", priority=3, manageIp="", zProperties=None, title=None) | 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

### manage_addDevice(context, id, REQUEST=None) | source code
Creates a device Decorators: `@deprecated`

Variables Details | [hide private]

  ### __doc__ Value:
      """Device
      Base device (remote computer) class
      """