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>]
|
getRRDTemplates(self)
Returns all the templates bound to this Device |
source code
|
|
|
|
list
|
|
int
|
sysUpTime(self)
Returns the cached sysUpTime for this device |
source code
|
|
string
|
|
|
|
|
|
|
applyDataMap(self,
datamap,
relname="",
compname="",
modname="")
Apply a datamap passed as a list of dicts through XML-RPC. |
source code
|
|
|
path(self)
Return a sequence of path tuples suitable for indexing by a
MultiPathIndex. |
source code
|
|
list
|
|
|
|
list
|
|
list
|
|
|
|
SnmpConnInfo object
|
getSnmpConnInfo(self)
Returns an object containing SNMP Connection Info |
source code
|
|
string
|
|
string
|
getHWProductName(self)
Return the hardware product name of this device. |
source code
|
|
string
|
getHWProductClass(self)
Return the hardware product class of this device. |
source code
|
|
string
|
|
string
|
|
string
|
|
string
|
|
|
setOSProductKey(self,
prodKey,
manufacturer=None)
Set the productKey of the device OS. |
source code
|
|
string
|
|
|
setHWTag(self,
assettag)
Set the asset tag of the device hardware. |
source code
|
|
|
setHWProductKey(self,
prodKey,
manufacturer=None)
Set the productKey of the device hardware. |
source code
|
|
|
setHWSerialNumber(self,
number)
Set the hardware serial number. |
source code
|
|
string
|
|
|
|
string
|
|
string
|
|
list
|
|
string
|
|
list
|
|
PerformanceMonitor
|
|
string
|
|
|
getNetworkRoot(self,
version=None)
Return the network root object |
source code
|
|
DateTime
|
|
string
|
|
DateTime
|
|
string
|
|
|
|
|
|
string
|
|
string
|
|
IpAddress
|
|
IpInterface
|
|
string
|
|
list
|
getPeerDeviceClassNames(self)
Build a list of all device paths that have the python class pyclass |
source code
|
|
|
|
|
setProductInfo(self,
hwManufacturer="",
hwProductName="",
osManufacturer="",
osProductName="") |
source code
|
|
|
|
|
manage_editDevice(self,
tag="",
serialNumber="",
zSnmpCommunity="",
zSnmpPort=161,
zSnmpVer="",
rackSlot="",
productionState=1000,
comments="",
hwManufacturer="",
hwProductName="",
osManufacturer="",
osProductName="",
locationPath="",
groupPaths=[],
systemPaths=[],
performanceMonitor="localhost",
priority=3,
zProperties=None,
title=None,
REQUEST=None)
Edit the device relation and attributes. |
source code
|
|
|
setTitle(self,
newTitle)
Changes the title to newTitle and reindexes the object |
source code
|
|
boolean
|
monitorDevice(self)
Returns true if the device production state >=
zProdStateThreshold. |
source code
|
|
boolean
|
snmpMonitorDevice(self)
Returns true if the device is subject to SNMP monitoring |
source code
|
|
int
|
getPriority(self)
Return the numeric device priority. |
source code
|
|
string
|
getPriorityString(self)
Return the device priority as a string. |
source code
|
|
string
|
getPingStatusString(self)
Return the pingStatus as a string |
source code
|
|
string
|
getSnmpStatusString(self)
Return the snmpStatus as a string |
source code
|
|
|
|
|
|
|
|
|
|
|
addManufacturer(self,
newHWManufacturerName=None,
newSWManufacturerName=None,
REQUEST=None)
DEPRECATED - Add either a hardware or software manufacturer to the
database. |
source code
|
|
|
setHWProduct(self,
newHWProductName=None,
hwManufacturer=None,
REQUEST=None)
DEPRECATED - Adds a new hardware product |
source code
|
|
|
setOSProduct(self,
newOSProductName=None,
osManufacturer=None,
REQUEST=None)
DEPRECATED Adds a new os product |
source code
|
|
|
|
|
addLocation(self,
newLocationPath,
REQUEST=None)
DEPRECATED Add a new location and relate it to this device |
source code
|
|
|
|
|
setGroups(self,
groupPaths)
Set the list of groups for this device based on a list of paths |
source code
|
|
|
addDeviceGroup(self,
newDeviceGroupPath,
REQUEST=None)
DEPRECATED? Add a device group to the database and this device |
source code
|
|
|
|
|
addSystem(self,
newSystemPath,
REQUEST=None)
DEPRECATED? Add a systems to this device using its system path |
source code
|
|
|
|
|
|
HTML output
|
getExpandedLinks(self)
Return the expanded zComment property |
source code
|
|
|
|
boolean
|
pastSnmpMaxFailures(self)
Returns true if the device has more SNMP failures than maxFailures on
its status mon. |
source code
|
|
|
|
|
|
|
snmpAgeCheck(self,
hours)
Returns True if SNMP data was collected more than 24 hours ago |
source code
|
|
|
applyProductContext(self)
Apply zProperties inherited from Product Contexts. |
source code
|
|
|
|
|
collectDevice(self,
setlog=True,
REQUEST=None,
generateEvents=False,
background=False,
write=None)
Collect the configuration of this device AKA Model Device |
source code
|
|
|
deleteDevice(self,
deleteStatus=False,
deleteHistory=False,
deletePerf=False,
REQUEST=None)
Delete device from the database |
source code
|
|
|
|
|
|
|
index_object(self,
idxs=None,
noips=False)
Override so ips get indexed on move. |
source code
|
|
|
unindex_object(self)
Override so ips get unindexed as well. |
source code
|
|
|
unindex_ips(self)
IpAddresses aren't contained underneath Device, so
manage_beforeDelete won't propagate. |
source code
|
|
|
cacheComponents(self)
Read current RRD values for all of a device's components |
source code
|
|
|
|
|
|
|
|
|
getHTMLEventSummary(self,
severity=4)
Returns HTML Event Summary of a device |
source code
|
|
|
getDataForJSON(self,
minSeverity=0)
Returns data ready for serialization |
source code
|
|
|
exportXmlHook(self,
ofile,
ignorerels)
Add export of our child objects. |
source code
|
|
|
zenPropertyOptions(self,
propname)
Returns a list of possible options for a given zProperty |
source code
|
|
|
pushConfig(self,
REQUEST=None)
This will result in a push of all the devices to live collectors |
source code
|
|
|
|
|
|
|
|
|
getAvailableTemplates(self)
Returns all available templates for this device |
source code
|
|
|
|
|
getXMLEdges(self,
depth=3,
filter="/",
start=())
Gets XML |
source code
|
|
HTML text
|
|
|
getOSProcessMatchers(self)
Get a list of dictionaries containing everything needed to match
processes against the global list of process classes. |
source code
|
|
|
manageIpVersion(self)
Returns either 4 or 6 depending on the version of the manageIp ip
adddress |
source code
|
|
string
|
|
string @return "ping" or "ping6" depending on if
the manageIp is ipv6 or not
|
pingCommand(self)
Used by the user commands this returns which ping command this device
should use. |
source code
|
|
string @return "traceroute" or "traceroute6"
depending on if the manageIp is ipv6 or not
|
tracerouteCommand(self)
Used by the user commands this returns which traceroute command this
device should use. |
source code
|
|
|
updateProcesses(self,
relmaps)
Uses ProcessClasses to create processes to monitor |
source code
|
|
|
getStatus(self,
statusclass=None,
**kwargs)
Return the status number for this device of class statClass. |
source code
|
|
|
|
|
|
|
|
Inherited from Commandable.Commandable :
compile ,
doCommandForTarget ,
getAqChainForUserCommands ,
getUserCommand ,
getUserCommandIds ,
getUserCommands ,
manage_addUserCommand ,
manage_deleteUserCommand ,
manage_doUserCommand ,
manage_editUserCommand ,
redirectToUserCommands ,
write
Inherited from Lockable.Lockable :
getNextLockableParent ,
isLockedFromDeletion ,
isLockedFromUpdates ,
isUnlocked ,
lockFromDeletion ,
lockFromUpdates ,
lockStatus ,
lockWarning ,
sendEventWhenBlocked ,
setSendEventWhenBlockedFlag ,
unlock ,
unsetSendEventWhenBlockedFlag
Inherited from MaintenanceWindowable.MaintenanceWindowable :
getMaintenanceWindows ,
manage_addMaintenanceWindow ,
manage_deleteMaintenanceWindow
Inherited from AdministrativeRoleable.AdministrativeRoleable :
getAdministrativeRoles ,
manage_addAdministrativeRole ,
manage_deleteAdministrativeRole ,
manage_editAdministrativeRoles ,
manage_listAdministrativeRoles ,
setAdminLocalRoles
Inherited from ZenMenuable.ZenMenuable :
buildMenus ,
getMenus ,
manage_addItemsToZenMenu ,
manage_addZenMenu ,
manage_addZenMenuItem ,
manage_deleteZenMenu ,
manage_deleteZenMenuItem ,
manage_saveMenuItemOrdering
|