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

Type Device

                     AdministrativeRoleable --+
                                              |
                                Commandable --+
                                              |
                                 object --+   |
                                          |   |
                                   Lockable --+
                                              |
                      MaintenanceWindowable --+
                                              |
                        DeviceResultInt --+   |
                                          |   |
                             object --+   |   |
                                      |   |   |
                              EventView --+   |
                                          |   |
                             object --+   |   |
                                      |   |   |
                                RRDView --+   |
                                          |   |
                     object --+           |   |
                              |           |   |
                           Base --+       |   |
                                  |       |   |
                         Historical --+   |   |
                                      |   |   |
     object --+                       |   |   |
              |                       |   |   |
           Base --+                   |   |   |
                  |                   |   |   |
EtagSupport --+   |                   |   |   |
              |   |                   |   |   |
   LockableItem --+                   |   |   |
                  |                   |   |   |
           Resource --+               |   |   |
                      |               |   |   |
             Collection --+           |   |   |
                          |           |   |   |
         object --+       |           |   |   |
                  |       |           |   |   |
               Base --+   |           |   |   |
                      |   |           |   |   |
          CopyContainer --+           |   |   |
                          |           |   |   |
         object --+       |           |   |   |
                  |       |           |   |   |
               Base --+   |           |   |   |
                      |   |           |   |   |
             Navigation --+           |   |   |
                          |           |   |   |
         object --+       |           |   |   |
                  |       |           |   |   |
               Base --+   |           |   |   |
                      |   |           |   |   |
         object --+   |   |           |   |   |
                  |   |   |           |   |   |
         Persistent --+   |           |   |   |
                      |   |           |   |   |
             Persistent --+           |   |   |
                          |           |   |   |
         object --+       |           |   |   |
                  |       |           |   |   |
               Base --+   |           |   |   |
                      |   |           |   |   |
                   Tabs --+           |   |   |
                          |           |   |   |
            Traversable --+           |   |   |
                          |           |   |   |
         object --+       |           |   |   |
                  |       |           |   |   |
               Base --+   |           |   |   |
                      |   |           |   |   |
               Acquirer --+           |   |   |
                          |           |   |   |
              ObjectManager --+       |   |   |
                              |       |   |   |
         object --+           |       |   |   |
                  |           |       |   |   |
               Base --+       |       |   |   |
                      |       |       |   |   |
        RoleManager --+       |       |   |   |
                      |       |       |   |   |
            RoleManager --+   |       |   |   |
                          |   |       |   |   |
         object --+       |   |       |   |   |
                  |       |   |       |   |   |
               Base --+   |   |       |   |   |
                      |   |   |       |   |   |
     object --+       |   |   |       |   |   |
              |       |   |   |       |   |   |
           Base --+   |   |   |       |   |   |
                  |   |   |   |       |   |   |
         CopySource --+   |   |       |   |   |
                      |   |   |       |   |   |
     object --+       |   |   |       |   |   |
              |       |   |   |       |   |   |
           Base --+   |   |   |       |   |   |
                  |   |   |   |       |   |   |
              Owned --+   |   |       |   |   |
                      |   |   |       |   |   |
     object --+       |   |   |       |   |   |
              |       |   |   |       |   |   |
           Base --+   |   |   |       |   |   |
                  |   |   |   |       |   |   |
               Tabs --+   |   |       |   |   |
                      |   |   |       |   |   |
        Traversable --+   |   |       |   |   |
                      |   |   |       |   |   |
                  ZItem --+   |       |   |   |
                          |   |       |   |   |
         object --+       |   |       |   |   |
                  |       |   |       |   |   |
               Base --+   |   |       |   |   |
                      |   |   |       |   |   |
               Acquirer --+   |       |   |   |
                          |   |       |   |   |
         PrimaryPathManager --+       |   |   |
                              |       |   |   |
         object --+           |       |   |   |
                  |           |       |   |   |
               Base --+       |       |   |   |
                      |       |       |   |   |
          CopyContainer --+   |       |   |   |
                          |   |       |   |   |
           RelCopyContainer --+       |   |   |
                              |       |   |   |
             object --+       |       |   |   |
                      |       |       |   |   |
                   Base --+   |       |   |   |
                          |   |       |   |   |
                UndoSupport --+       |   |   |
                              |       |   |   |
       PrimaryPathObjectManager --+   |   |   |
                                  |   |   |   |
             object --+           |   |   |   |
                      |           |   |   |   |
                   Base --+       |   |   |   |
                          |       |   |   |   |
           Node --+       |       |   |   |   |
                  |       |       |   |   |   |
            Element --+   |       |   |   |   |
                      |   |       |   |   |   |
  ElementWithAttributes --+       |   |   |   |
                          |       |   |   |   |
            PropertyManager --+   |   |   |   |
                              |   |   |   |   |
             ZenPropertyManager --+   |   |   |
                                  |   |   |   |
                RelationshipManager --+   |   |
                                      |   |   |
                         object --+   |   |   |
                                  |   |   |   |
                       ZenModelBase --+   |   |
                                      |   |   |
                         object --+   |   |   |
                                  |   |   |   |
                          ZenPacker --+   |   |
                                      |   |   |
                             ZenModelRM --+   |
                                          |   |
                              ManagedEntity --+
                                              |
                                             Device

