Trees | Index | Help |
|
---|
Package ZenModel :: Module 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 | |
---|---|
Find the snmp community for an ip address using zSnmpCommunities. | |
make a device | |
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__
|
addDevice
|
log
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:07 2007 | http://epydoc.sf.net |