| Trees | Indices | Help |
|
|---|
|
|
object --+
|
ZenModelBase.ZenModelBase --+
|
ExtensionClass.Base --+ |
| |
OFS.CopySupport.CopyContainer --+ |
| |
ZenRelations.RelCopySupport.RelCopyContainer --+ |
| |
ExtensionClass.Base --+ | |
| | |
OFS.CopySupport.CopyContainer --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Navigation --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Tabs --+ | |
| | |
Acquisition.Implicit --+ | |
| | |
Persistence.Persistent --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
webdav.EtagSupport.EtagSupport --+ | | | |
| | | | |
webdav.Lockable.LockableItem --+ | | |
| | | |
webdav.Resource.Resource --+ | | |
| | | |
webdav.Collection.Collection --+ | |
| | |
OFS.Traversable.Traversable --+ | |
| | |
OFS.ObjectManager.ObjectManager --+ |
| |
ExtensionClass.Base --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
OFS.CopySupport.CopySource --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Tabs --+ | |
| | |
OFS.Traversable.Traversable --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
AccessControl.Owned.Owned --+ | |
| | |
ZenRelations.ZItem.ZItem --+ | |
| | |
Acquisition.Implicit --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
AccessControl.PermissionMapping.RoleManager --+ | | |
| | | |
AccessControl.Role.RoleManager --+ | |
| | |
ZenRelations.PrimaryPathObjectManager.PrimaryPathManager --+ |
| |
ExtensionClass.Base --+ | |
| | |
App.Undo.UndoSupport --+ |
| |
ZenRelations.PrimaryPathObjectManager.PrimaryPathObjectManager --+ |
| |
object --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
OFS.ZDOM.Node --+ | | | |
| | | | |
OFS.ZDOM.Element --+ | | | |
| | | | |
OFS.ZDOM.ElementWithAttributes --+ | | |
| | | |
OFS.PropertyManager.PropertyManager --+ | |
| | |
ZenRelations.ZenPropertyManager.ZenPropertyManager --+ |
| |
ZenRelations.RelationshipManager.RelationshipManager --+
|
ExtensionClass.Base --+ |
| |
OFS.History.Historical --+
|
object --+ |
| |
ZenPacker.ZenPacker --+
|
ZenModelRM.ZenModelRM --+
|
DeviceResultInt.DeviceResultInt --+
|
object --+ |
| |
EventView.EventView --+
|
object --+ |
| |
RRDView.RRDView --+
|
ManagedEntity.ManagedEntity --+
|
Commandable.Commandable --+
|
object --+ |
| |
Lockable.Lockable --+
|
MaintenanceWindowable.MaintenanceWindowable --+
|
AdministrativeRoleable.AdministrativeRoleable --+
|
ZenMenuable.ZenMenuable --+
|
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.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list
>>> from Products.ZenModel.Device import manage_addDevice >>> manage_addDevice(devices, 'test') >>> devices.test.getRRDTemplates() [<RRDTemplate at /zport/dmd/Devices/rrdTemplates/Device>] |
|
||
|
|||
| list |
|
||
| int |
|
||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
| list |
|
||
|
|||
| list |
|
||
| list |
|
||
|
|||
| SnmpConnInfo object |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
|
|||
| string |
|
||
|
|||
|
|||
|
|||
| string |
|
||
|
|||
| string |
|
||
| string |
|
||
| list |
|
||
| string |
|
||
| list |
|
||
| PerformanceMonitor |
|
||
| string |
|
||
|
|||
| DateTime |
|
||
| string |
|
||
| DateTime |
|
||
| string |
|
||
|
|||
|
|||
| string |
|
||
| string |
|
||
| IpAddress |
|
||
| IpInterface |
|
||
| string |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
| boolean |
|
||
| boolean |
|
||
| string |
|
||
| int |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| HTML output |
|
||
|
|||
| boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| HTML text |
|
||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
meta_type = 'Device'
|
|||
portal_type = 'Device'
|
|||
event_key = 'Device'
|
|||
default_catalog = "deviceSearch"
|
|||
relationshipManagerPathRestriction = '/Devices'
|
|||
manageIp = ""
|
|||
productionState = 1000
|
|||
preMWProductionState = 1000
|
|||
snmpAgent = ""
|
|||
snmpDescr = ""
|
|||
snmpOid = ""
|
|||
snmpContact = ""
|
|||
snmpSysName = ""
|
|||
snmpLocation = ""
|
|||
rackSlot = ""
|
|||
comments = ""
|
|||
sysedgeLicenseMode = ""
|
|||
priority = 3
|
|||
_temp_device = False
|
|||
_properties = ManagedEntity._properties+({'id': 'manageIp', 't
|
|||
_relations = ManagedEntity._relations+(("deviceClass", ToOne(T
|
|||
factory_type_information = {'id': 'Device', 'meta_type': 'Devi
|
|||
security = ClassSecurityInfo()
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Return the name of this device. Default is titleOrId. |
Wrapper for DeviceClass.moveDevices. The primary reason to use this method instead of that one is that this one returns the new path to the device.
|
DEPRECATED
|
Returns all the templates bound to this Device
|
|
Returns the available DataSource options. DataSource options are used to populate the dropdown when adding a new DataSource and is a string. See RRDTemplate.RRDTemplate.getDataSourceOptions for more information.
|
Returns the uptime of this device
To Do: Performance enhancement: Should move import outside of method |
Override from object to handle lastPollSnmpUpTime and snmpLastCollection To Do: Not sure this is needed, see getLastPollSnmpUpTime and getSnmpLastCollection |
Override from PropertyManager to handle checks and ip creation
To Do: Not sure this is needed, see setSnmpLastCollection |
Trace the route to target using our routing table. Wrapper method of OperatingSystem.traceRoute
|
Return list of monitored DeviceComponents on this device. Wrapper method for getDeviceComponents |
Return a list of DeviceComponents on this device that should be considered for reporting.
Permission: ZEN_VIEW |
Return list of all DeviceComponents on this device.
Permission: ZEN_VIEW |
Return a list of all device components by walking relations. This is much slower then the normal getDeviceComponents method which uses the component index. It is used when rebuilding the device indexes. |
DEPRECATED - Return the hardware manufacturer name of this device.
To Do: Remove this method and remove the call from testDevice.py |
DEPRECATED - Return the productKey of the device hardware.
To Do: Remove this method and remove the call from testDevice.py |
DEPRECATED - Return the OS manufacturer name of this device.
To Do: Remove this method and remove the call from testDevice.py |
DEPRECATED - Return the OS product name of this device.
To Do: Remove this method and remove the call from testDevice.py |
DEPRECATED - Return the productKey of the device OS.
To Do: Remove this method and remove the call from testDevice.py |
DEPRECATED - Return the tag of the device HW.
To Do: remove this method and remove the call from testDevice.py |
DEPRECATED - Return the hardware serial number.
To Do: Remove this method and remove the call from testDevice.py |
Return the ips that our indirect routs point to which aren't currently connected to devices. To Do: Can be moved to zendisc.py |
Return the full location name ie /Location/SubLocation/Rack
Permission: ZEN_VIEW |
Return a link to the device's location.
Permission: ZEN_VIEW |
Return the system names for this device
Permission: ZEN_VIEW |
Return the system names for this device as a string
Permission: ZEN_VIEW |
Return the device group names for this device
Permission: ZEN_VIEW |
Return the device performance server
Permission: ZEN_VIEW |
Return the device performance server name
Permission: ZEN_VIEW |
Return DateTime of last change detected on this device.
Permission: ZEN_VIEW |
Return date string of last change detected on this device.
Permission: ZEN_VIEW |
Return DateTime of last SNMP collection on this device.
Permission: ZEN_VIEW |
Return date string of last SNMP collection on this device.
Permission: ZEN_VIEW |
Set the manage IP, if IP is not passed perform DNS lookup. If there is an error with the IP address format, the IP address will be reset to the result of a DNS lookup.
Permission: ZEN_ADMIN_DEVICE |
Return the management ip for this device.
Permission: ZEN_VIEW |
DEPRECATED - Return the management ipobject for this device.
To Do: This method may not be called anywhere, remove it. |
Return the management interface of a device based on its manageIp.
Permission: ZEN_VIEW |
Return the SNMP uptime
Permission: ZEN_VIEW |
Reset the snmp community using the zSnmpCommunities variable. Permission: ZEN_CHANGE_DEVICE |
Update the device relation and attributes, if passed. If any parameter is not passed it will not be updated; the value of any unpassed device propeties will remain the same. @permission: ZEN_CHANGE_DEVICE Keyword arguments: title -- device title [string] tag -- tag number [string] serialNumber -- serial number [string] zProperties -- dict of zProperties [dict] zSnmpCommunity -- snmp community (overrides corresponding value is zProperties) [string] zSnmpPort -- snmp port (overrides corresponding value in zProperties) [string] zSnmpVer -- snmp version (overrides corresponding value in zProperties) [string] rackSlot -- rack slot number [integer] productionState -- production state of device [integer] priority -- device priority [integer] comment -- device comment [string] hwManufacturer -- hardware manufacturer [string] hwProductName -- hardware product name [string] osManufacturer -- operating system manufacturer [string] osProductName -- operating system name [string] locationPath -- location [string] groupPaths -- group paths [list] systemPaths -- systen paths [list] performanceMonitor -- collector name [string] |
Edit the device relation and attributes. This method will update device properties because of the default values that are passed. Calling this method using a **kwargs dict will result in default values being set for many device properties. To update only a subset of these properties use updateDevice(**kwargs).
Permission: ZEN_CHANGE_DEVICE |
Changes the title to newTitle and reindexes the object
|
Set the device's production state.
Permission: ZEN_CHANGE_DEVICE |
Set the device's priority
Permission: ZEN_CHANGE_DEVICE |
Set the changed datetime for this device.
Permission: ZEN_CHANGE_DEVICE |
Set the last time snmp collection occurred.
Permission: ZEN_CHANGE_DEVICE |
DEPRECATED - Add either a hardware or software manufacturer to the database. Permission: ZEN_CHANGE_DEVICE To Do: Doesn't really do work on a device object. Already exists on ZDeviceLoader |
DEPRECATED - Adds a new hardware product Permission: ZEN_CHANGE_DEVICE To Do: Doesn't really do work on a device object. Already exists on ZDeviceLoader |
DEPRECATED Adds a new os product Permission: ZEN_CHANGE_DEVICE To Do: Doesn't really do work on a device object. Already exists on ZDeviceLoader |
Set the location of a device. If the location is new it will be created. Permission: ZEN_CHANGE_DEVICE |
DEPRECATED Add a new location and relate it to this device To Do: Doesn't really do work on a device object. Already exists on ZDeviceLoader |
Set the performance monitor for this device. If newPerformanceMonitor is passed in create it Permission: ZEN_CHANGE_DEVICE |
Set the list of groups for this device based on a list of paths Permission: ZEN_CHANGE_DEVICE |
DEPRECATED? Add a device group to the database and this device Permission: ZEN_CHANGE_DEVICE To Do: Already exists on ZDeviceLoader |
Set a list of systems to this device using their system paths Permission: ZEN_CHANGE_DEVICE |
DEPRECATED? Add a systems to this device using its system path Permission: ZEN_CHANGE_DEVICE To Do: Already exists on ZDeviceLoader |
Set the terminal server of this device
Permission: ZEN_CHANGE_DEVICE |
Set related objects to this device
|
Support DeviceResultInt mixin class. Returns itself
Permission: ZEN_VIEW |
Get the value of the snmpUpTime status object Permission: ZEN_MANAGE_DEVICE_STATUS |
Set the value of the snmpUpTime status object Permission: ZEN_MANAGE_DEVICE_STATUS |
Apply zProperties taken for the product context passed in.
|
Collect the configuration of this device AKA Model Device
Permission: ZEN_MANAGE_DEVICE To Do: generateEvents param is not being used. |
Delete device from the database NB: deleteHistory is disabled for the 2.2 release. In some circumstances it was causing many subprocesses to be spawned and creating a gridlock situation. Permission: ZEN_ADMIN_DEVICE |
Delete this device's heartbeats.
Permission: ZEN_MANAGE_DEVICE |
Rename device from the DMD. Disallow assignment of an id that already exists in the system.
Permission: ZEN_ADMIN_DEVICE |
Rename the directory that holds performance data for this device.
|
Override so ips get indexed on move.
|
Override so ips get unindexed as well.
|
IpAddresses aren't contained underneath Device, so manage_beforeDelete won't propagate. Thus we must remove those links explicitly. |
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed. |
Returns the tales environment used to evaluate the command |
Returns a URL to redirect to after a command has executed used by Commandable |
Returns a list of possible options for a given zProperty |
This will result in a push of all the devices to live collectors Permission: ZEN_MANAGE_DEVICE |
This will bind available templates to the zDeviceTemplates Permission: ZEN_EDIT_LOCAL_TEMPLATES |
Deletes the local zProperty, zDeviceTemplates Permission: ZEN_EDIT_LOCAL_TEMPLATES |
Create a local template on a device Permission: ZEN_EDIT_LOCAL_TEMPLATES |
Returns all Links on this Device's interfaces Permission: ZEN_VIEW |
Gets a link to this device, plus an icon
Permission: ZEN_VIEW |
Get a list of dictionaries containing everything needed to match processes against the global list of process classes. Used by process modeler plugins. |
|
|||
_properties
|
_relations
|
factory_type_information
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 14 12:01:27 2010 | http://epydoc.sourceforge.net |