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

Module ZenModel.Device

Device

Device is a base class that represents the idea of a single computer system that is made up of software running on hardware. It currently must be IP enabled but maybe this will change.

$Id: Device.py,v 1.121 2004/04/23 19:11:58 edahl Exp $
Classes
Device Device is a key class within zenoss.

Function Summary
  findCommunity(context, ip, devicePath, community, port, version)
Find the snmp community for an ip address using zSnmpCommunities.
  manage_addDevice(context, id, REQUEST)
make a device
  manage_createDevice(context, deviceName, devicePath, tag, serialNumber, zSnmpCommunity, zSnmpPort, zSnmpVer, rackSlot, productionState, comments, hwManufacturer, hwProductName, osManufacturer, osProductName, locationPath, groupPaths, systemPaths, statusMonitors, performanceMonitor, discoverProto, priority)
Device factory creates a device and sets up its relations and collects its configuration.

Variable Summary
str __version__ = '1.121'
DTMLFile addDevice = <App.special_dtml.DTMLFile object at 0x30942...
Logger log = <logging.Logger instance at 0x2d11d00>

Function Details

findCommunity(context, ip, devicePath, community='', port=None, version='v1')

Find the snmp community for an ip address using zSnmpCommunities.

manage_addDevice(context, id, REQUEST=None)

make a device

manage_createDevice(context, deviceName, devicePath='/Discovered', tag='', serialNumber='', zSnmpCommunity='', zSnmpPort=161, zSnmpVer='v1', 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. 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)

Variable Details

__version__

Type:
str
Value:
'1.121'                                                                

addDevice

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x30942b0>                        

log

Type:
Logger
Value:
<logging.Logger instance at 0x2d11d00>                                 

Generated by Epydoc 2.1 on Thu Aug 16 09:55:07 2007 http://epydoc.sf.net