|
createDiskOSH(containerHost,
dataName,
type,
size=None,
failures=None,
name=None)
Creates an ObjectStateHolder class that represents a
disk. |
source code
|
|
|
|
ObjectStateHolderVector
|
|
|
|
ObjectStateHolder
|
createInterfaceOSH(mac,
hostOSH=None,
description=None,
index=None,
type=None,
adminStatus=None,
operStatus=None,
speed=None,
name=None,
alias=None,
interfaceClass="interface")
Creates an ObjectStateHolder based on the interface at
the specified address. |
source code
|
|
ObjectStateHolder
|
|
|
getIpAddressPropertyValue(ipAddress,
netmask,
dhcpEnabled=None,
interfaceName=None)
str, str[, bool or str, str] -> str |
source code
|
|
|
|
ObjectStateHolder
|
createIpOSH(ipAddress,
netmask=None,
dnsname=None,
ipProps=None)
Creates an ObjectStateHolder that represents an IP. |
source code
|
|
|
|
|
|
|
isIncludedToList(listOfElementsString,
value,
delimiter=COMMA)
Check value for existance in the string of elements delimited by
<delimiter> str, str, str -> bool |
source code
|
|
|
addHostAttributes(uh_obj,
osName=None,
machineName=None,
machineBootDate=None)
Sets the machine name and operation system attributes of a node. |
source code
|
|
|
createHostOSH(ipAddress,
hostClassName="node",
osName=None,
machineName=None,
machineBootDate=None)
Creates a node OSH with its associated IP Address, operation system
name. |
source code
|
|
ObjectStateHolder
|
|
|
|
|
|
|
__isKnownHost(hostKey,
existingMacs,
discoveredMacs) |
source code
|
|
|
createCompleteHostOSHByInterfaceList(hostClass,
interfaceList,
osName=None,
machineName=None,
machineBootDate=None,
host_cmdbid=None,
host_key=None,
host_macs=None,
ucmdb_version=None)
Returns the minimal valid mac address to be used as key for the node. |
source code
|
|
ObjectStateHolder
|
|
ObjectStateHolderVector that contains three ObjectStateHolder classes
|
|
|
processBytesAttribute(stringValue)
Return data for bytes attribute - zips the data bytes encoded as
UTF-8 and returns the following information set: (Zipped Bytes,
CheckSum Value, String Length) |
source code
|
|
|
createCFOSH(filename,
extension,
path,
filecontent,
containerOSH=None,
description=None,
charsetName=None)
Creates a ObjectStateHolder that contains a zipped configuration
file. |
source code
|
|
|
createConfigurationDocumentOshByFile(file,
containerOsh,
contentType=None,
description=None,
charsetName=None) |
source code
|
|
|
createConfigurationDocumentOSH(name,
path,
content,
containerOSH=None,
contentType=None,
contentLastUpdate=None,
description=None,
version=None,
charsetName=None)
Creates ObjectStateHolder that represents a configuration document. |
source code
|
|
ObjectStateHolder
|
createProcessOSH(name,
hostOSH,
process_cmdline=None,
process_pid=None,
process_path=None,
process_parameters=None,
process_user=None,
process_startuptime=None,
procDescription=None)
Creates a new OSH that represent a process. |
source code
|
|
ObjectStateHolder
|
|
ObjectStateHolder
|
|
ObjectStateHolder
|
|
|
|
|
|
|
createDatabaseOSH(dbType,
dbName,
dbPort,
ip,
hostOSH,
credentialsID=None,
userName=None,
timeout=None,
dbVersion=None,
appVersion=None,
applicationVersionNumber=None) |
source code
|
|
|
|
|
createWebServerOSH(serverType,
port,
configfile,
hostOSH,
isIHS,
serverVersion=None) |
source code
|
|
|
|
|
createExchangeServer(host,
applicationIp=None,
credentialsId=None,
exchangeVersion=None) |
source code
|
|
|
getProductNameByApplicationName(applicationName) |
source code
|
|
|
setApplicationProductName(applicationOsh,
applicationName=None) |
source code
|
|
|
getDiscoveredProductNameByType(applicationClass) |
source code
|
|
|
setApplicationDiscoveredProductName(applicationOsh,
productName=None)
ObjectStateHolder, str -> None |
source code
|
|
|
createApplicationOSH(citName,
name,
hostOsh,
category=None,
vendor=None) |
source code
|
|
|
createSapInstanceOSH(servertype,
serverName,
address,
hostOsh) |
source code
|
|
|
|
|
|
|
setAppSystemVendor(appSystemOsh,
vendor=None) |
source code
|
|
|
createJ2EEServer(type,
ipddress,
port=None,
hostOSH=None,
serverName=None,
domainName=None)
VERY IMPORTANT: despite serverName has default value(None) it is very important to set its name
since this is key attribute for j2eeserver. |
source code
|
|
|
setJ2eeServerAdminDomain(serverOSH,
adminDomainName) |
source code
|
|
|
createNtcmdOSH(ip_address,
credentialsId,
language,
codePage)
str, str, str, str -> ObjectStateHolder |
source code
|
|
|
createSSHOSH(ip_address,
port)
str, str -> ObjectStateHolder |
source code
|
|
|
createTelnetOSH(ip_address,
port)
str, str -> ObjectStateHolder |
source code
|
|
|
createSnmpOSH(ip_address,
port)
str, str -> ObjectStateHolder |
source code
|
|
|
createTTYOSH(clientType,
ip_address,
port)
str, str, str(port) -> ObjectStateHolder |
source code
|
|
|
createWmiOSH(ip_address)
str -> ObjectStateHolder |
source code
|
|
|
createClusterSoftwareOSH(hostOSH,
clustName,
version=None,
vendor=None) |
source code
|
|
|
createCpuOsh(cid,
hostOsh,
speed=None,
coreNumber=None,
vendor=None,
descr=None,
data_name=None)
Creates CPU OSH by specified cid and node container str,
ObjectStateHolder[, long(speed MHz), int(coreNumber), str, str, str]
-> ObjectStateHolder |
source code
|
|
|
createActiveDirectoryOsh(className,
dataName)
str, str -> ObjectStateHolder |
source code
|
|
ObjectStateHolder
|
|
ObjectStateHolder
|
|
|
|
|
getDateFromUtcString(utcDateString)
Helper function that parses a string representing a date in UTC
format and returns date as java.util.Date object UTC date example:
20080517201331.843750+180 |
source code
|
|
|
getDateFromString(dateString,
dateFormatString,
timeZone=None,
locale=Locale.ENGLISH)
Helper function that parses a date from string using specified date
format, timezone and locale Timezone is java.util.TimeZone instance
Locale is java.util.Locale instance, defaults to English Returns date
as java.util.Date object |
source code
|
|
|
setAdditionalKeyAttribute(osh,
attributeName,
attributeValue,
attributeTypeStr=AppilogTypes.STRING_DEF) |
source code
|
|
|
setHostSerialNumberAttribute(hostOsh,
serialNumber) |
source code
|
|
|
setHostManufacturerAttribute(hostOsh,
manufacturer) |
source code
|
|
|
|
|
|
|
setHostMemorySizeAttribute(hostOsh,
memorySizeInMegabytes) |
source code
|
|
|
setHostSwapMemorySizeAttribute(hostOsh,
swapMemorySizeInMegabytes) |
source code
|
|
|
|
|
|
|
setHostDefaultGateway(hostOsh,
defaultGateway) |
source code
|
|
|
|
|
setHostOsFamily(hostOsh,
osFamily=None,
osTypeOrClassName=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
createLayer2ConnectionWithLinks(macList,
parentSwitch,
localInterface=None) |
source code
|
|
|
createServiceOSH(hostOsh,
serviceName,
serviceDescr,
serviceCommand,
serviceStartType=None,
serviceOperatingStatus=None,
serviceCanBePaused=None,
serviceCanBeUninstalled=None,
serviceStartUser=None)
Creates Windows Service OSH by specified service name and node
container |
source code
|
|
|
createVlanOsh(vlanId,
parentOsh=None,
portIdList=[]) |
source code
|
|
|
SERVICEADDRESS_TYPE_TCP = 1
|
|
SERVICEADDRESS_TYPE_UDP = 2
|
|
SERVICEADDRESS_TYPE_URL = 3
|
|
FIXED_DISK_STORAGE_TYPE = 'FixedDisk'
|
|
NETWORK_DISK_STORAGE_TYPE = 'NetworkDisk'
|
|
COMPACT_DISK_STORAGE_TYPE = 'CompactDisk'
|
|
REMOVABLE_DISK_STORAGE_TYPE = 'RemovableDisk'
|
|
FLOPPY_DISK_STORAGE_TYPE = 'FloppyDisk'
|
|
VIRTUAL_MEMORY_STORAGE_TYPE = 'VirtualMemory'
|
|
FLASH_MEMORY_STORAGE_TYPE = 'FlashMemory'
|
|
RAM_DISK_STORAGE_TYPE = 'RamDisk'
|
|
RAM_STORAGE_TYPE = 'Ram'
|
|
NO_ROOT_DIRECTORY_STORAGE_TYPE = 'No Root Directory'
|
|
OTHER_STORAGE_TYPE = 'Other'
|
|
UNKNOWN_STORAGE_TYPE = "UNKNOWN"
|
|
IGNORE_INTERFACE_PATTERN_FILTER = ['LoopBack', 'Wireless', 'Vi...
|
|
IP_ADDRESS_PROPERTY_LOOPBACK = 'loopback'
|
|
IP_ADDRESS_PROPERTY_DHCP = 'dhcp'
|
|
IP_ADDRESS_PROPERTY_BROADCAST = 'broadcast'
|
|
IP_ADDRESS_PROPERTY_ANYCAST = 'anycast'
|
|
MIME_TEXT_PLAIN = "text/plain"
|
|
MIME_TEXT_XML = "text/xml"
|
|
OS_TYPE_AND_CLASS_TO_OS_FAMILY_MAP = {'linux': 'unix', 'sunos'...
|
|
databaseDataNames = {'oracle': 'Oracle DB', 'sqlserver': 'MSSQ...
|
|
STORAGE_ID_TO_STORAGE_TYPE = {0: OTHER_STORAGE_TYPE, 1: NO_ROO...
|
|
applicationNameToProductNameMap = {'Oracle DB': 'oracle_databa...
|
|
applicationTypeToDiscoveredProductNameMap = {'abap_sap_central...
|
|
CLASSES_80_TO_BDM = {'host': 'node', 'clusteredservice': 'clus...
|
|
MIME_TYPES = {'3dm': 'x-world/x-3dmf', '3dmf': 'x-world/x-3dmf...
|
|
TCP_PROTOCOL = PortInfo.TCP_PROTOCOL
|
|
UDP_PROTOCOL = PortInfo.UDP_PROTOCOL
|
|
COMMA = ', '
|
|
__J2EE_SERVERS = {'glassfish': __J2eeServerDefinition('glassfi...
|
|
__J2EE_APP_SERVER = __AppServerTypeDefinition(['j2ee'])
|
|
__SAP_ABAP_APP_SERVER = __AppServerTypeDefinition(['sap'])
|
|
__SAP_J2EE_APP_SERVER = __AppServerTypeDefinition(['j2ee, sap'])
|
|
__SIEBEL_APP_SERVER = __AppServerTypeDefinition(['siebel'])
|
|
__APP_SERVER_TYPES = {'j2eeserver': __AppServerTypeDefinition(...
|
|
__APP_SYSTEM_VENDORS = {'exchangesystem': 'microsoft_corp', 't...
|
|
ACTIVE_DIRECTORY_DOMAIN_CIT = 'activedirectorydomain'
|
|
DOMAIN_CONTROLLER_CIT = 'domaincontroller'
|
|
_CMDB_CLASS_MODEL = CmdbClassModel()
@deprecated methods
|
|
checkAttributeExists = _CMDB_CLASS_MODEL.isExistingAttribute
|
|
checkIsKeyAttribute = _CMDB_CLASS_MODEL.isKeyAttribute
|
|
__setAttributeIfExists = _CMDB_CLASS_MODEL.setAttributeIfExists
end
|
|
SERVICE_DESCRIPTION_MAX_LENGTH = 1000
|
|
SERVICE_COMMAND_LINE_MAX_LENGTH = 2500
|