Known Subclasses:
TerminalServer, UBRRouter

Device is a key class within zenoss. It represents the combination of computer hardware running an operating system.
Method Summary
  __init__(self, id)
  __getattr__(self, name)
  addDeviceGroup(self, newDeviceGroupPath, REQUEST)
add a device group to the database and this device
  addLocalTemplate(self, id, REQUEST)
Create a local template on a device
  addLocation(self, newLocationPath, REQUEST)
Add a new location and relate it to this device
  addManufacturer(self, newHWManufacturerName, newSWManufacturerName, REQUEST)
Add a manufacturer to the database
  addStatusMonitor(self, newStatusMonitor, REQUEST)
add new status monitor to the database and this device
  addSystem(self, newSystemPath, REQUEST)
add a systems to this device using its system path
  applyDataMap(self, datamap, relname, compname, modname)
Apply a datamap passed as a list of dicts through XML-RPC.
  applyProductContext(self)
Apply zProperties inherited from Product Contexts.
  availability(self, *args, **kw)
  bindTemplates(self, ids, REQUEST)
This will bind available templates to the zDeviceTemplates
  cacheComponents(self)
Read current RRD values for all of a device's components
  collectDevice(self, setlog, REQUEST, generateEvents)
collect the configuration of this device.
  deleteDevice(self, REQUEST)
Delete device from the DMD
  device(self)
support DeviceResultInt mixin class
  exportXmlHook(self, ofile, ignorerels)
Add export of our child objects.
  followNextHopIps(self)
Return the ips that our indirect routs point to which aren't currently connected to devices.
  getAvailableTemplates(self)
Returns all available templates for this device
  getDataForJSON(self)
returns data ready for serialization
  getDataSourceCommands(self)
Return list of command definitions in the form (device, user, pass [(cmdinfo,),...])
  getDataSourceOptions(self)
Returns a list of the available datasource options as a list of (display name, dsOption)
  getDeviceComponents(self)
Return list of all DeviceComponents on this device.
  getDeviceGroupNames(self)
get the device group names for this device
  getExpandedLinks(self)
Return the expanded zComment property
  getHTMLEventSummary(self, severity)
  getHWManufacturerName(self)
Return the hardware manufacturer name of this device.
  getHWProductKey(self)
Get our HW product by productKey.
  getHWProductName(self)
Return the hardware product name of this device.
  getHWSerialNumber(self)
Return our hardware serial number.
  getLastChange(self)
Return DateTime of last change detected on this device.
  getLastChangeString(self)
Return date string of last change detected on this device.
  getLastPollSnmpUpTime(self)
set the value of the snmpUpTime status object
  getLocationLink(self)
Return an a link to the devices location.
  getLocationName(self)
return the full location name ie /Location/SubLocation/Rack
  getManageInterface(self)
Return the management interface of a device based on its manageIp.
  getManageIp(self)
Return the management ip for this device.
  getManageIpObj(self)
Return the management ipobject for this device.
  getMonitoredComponents(self)
Return list of monitored DeviceComponents on this device.
  getNetworkGraph(self)
get a graph representing the relative routers as well as the networks
  getOSManufacturerName(self)
Return the OS manufacturer name of this device.
  getOSProcessConf(self)
Return process monitoring configuration.
  getOSProductKey(self)
Get our OS product by productKey.
  getOSProductName(self)
Return the OS product name of this device.
  getPeerDeviceClassNames(self)
build a list of all device paths that have the python class pyclass
  getPerformanceServer(self)
return device performance server
  getPerformanceServerName(self)
return device performance server
  getPingStatusString(self)
Return the pingStatus as a string
  getPriorityString(self)
Return the device priority as a string.
  getProductionStateString(self)
Return the prodstate as a string.
  getRouterGraph(self)
get a graph representing the relative routers
  getRRDNames(self)
  getRRDTemplate(self)
  getRRDTemplates(self)
  getSnmpConnInfo(self)
  getSnmpLastCollection(self)
  getSnmpLastCollectionString(self)
  getSnmpOidTargets(self)
Return information for snmp collection on this device in the form...
  getSnmpStatusString(self)
Return the snmpStatus as a string
  getStatusMonitorNames(self)
return status monitor names
  getSystemNames(self)
get the system names for this device
  getSystemNamesString(self, sep)
get the system names for this device as a string
  getUrlForUserCommands(self)
Return url for page which manages user commands
  getUserCommandEnvironment(self)
Get the environment that provides context for the tales evaluation of a UserCommand.
  getUserCommandTargets(self)
Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed.
  getXmlRpcTargets(self)
Return information for xmlrpc collection on this device in the form...
  havePydot(self)
return true if pydot is installed.
  manage_afterAdd(self, item, container)
Device only propagates afterAdd if it is the added object.
  manage_afterClone(self, item)
Not really sure when this is called.
  manage_beforeDelete(self, item, container)
Device only propagates beforeDelete if we are being deleted or copied.
  manage_deleteHeartbeat(self, REQUEST)
Delete this device's heartbeats.
  manage_editDevice(self, tag, serialNumber, zSnmpCommunity, zSnmpPort, zSnmpVer, rackSlot, productionState, comments, hwManufacturer, hwProductName, osManufacturer, osProductName, locationPath, groupPaths, systemPaths, statusMonitors, performanceMonitor, priority, REQUEST)
edit device relations and attributes
  manage_resequenceRRDGraphs(self, templateId, seqmap, origseq, REQUEST)
Reorder the sequecne of the RRDGraphs.
  manage_snmpCommunity(self)
Reset the snmp community using the zSnmpCommunities variable.
  monitorDevice(self)
Is device production state >= zProdStateThreshold.
  pastSnmpMaxFailures(self)
Device has more SNMP failures than maxFailures on its status mon.
  pushConfig(self, REQUEST)
This will result in a push of all the devices to live collectors
  removeZDeviceTemplates(self, REQUEST)
Deletes the local zProperty, zDeviceTemplates
  renameDevice(self, newId, REQUEST)
Rename device from the DMD
  setGroups(self, groupPaths)
set the list of groups for this device based on a list of paths
  setHWProduct(self, newHWProductName, hwManufacturer, REQUEST)
set the productName of this device
  setHWProductKey(self, prodKey)
Set our HW product by productKey.
  setHWSerialNumber(self, number)
Set our hardware serial number.
  setLastChange(self, value)
Set the changed datetime for this device.
  setLastPollSnmpUpTime(self, value)
set the value of the snmpUpTime status object
  setLocation(self, locationPath, REQUEST)
set the location of a device within a generic location path
  setManageIp(self, ip, REQUEST)
Set the manage ip, if ip is not passed perform DNS lookup.
  setOSProduct(self, newOSProductName, osManufacturer, REQUEST)
set the productName of this device
  setOSProductKey(self, prodKey)
Set our OS product by productKey.
  setPerformanceMonitor(self, performanceMonitor, newPerformanceMonitor, REQUEST)
set the performance monitor for this device if newPerformanceMonitor is passed in create it
  setPriority(self, priority, REQUEST)
Set a device's priority as an integer.
  setProdState(self, state, REQUEST)
Set a device's production state as an integer.
  setSnmpLastCollection(self, value)
Set the last time snmp collection occurred.
  setStatusMonitors(self, statusMonitors)
Set Status Monitor by list statusMonitors
  setSystems(self, systemPaths)
set a list of systems to this device using their system paths
  setTerminalServer(self, termservername)
  snmpAgeCheck(self, hours)
  snmpMonitorDevice(self)
Is this device subject to SNMP monitoring?
  sysUpTime(self)
  traceRoute(self, target, ippath)
  uptimeStr(self)
return a textual representation of the snmp uptime
  zenPropertyOptions(self, propname)
Provide a set of default options for a ZProperty
Inherited from ZenModelRM: changePythonClass, creator, editableDeviceList, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects
Inherited from ZenModelBase: __call__, __hash__, all_meta_types, breadCrumbs, callZenScreen, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, view, visibleCustPropertyMap, yesterdayDate, zenpathjoin, zenpathsplit, zenScreenUrl, zentinelTabs
Inherited from RelationshipManager: addRelation, buildRelations, cb_isMoveable, checkRelations, exportXml, exportXmlProperties, exportXmlRelationships, getRelationshipManagerId, getRelationshipNames, getRelationships, lookupSchema, manage_addRelation, manage_removeRelation, manage_workspace, removeRelation
Inherited from RelCopyContainer: manage_linkObjects, manage_renameObject, manage_unlinkObjects
Inherited from CopyContainer: cb_dataItems, cb_dataValid, manage_clone, manage_CopyContainerAllItems, manage_CopyContainerFirstItem, manage_copyObjects, manage_cutObjects, manage_pasteObjects, manage_renameObjects, validClipData
Inherited from ObjectManager: __class_init__, __getitem__, _checkId, filtered_meta_types, hasObject, list_imports, manage_delObjects, manage_exportObject, manage_FTPlist, manage_FTPstat, manage_hasId, manage_importObject, objectIds, objectIds_d, objectItems, objectItems_d, objectMap, objectMap_d, objectValues, objectValues_d, superValues, tpValues
Inherited from Navigation: manage_zmi_logout
Inherited from Tabs: class_manage_path, filtered_manage_options, tabs_path_default, tabs_path_info
Inherited from Persistent: __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __reduce__, __setattr__, __setstate__
Inherited from Collection: dav__init, DELETE, HEAD, listDAVObjects, PUT
Inherited from Resource: COPY, dav__simpleifhandler, dav__validate, LOCK, manage_DAVget, MKCOL, MOVE, OPTIONS, PROPFIND, PROPPATCH, TRACE, UNLOCK
Inherited from LockableItem: wl_clearLocks, wl_delLock, wl_getLock, wl_hasLock, wl_isLocked, wl_lockItems, wl_lockmapping, wl_lockTokens, wl_lockValues, wl_setLock
Inherited from EtagSupport: http__etag, http__parseMatchList, http__processMatchHeaders, http__refreshEtag
Inherited from Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path
Inherited from PrimaryPathManager: getPrimaryId, getPrimaryParent, getPrimaryPath, getPrimaryUrlPath, primaryAq
Inherited from ZItem: __len__, __repr__, getId, manage_editedDialog, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL
Inherited from CopySource: cb_isCopyable, cb_userHasCopyOrMovePermission
Inherited from Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_fixupOwnershipAfterAdd, owner_info, userCanTakeOwnership
Inherited from RoleManager: ac_inherited_permissions, access_debug_info, acquiredRolesAreUsedBy, get_local_roles, get_local_roles_for_userid, get_valid_userids, has_local_roles, manage_access, manage_defined_roles, manage_editRoles, manage_role, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, valid_roles, validate_roles, validRoles
Inherited from RoleManager: manage_getPermissionMapping
Inherited from UndoSupport: get_request_var_or_attr, manage_undo_transactions, undoable_transactions
Inherited from ZenPropertyManager: deleteZenProperty, isLocal, manage_editProperties, saveZenProperties, setZenProperty, zenPropertyIds, zenPropertyItems, zenPropertyMap, zenPropertyPath, zenPropertyString, zenPropertyType, zenPropIsPassword
Inherited from PropertyManager: getProperty, getPropertyType, hasProperty, manage_addProperty, manage_changeProperties, manage_changePropertyTypes, manage_delProperties, propdict, propertyIds, propertyItems, propertyLabel, propertyMap, propertyValues, valid_property_id
Inherited from ElementWithAttributes: getAttribute, getAttributeNode, getAttributes
Inherited from Element: getChildNodes, getElementsByTagName, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getParentNode, getPreviousSibling, getTagName
Inherited from Node: getNodeValue, getOwnerDocument, hasChildNodes
Inherited from Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy
Inherited from ZenPacker: addToZenPack, findObject
Inherited from DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceLink, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, getXmlRpcStatus, getXmlRpcStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked
Inherited from EventView: getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getJSONEventsInfo, getJSONFields, getJSONHistoryEventsInfo, getStatus, getStatusCssClass, getStatusImgSrc, getStatusString, manage_ackBatchEvents, manage_ackEvents, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents
Inherited from RRDView: cacheRRDValue, getDefaultGraphs, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDGraphUrl, getRRDPaths, getRRDSum, getRRDTemplateByName, getRRDTemplateName, getRRDValue, getRRDValues, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore
Inherited from Commandable: compile, doCommandForTarget, getAqChainForUserCommands, getUserCommand, getUserCommands, manage_addUserCommand, manage_deleteUserCommand, manage_doUserCommand, manage_editUserCommand, redirectToUserCommands, write
Inherited from Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag
Inherited from MaintenanceWindowable: manage_addMaintenanceWindow, manage_deleteMaintenanceWindow
Inherited from AdministrativeRoleable: manage_addAdministrativeRole, manage_deleteAdministrativeRole, manage_editAdministrativeRoles
Inherited from Base: __getnewargs__
Inherited from object: __reduce_ex__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('Change Device', ('setStatusMonit...
PermissionRole addDeviceGroup__roles__ = <PermissionRole object at 0x32...
PermissionRole addManufacturer__roles__ = <PermissionRole object at 0x3...
PermissionRole addStatusMonitor__roles__ = <PermissionRole object at 0x...
PermissionRole addSystem__roles__ = <PermissionRole object at 0x320d038...
PermissionRole collectDevice__roles__ = <PermissionRole object at 0x320...
str comments = ''
str default_catalog = 'deviceSearch'
PermissionRole deleteDevice__roles__ = <PermissionRole object at 0x320d...
PermissionRole device__roles__ = <PermissionRole object at 0x320d080>
str event_key = 'Device'
tuple factory_type_information = ({'product': 'ZenModel', 'des...
PermissionRole getDeviceGroupNames__roles__ = <PermissionRole object at...
PermissionRole getLastChange__roles__ = <PermissionRole object at 0x320...
PermissionRole getLastChangeString__roles__ = <PermissionRole object at...
PermissionRole getLastPollSnmpUpTime__roles__ = <PermissionRole object ...
PermissionRole getLocationName__roles__ = <PermissionRole object at 0x3...
PermissionRole getManageInterface__roles__ = <PermissionRole object at ...
PermissionRole getManageIp__roles__ = <PermissionRole object at 0x320d0...
PermissionRole getNetworkGraph__roles__ = <PermissionRole object at 0x3...
PermissionRole getPerformanceServer__roles__ = <PermissionRole object a...
PermissionRole getPerformanceServerName__roles__ = <PermissionRole obje...
PermissionRole getRouterGraph__roles__ = <PermissionRole object at 0x32...
PermissionRole getSnmpLastCollection__roles__ = <PermissionRole object ...
PermissionRole getSnmpLastCollectionString__roles__ = <PermissionRole o...
PermissionRole getStatusMonitorNames__roles__ = <PermissionRole object ...
PermissionRole getSystemNames__roles__ = <PermissionRole object at 0x32...
PermissionRole getSystemNamesString__roles__ = <PermissionRole object a...
tuple manage_afterAdd__roles__ = ('Manager',)
tuple manage_afterClone__roles__ = ('Manager',)
tuple manage_beforeDelete__roles__ = ('Manager',)
tuple manage_deleteHeartbeat__roles__ = ('Manager',)
PermissionRole manage_editDevice__roles__ = <PermissionRole object at 0...
PermissionRole manage_resequenceRRDGraphs__roles__ = <PermissionRole ob...
PermissionRole manage_snmpCommunity__roles__ = <PermissionRole object a...
str manageIp = ''
str meta_type = 'Device'
tuple meta_types = ()
str portal_type = 'Device'
int previousProductionState = 1000                                                                  
int priority = 3                                                                     
int productionState = 1000                                                                  
int rackSlot = 0                                                                     
str relationshipManagerPathRestriction = '/Devices'
PermissionRole renameDevice__roles__ = <PermissionRole object at 0x320d...
PermissionRole setGroups__roles__ = <PermissionRole object at 0x320d038...
PermissionRole setHWProduct__roles__ = <PermissionRole object at 0x320d...
PermissionRole setLastChange__roles__ = <PermissionRole object at 0x320...
PermissionRole setLastPollSnmpUpTime__roles__ = <PermissionRole object ...
PermissionRole setLocation__roles__ = <PermissionRole object at 0x320d0...
PermissionRole setManageIp__roles__ = <PermissionRole object at 0x320d0...
PermissionRole setOSProduct__roles__ = <PermissionRole object at 0x320d...
PermissionRole setPerformanceMonitor__roles__ = <PermissionRole object ...
PermissionRole setPriority__roles__ = <PermissionRole object at 0x320d0...
PermissionRole setProdState__roles__ = <PermissionRole object at 0x320d...
PermissionRole setSnmpLastCollection__roles__ = <PermissionRole object ...
PermissionRole setStatusMonitors__roles__ = <PermissionRole object at 0...
PermissionRole setSystems__roles__ = <PermissionRole object at 0x320d03...
PermissionRole setTerminalServer__roles__ = <PermissionRole object at 0...
str snmpAgent = ''
str snmpContact = ''
str snmpDescr = ''
str snmpLocation = ''
str snmpOid = ''
str snmpSysName = ''
str sysedgeLicenseMode = ''
PermissionRole uptimeStr__roles__ = <PermissionRole object at 0x320d080...
Inherited from ManagedEntity: monitor, snmpindex
Inherited from ZenModelRM: getDmdKey__roles__, isInTree, primarySortKey__roles__, rename__roles__, viewName__roles__, zmanage_editProperties__roles__
Inherited from ZenModelBase: breadCrumbs__roles__, getPrimaryDmdId__roles__, helpLink__roles__, index_html, manage_deleteObjects__roles__, sub_meta_types, view__roles__, zentinelTabs__roles__
Inherited from RelationshipManager: manage_addRelation__roles__, manage_main, manage_main__roles__, manage_options, manage_removeRelation__roles__, manage_workspace__roles__
Inherited from CopyContainer: __implemented__, __providedBy__, __provides__, manage_clone__roles__, manage_CopyContainerAllItems__roles__, manage_CopyContainerFirstItem__roles__, manage_copyObjects__roles__, manage_cutObjects__roles__, manage_pasteObjects__roles__, manage_renameForm, manage_renameForm__roles__, manage_renameObject__roles__, manage_renameObjects__roles__
Inherited from ObjectManager: __roles__, isAnObjectManager, isPrincipiaFolderish, manage_addProduct, manage_delObjects__roles__, manage_exportObject__roles__, manage_FTPlist__roles__, manage_FTPstat__roles__, manage_hasId__roles__, manage_importExportForm, manage_importExportForm__roles__, manage_importObject__roles__, manage_index_main, manage_index_main__roles__, objectIds__roles__, objectItems__roles__, objectValues__roles__
Inherited from Navigation: manage, manage__roles__, manage_copyright, manage_copyright__roles__, manage_form_title, manage_form_title__roles__, manage_menu, manage_menu__roles__, manage_page_footer, manage_page_footer__roles__, manage_page_header, manage_page_header__roles__, manage_page_style.css, manage_page_style.css__roles__, manage_top_frame, manage_top_frame__roles__, manage_zmi_logout__roles__, manage_zmi_prefs, manage_zmi_prefs__roles__, zope_quick_start, zope_quick_start__roles__
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__roles__
Inherited from Collection: __dav_collection__
Inherited from Resource: __dav_resource__, __http_methods__, COPY__roles__, DELETE__roles__, HEAD__roles__, listDAVObjects__roles__, LOCK__roles__, manage_DAVget__roles__, MOVE__roles__, OPTIONS__roles__, PROPFIND__roles__, PROPPATCH__roles__, TRACE__roles__, UNLOCK__roles__
Inherited from LockableItem: wl_clearLocks__roles__, wl_delLock__roles__, wl_getLock__roles__, wl_isLocked__roles__, wl_isLockedByUser__roles__, wl_lockItems__roles__, wl_lockmapping__roles__, wl_lockTokens__roles__, wl_lockValues__roles__, wl_setLock__roles__
Inherited from EtagSupport: __implements__
Inherited from Traversable: absolute_url__roles__, absolute_url_path__roles__, getPhysicalPath__roles__, getPhysicalRoot, getPhysicalRoot__roles__, restrictedTraverse__roles__, unrestrictedTraverse__roles__, virtual_url_path__roles__
Inherited from ZItem: __allow_access_to_unprotected_subobjects__, __name__, __propsets__, getId__roles__, icon, id, isTopLevelPrincipiaApplicationObject, REQUEST, title
Inherited from Owned: changeOwnership__roles__, getOwner__roles__, getOwnerTuple__roles__, getWrappedOwner__roles__, manage_changeOwnershipType__roles__, manage_fixupOwnershipAfterAdd__roles__, manage_owner, manage_owner__roles__, manage_takeOwnership__roles__, owner_info__roles__
Inherited from RoleManager: __ac_local_roles__, __ac_roles__, ac_inherited_permissions__roles__, access_debug_info__roles__, aclAChecked, aclEChecked, aclPChecked, acquiredRolesAreUsedBy__roles__, manage_access__roles__, manage_acquiredForm, manage_acquiredForm__roles__, manage_acquiredPermissions__roles__, manage_addLocalRoles__roles__, manage_changePermissions__roles__, manage_defined_roles__roles__, manage_delLocalRoles__roles__, manage_editLocalRoles, manage_editLocalRoles__roles__, manage_editRoles__roles__, manage_listLocalRoles, manage_listLocalRoles__roles__, manage_permission__roles__, manage_permissionForm, manage_permissionForm__roles__, manage_role__roles__, manage_roleForm, manage_roleForm__roles__, manage_setLocalRoles__roles__, permission_settings__roles__, permissionMappingPossibleValues, permissionsOfRole__roles__, rolesOfPermission__roles__, selectedRoles, smallRolesWidget, userdefined_roles__roles__
Inherited from RoleManager: manage_getPermissionMapping__roles__, manage_setPermissionMapping__roles__
Inherited from UndoSupport: manage_undo_transactions__roles__, manage_UndoForm, manage_UndoForm__roles__, undoable_transactions__roles__
Inherited from ZenPropertyManager: manage_editProperties__roles__, manage_propertiesForm, manage_propertiesForm__roles__
Inherited from PropertyManager: getProperty__roles__, getPropertyType__roles__, hasProperty__roles__, manage_addProperty__roles__, manage_changeProperties__roles__, manage_changePropertyTypes__roles__, manage_delProperties__roles__, manage_propertyTypeForm, manage_propertyTypeForm__roles__, propdict__roles__, propertyIds__roles__, propertyItems__roles__, propertyLabel__roles__, propertyMap__roles__, propertysheets, propertyValues__roles__, valid_property_id__roles__
Inherited from Historical: HistoricalRevisions, manage_afterHistoryCopy__roles__, manage_beforeHistoryCopy__roles__, manage_change_history__roles__, manage_change_history_page, manage_change_history_page__roles__, manage_historicalComparison__roles__, manage_historyCompare__roles__, manage_historyCopy__roles__
Inherited from ZenPacker: security
Inherited from DeviceResultInt: getDeviceClassName__roles__, getDeviceClassPath__roles__, getDeviceIp__roles__, getDeviceIpAddress__roles__, getDeviceLink__roles__, getDeviceMacaddress__roles__, getDeviceName__roles__, getDeviceUrl__roles__, getPingStatus__roles__, getPingStatusNumber__roles__, getProdState__roles__, getSnmpStatus__roles__, getSnmpStatusNumber__roles__, getXmlRpcStatus__roles__, getXmlRpcStatusNumber__roles__, isResultLockedFromDeletion__roles__, isResultLockedFromUpdates__roles__, sendEventWhenResultBlocked__roles__
Inherited from EventView: manage_ackBatchEvents__roles__, manage_ackEvents__roles__, manage_createEventMap__roles__, manage_deleteBatchEvents__roles__, manage_deleteEvents__roles__, manage_setEventStates__roles__, manage_undeleteBatchEvents__roles__, manage_undeleteEvents__roles__
Inherited from Commandable: defaultTimeout, getUserCommands__roles__, manage_addUserCommand__roles__, manage_deleteUserCommand__roles__, manage_doUserCommand__roles__, manage_editUserCommand__roles__
Inherited from Lockable: modelerLock, sendEventWhenBlockedFlag

Instance Method Details

addDeviceGroup(self, newDeviceGroupPath, REQUEST=None)

add a device group to the database and this device

addLocalTemplate(self, id, REQUEST=None)

Create a local template on a device

addLocation(self, newLocationPath, REQUEST=None)

Add a new location and relate it to this device

addManufacturer(self, newHWManufacturerName=None, newSWManufacturerName=None, REQUEST=None)

Add a manufacturer to the database

addStatusMonitor(self, newStatusMonitor=None, REQUEST=None)

add new status monitor to the database and this device

addSystem(self, newSystemPath, REQUEST=None)

add a systems to this device using its system path

applyDataMap(self, datamap, relname='', compname='', modname='')

Apply a datamap passed as a list of dicts through XML-RPC.

applyProductContext(self)

Apply zProperties inherited from Product Contexts.

bindTemplates(self, ids=(), REQUEST=None)

This will bind available templates to the zDeviceTemplates

cacheComponents(self)

Read current RRD values for all of a device's components

collectDevice(self, setlog=True, REQUEST=None, generateEvents=False)

collect the configuration of this device.

deleteDevice(self, REQUEST=None)

Delete device from the DMD

device(self)

support DeviceResultInt mixin class
Overrides:
ZenModel.ManagedEntity.ManagedEntity.device

exportXmlHook(self, ofile, ignorerels)

Add export of our child objects.

followNextHopIps(self)

Return the ips that our indirect routs point to which aren't currently connected to devices.

getAvailableTemplates(self)

Returns all available templates for this device

getDataForJSON(self)

returns data ready for serialization

getDataSourceCommands(self)

Return list of command definitions in the form (device, user, pass [(cmdinfo,),...])
Overrides:
ZenModel.RRDView.RRDView.getDataSourceCommands

getDataSourceOptions(self)

Returns a list of the available datasource options as a list of (display name, dsOption)

getDeviceComponents(self)

Return list of all DeviceComponents on this device.

getDeviceGroupNames(self)

get the device group names for this device

getExpandedLinks(self)

Return the expanded zComment property

getHWManufacturerName(self)

Return the hardware manufacturer name of this device.

getHWProductKey(self)

Get our HW product by productKey.

getHWProductName(self)

Return the hardware product name of this device.

getHWSerialNumber(self)

Return our hardware serial number.

getLastChange(self)

Return DateTime of last change detected on this device.

getLastChangeString(self)

Return date string of last change detected on this device.

getLastPollSnmpUpTime(self)

set the value of the snmpUpTime status object

getLocationLink(self)

Return an a link to the devices location.

getLocationName(self)

return the full location name ie /Location/SubLocation/Rack

getManageInterface(self)

Return the management interface of a device based on its manageIp.

getManageIp(self)

Return the management ip for this device.

getManageIpObj(self)

Return the management ipobject for this device.

getMonitoredComponents(self)

Return list of monitored DeviceComponents on this device.

getNetworkGraph(self)

get a graph representing the relative routers as well as the networks

getOSManufacturerName(self)

Return the OS manufacturer name of this device.

getOSProcessConf(self)

Return process monitoring configuration.

getOSProductKey(self)

Get our OS product by productKey.

getOSProductName(self)

Return the OS product name of this device.

getPeerDeviceClassNames(self)

build a list of all device paths that have the python class pyclass

getPerformanceServer(self)

return device performance server

getPerformanceServerName(self)

return device performance server

getPingStatusString(self)

Return the pingStatus as a string

getPriorityString(self)

Return the device priority as a string.

getProductionStateString(self)

Return the prodstate as a string.

getRouterGraph(self)

get a graph representing the relative routers

getSnmpOidTargets(self)

Return information for snmp collection on this device in the form
(devname,
 (ip, snmpport),
 (snmpcommunity, snmpversion, snmptimeout, snmptries)
 [(name, oid, path, type, createCmd, thresholds),])
Overrides:
ZenModel.RRDView.RRDView.getSnmpOidTargets

getSnmpStatusString(self)

Return the snmpStatus as a string

getStatusMonitorNames(self)

return status monitor names

getSystemNames(self)

get the system names for this device

getSystemNamesString(self, sep=', ')

get the system names for this device as a string

getUrlForUserCommands(self, commandId=None)

Return url for page which manages user commands
Overrides:
ZenModel.Commandable.Commandable.getUrlForUserCommands (inherited documentation)

getUserCommandEnvironment(self)

Get the environment that provides context for the tales evaluation of a UserCommand.
Overrides:
ZenModel.Commandable.Commandable.getUserCommandEnvironment (inherited documentation)

getUserCommandTargets(self)

Called by Commandable.doCommand() to ascertain objects on which a UserCommand should be executed.
Overrides:
ZenModel.Commandable.Commandable.getUserCommandTargets

getXmlRpcTargets(self)

Return information for xmlrpc collection on this device in the form
(devname, xmlRpcStatus,
 (url, methodName),
 [(name, path, type, createCmd, thresholds)])
Overrides:
ZenModel.RRDView.RRDView.getXmlRpcTargets

havePydot(self)

return true if pydot is installed.

manage_afterAdd(self, item, container)

Device only propagates afterAdd if it is the added object.
Overrides:
OFS.ObjectManager.ObjectManager.manage_afterAdd

manage_afterClone(self, item)

Not really sure when this is called.
Overrides:
OFS.ObjectManager.ObjectManager.manage_afterClone

manage_beforeDelete(self, item, container)

Device only propagates beforeDelete if we are being deleted or copied. Moving and renaming don't propagate.
Overrides:
Products.ZenRelations.RelationshipManager.RelationshipManager.manage_beforeDelete

manage_deleteHeartbeat(self, REQUEST=None)

Delete this device's heartbeats.
Overrides:
ZenModel.EventView.EventView.manage_deleteHeartbeat

manage_editDevice(self, tag='', serialNumber='', zSnmpCommunity='', zSnmpPort=161, zSnmpVer='v1', rackSlot=0, productionState=1000, comments='', hwManufacturer='', hwProductName='', osManufacturer='', osProductName='', locationPath='', groupPaths=[], systemPaths=[], statusMonitors=['localhost'], performanceMonitor='localhost', priority=3, REQUEST=None)

edit device relations and attributes

manage_resequenceRRDGraphs(self, templateId, seqmap=(), origseq=(), REQUEST=None)

Reorder the sequecne of the RRDGraphs.

manage_snmpCommunity(self)

Reset the snmp community using the zSnmpCommunities variable.

monitorDevice(self)

Is device production state >= zProdStateThreshold.

pastSnmpMaxFailures(self)

Device has more SNMP failures than maxFailures on its status mon.

pushConfig(self, REQUEST=None)

This will result in a push of all the devices to live collectors

removeZDeviceTemplates(self, REQUEST=None)

Deletes the local zProperty, zDeviceTemplates

renameDevice(self, newId=None, REQUEST=None)

Rename device from the DMD

setGroups(self, groupPaths)

set the list of groups for this device based on a list of paths

setHWProduct(self, newHWProductName=None, hwManufacturer=None, REQUEST=None)

set the productName of this device

setHWProductKey(self, prodKey)

Set our HW product by productKey.

setHWSerialNumber(self, number)

Set our hardware serial number.

setLastChange(self, value=None)

Set the changed datetime for this device. value default is now.

setLastPollSnmpUpTime(self, value)

set the value of the snmpUpTime status object

setLocation(self, locationPath, REQUEST=None)

set the location of a device within a generic location path

setManageIp(self, ip='', REQUEST=None)

Set the manage ip, if ip is not passed perform DNS lookup.

setOSProduct(self, newOSProductName=None, osManufacturer=None, REQUEST=None)

set the productName of this device

setOSProductKey(self, prodKey)

Set our OS product by productKey.

setPerformanceMonitor(self, performanceMonitor, newPerformanceMonitor=None, REQUEST=None)

set the performance monitor for this device if newPerformanceMonitor is passed in create it

setPriority(self, priority, REQUEST=None)

Set a device's priority as an integer.

setProdState(self, state, REQUEST=None)

Set a device's production state as an integer.

setSnmpLastCollection(self, value=None)

Set the last time snmp collection occurred. value default is now.

setStatusMonitors(self, statusMonitors)

Set Status Monitor by list statusMonitors

setSystems(self, systemPaths)

set a list of systems to this device using their system paths

snmpMonitorDevice(self)

Is this device subject to SNMP monitoring?

uptimeStr(self)

return a textual representation of the snmp uptime

zenPropertyOptions(self, propname)

Provide a set of default options for a ZProperty
Overrides:
Products.ZenRelations.ZenPropertyManager.ZenPropertyManager.zenPropertyOptions (inherited documentation)

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Change Device',
  ('setStatusMonitors',
   'deleteDevice',
   'setTerminalServer',
   'setManageIp',
   'setPriority',
   'setLocation',
   'addSystem',
...                                                                    

addDeviceGroup__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

addManufacturer__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

addStatusMonitor__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

addSystem__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

collectDevice__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

comments

Type:
str
Value:
''                                                                     

default_catalog

Type:
str
Value:
'deviceSearch'                                                         

deleteDevice__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

device__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

event_key

Type:
str
Value:
'Device'                                                               

factory_type_information

Type:
tuple
Value:
({'actions': ({'action': 'deviceStatus',
               'id': 'status',
               'name': 'Status',
               'permissions': ('View',)},
              {'action': 'os/deviceOsDetail',
               'id': 'osdetail',
               'name': 'OS',
               'permissions': ('View',)},
...                                                                    

getDeviceGroupNames__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getLastChange__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getLastChangeString__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getLastPollSnmpUpTime__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d068>                                   

getLocationName__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getManageInterface__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getManageIp__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getNetworkGraph__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getPerformanceServer__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getPerformanceServerName__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getRouterGraph__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getSnmpLastCollection__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getSnmpLastCollectionString__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getStatusMonitorNames__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getSystemNames__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

getSystemNamesString__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

manage_afterAdd__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_afterClone__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_beforeDelete__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_deleteHeartbeat__roles__

Type:
tuple
Value:
('Manager',)                                                           

manage_editDevice__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

manage_resequenceRRDGraphs__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d050>                                   

manage_snmpCommunity__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

manageIp

Type:
str
Value:
''                                                                     

meta_type

Type:
str
Value:
'Device'                                                               

meta_types

Type:
tuple
Value:
()                                                                     

portal_type

Type:
str
Value:
'Device'                                                               

previousProductionState

Type:
int
Value:
1000                                                                  

priority

Type:
int
Value:
3                                                                     

productionState

Type:
int
Value:
1000                                                                  

rackSlot

Type:
int
Value:
0                                                                     

relationshipManagerPathRestriction

Type:
str
Value:
'/Devices'                                                             

renameDevice__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setGroups__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setHWProduct__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setLastChange__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setLastPollSnmpUpTime__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d068>                                   

setLocation__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setManageIp__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setOSProduct__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setPerformanceMonitor__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setPriority__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setProdState__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setSnmpLastCollection__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setStatusMonitors__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setSystems__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

setTerminalServer__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d038>                                   

snmpAgent

Type:
str
Value:
''                                                                     

snmpContact

Type:
str
Value:
''                                                                     

snmpDescr

Type:
str
Value:
''                                                                     

snmpLocation

Type:
str
Value:
''                                                                     

snmpOid

Type:
str
Value:
''                                                                     

snmpSysName

Type:
str
Value:
''                                                                     

sysedgeLicenseMode

Type:
str
Value:
''                                                                     

uptimeStr__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d080>                                   

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