* @author Romain Quetiez
* @author Denis Flaven
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
*/]]>activeinactive- name
- code
- status
- parent_id
- name
- code
- status
- parent_id
- status
- parent_id
../modules/itop-config-mgmt-1.0.0/images/location.pngactiveinactive- name
- status
- org_id
- address
- postal_code
- city
- country
- parent_id
- contact_list
- infra_list
- name
- status
- org_id
- city
- country
- parent_id
- status
- org_id
- city
- country
../modules/itop-config-mgmt-1.0.0/images/team.pngactiveinactive- name
- status
- org_id
- email
- phone
- location_id
- contract_list
- service_list
- ticket_list
- ci_list
- team_list
- name
- status
- org_id
- email
- phone
- location_id
- finalclass
- status
- org_id
- email
- phone
- location_id
../modules/itop-config-mgmt-1.0.0/images/person.png- name
- first_name
- org_id
- status
- location_id
- email
- phone
- employee_id
- team_list
- contract_list
- service_list
- ticket_list
- ci_list
- name
- status
- org_id
- email
- phone
- location_id
- first_name
- employee_id
- name
- first_name
- status
- org_id
- email
- phone
- location_id
../modules/itop-config-mgmt-1.0.0/images/team.png- name
- status
- org_id
- location_id
- email
- phone
- member_list
- contract_list
- service_list
- ticket_list
- ci_list
- team_list
- name
- status
- org_id
- email
- phone
- location_id
- status
- org_id
- email
- phone
- location_id
- team_id
- contact_id
- role
- team_id
- contact_id
- role
- team_id
- contact_id_finalclass_recall
- contact_id
- contact_location_id
- contact_email
- contact_phone
- role
../modules/itop-config-mgmt-1.0.0/images/document.pngcontractnetworkmappresentationtrainingwhitePaperworkinginstructionsdraftpublishedobsolete- name
- org_id
- description
- type
- status
- contract_list
- service_list
- ticket_list
- ci_list
- name
- org_id
- description
- type
- status
- org_id
- type
- status
../modules/itop-config-mgmt-1.0.0/images/document.png- name
- org_id
- description
- type
- status
- contract_list
- service_list
- ticket_list
- ci_list
- url
- name
- org_id
- description
- type
- status
- url
- org_id
- type
- status
- url
../modules/itop-config-mgmt-1.0.0/images/document.png- name
- org_id
- description
- type
- status
- contract_list
- service_list
- ticket_list
- ci_list
- note
- name
- org_id
- description
- type
- status
- note
- org_id
- type
- status
- note
../modules/itop-config-mgmt-1.0.0/images/document.pngSetCurrentTab(Dict::S('Class:Document:PreviewTab'));
$oPage->add($this->DisplayDocumentInline($oPage, 'contents'));
$oPage->SetCurrentTab(Dict::S('UI:PropertiesTab'));
}
parent::DisplayBareProperties($oPage, $bEditMode, $sPrefix, $aExtraParams);
}]]>- name
- org_id
- description
- type
- status
- contract_list
- service_list
- ticket_list
- ci_list
- contents
- name
- org_id
- description
- type
- status
- org_id
- type
- status
- contents
../modules/itop-config-mgmt-1.0.0/images/licence.png- name
- org_id
- provider
- product
- start
- end
- licence_key
- scope
- usage_limit
- usage_list
- org_id
- provider
- product
- name
- start
- end
- licence_key
- scope
- org_id
- provider
- product
- start
- end
../modules/itop-config-mgmt-1.0.0/images/subnet.pngSetCurrentTab(Dict::S('Class:Subnet/Tab:IPUsage'));
$bit_ip = ip2long($this->Get('ip'));
$bit_mask = ip2long($this->Get('ip_mask'));
$iIPMin = sprintf('%u', ($bit_ip & $bit_mask) | 1); // exclude the first one: identifies the subnet itself
$iIPMax = sprintf('%u', (($bit_ip | (~$bit_mask))) & 0xfffffffe); // exclude the last one : broadcast address
$sIPMin = long2ip($iIPMin);
$sIPMax = long2ip($iIPMax);
$oPage->p(Dict::Format('Class:Subnet/Tab:IPUsage-explain', $sIPMin, $sIPMax));
$oIfFilter = DBObjectSearch::FromOQL("SELECT NetworkInterface AS if WHERE INET_ATON(if.ip_address) >= INET_ATON('$sIPMin') AND INET_ATON(if.ip_address) <= INET_ATON('$sIPMax')");
$oIfSet = new CMDBObjectSet($oIfFilter);
$oBlock = new DisplayBlock($oIfFilter, 'list', false);
$oBlock->Display($oPage, 'nwif', array('menu' => false));
$iCountUsed = $oIfSet->Count();
$iCountRange = $iIPMax - $iIPMin; // On 32-bit systems the substraction will be computed using floats for values greater than PHP_MAX_INT;
$iFreeCount = $iCountRange - $iCountUsed;
$oPage->SetCurrentTab(Dict::S('Class:Subnet/Tab:FreeIPs'));
$oPage->p(Dict::Format('Class:Subnet/Tab:FreeIPs-count', $iFreeCount));
$oPage->p(Dict::S('Class:Subnet/Tab:FreeIPs-explain'));
$aUsedIPs = $oIfSet->GetColumnAsArray('ip_address', false);
$iAnIP = $iIPMin;
$iFound = 0;
while (($iFound < min($iFreeCount, 10)) && ($iAnIP <= $iIPMax))
{
$sAnIP = long2ip($iAnIP);
if (!in_array($sAnIP, $aUsedIPs))
{
$iFound++;
$oPage->p($sAnIP);
}
else
{
}
$iAnIP++;
}
}
}]]>- ip
- ip_mask
- org_id
- description
- ip
- ip_mask
- org_id
- description
- ip
- ip_mask
- org_id
../modules/itop-config-mgmt-1.0.0/images/patch.pngapplicationossecurityservicepack- name
- description
- target_sw
- version
- type
- ci_list
- name
- target_sw
- version
- type
- description
- target_sw
- version
- type
../modules/itop-config-mgmt-1.0.0/images/software.png- name
- description
- name
- description
- description
../modules/itop-config-mgmt-1.0.0/images/software.png- name
- description
- instance_list
- name
- description
- description
../modules/itop-config-mgmt-1.0.0/images/software.png- name
- description
- instance_list
- name
- description
- description
- patch_id
- ci_id
- ci_status
- patch_id
- ci_id
- patch_id
- ci_id_finalclass_recall
- ci_id
- ci_status
../modules/itop-config-mgmt-1.0.0/images/server.pngimplementationproductionobsoletelowmediumhigh array("sQuery"=>"SELECT Contact AS c JOIN lnkCIToContact AS l1 ON l1.contact_id = c.id WHERE l1.ci_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
"solution" => array("sQuery"=>"SELECT ApplicationSolution AS s JOIN lnkSolutionToCI AS l1 ON l1.solution_id = s.id WHERE l1.ci_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- name
- status
- org_id
- importance
- finalclass
- status
- org_id
- importance
../modules/itop-config-mgmt-1.0.0/images/application.png array("sQuery"=>"SELECT DatabaseInstance AS db WHERE db.db_server_instance_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
case 'depends on':
$aRels = array(
"applications" => array("sQuery"=>"SELECT Device JOIN SoftwareInstance AS app ON app.device_id = Device.id WHERE app.id = :this->id", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- device_id
- licence_id
- version
- description
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- status
- org_id
- importance
- device_id
- licence_id
- version
- finalclass
- status
- org_id
- importance
- device_id_finalclass_recall
- device_id
- version
../modules/itop-config-mgmt-1.0.0/images/database.png- name
- status
- org_id
- importance
- device_id
- licence_id
- software_id
- version
- description
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- dbinstance_list
- status
- org_id
- importance
- device_id
- licence_id
- software_id
- version
- status
- org_id
- importance
- device_id_finalclass_recall
- device_id
- software_id
- version
../modules/itop-config-mgmt-1.0.0/images/application.png- name
- status
- org_id
- importance
- device_id
- licence_id
- software_id
- version
- description
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- status
- org_id
- importance
- device_id
- licence_id
- software_id
- version
- status
- org_id
- importance
- device_id_finalclass_recall
- device_id
- software_id
- version
../modules/itop-config-mgmt-1.0.0/images/database-instance.png array("sQuery"=>"SELECT DBServerInstance AS db_server_inst JOIN DatabaseInstance AS db ON db.db_server_instance_id = db_server_inst.id WHERE db.id = :this->id", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- db_server_instance_id
- db_server_instance_version
- description
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- name
- status
- org_id
- importance
- db_server_instance_id
- db_server_instance_version
- status
- org_id
- importance
- db_server_instance_id
- db_server_instance_version
../modules/itop-config-mgmt-1.0.0/images/group.pngproductionimplementationobsolete- name
- status
- org_id
- type
- description
- parent_id
- ci_list
- name
- status
- org_id
- type
- status
- org_id
- type
- parent_id
- group_id
- ci_id
- ci_status
- reason
- group_id
- ci_id
- reason
- group_id
- ci_id_finalclass_recall
- ci_id
- ci_status
- reason
../modules/itop-config-mgmt-1.0.0/images/solution.png array("sQuery"=>"SELECT BusinessProcess AS p JOIN lnkProcessToSolution AS l1 ON l1.process_id = p.id WHERE l1.solution_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
case "depends on":
$aRels = array(
"solution" => array("sQuery"=>"SELECT FunctionalCI AS ci JOIN lnkSolutionToCI AS l1 ON l1.ci_id = ci.id WHERE l1.solution_id = :this->id", "bPropagate"=>true, "iDistance"=>2),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- description
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- ci_list
- process_list
- name
- status
- org_id
- importance
- status
- org_id
- importance
../modules/itop-config-mgmt-1.0.0/images/business-process.png array("sQuery"=>"SELECT ApplicationSolution AS app JOIN lnkProcessToSolution AS l1 ON l1.solution_id = app.id WHERE l1.process_id = :this->id", "bPropagate"=>true, "iDistance"=>3),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- description
- contact_list
- document_list
- contract_list
- ticket_list
- used_solution_list
- name
- status
- org_id
- importance
- description
- status
- org_id
- importance
../modules/itop-config-mgmt-1.0.0/images/server.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- finalclass
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
../modules/itop-config-mgmt-1.0.0/images/interface.pngbackuplogicalportprimarysecondaryatmethernetframerelayvlanfullhalfautounknownuplinkdownlink array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.id = :this->id AND if2.link_type='downlink'", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>m_aOrigValues['connected_if']; // The interface this interface was connected to
if ($iPrevTargetIf != 0)
{
// The interface was previosuly connected to another interface. Make sure that we reset this 'previously connected interface'
$oPrevConnectedIf = MetaModel::GetObject('NetworkInterface', $iPrevTargetIf, false);
if (!is_null($oPrevConnectedIf))
{
$oPrevConnectedIf->Set('connected_if', 0);
// Need to backup the current change, because it is reset when DBUpdateTracked is complete
$oCurrChange = self::$m_oCurrChange;
$oPrevConnectedIf->DBUpdateTracked($oCurrChange);
self::$m_oCurrChange = $oCurrChange;
}
}
$oConnIf = MetaModel::GetObject('NetworkInterface', $this->Get('connected_if'), false /* no exception if not found */);
if (!is_null($oConnIf))
{
$sLink = $this->Get('link_type');
$sConnLink = ($sLink == 'uplink') ? 'downlink' : 'uplink';
if (($oConnIf->Get('connected_if') != $this->GetKey()) || ($sConnLink != $oConnIf->Get('link_type')))
{
// Something has to be changed on the connected interface...
if ($oConnIf->Get('connected_if') != $this->GetKey())
{
// It is connected to another interface: reset that third one...
$oThirdIf = MetaModel::GetObject('NetworkInterface', $oConnIf->Get('connected_if'), false);
if (!is_null($oThirdIf))
{
$oThirdIf->Set('connected_if', 0);
// Need to backup the current change, because it is reset when DBUpdateTracked is complete
$oCurrChange = self::$m_oCurrChange;
$oThirdIf->DBUpdateTracked($oCurrChange);
self::$m_oCurrChange = $oCurrChange;
}
}
// Connect the remote interface to the current one
$oConnIf->Set('connected_if', $this->GetKey());
$oConnIf->Set('link_type', $sConnLink);
// Need to backup the current change, because it is reset when DBUpdateTracked is complete
$oCurrChange = self::$m_oCurrChange;
$oConnIf->DBUpdateTracked($oCurrChange);
self::$m_oCurrChange = $oCurrChange;
}
}
}]]>UpdateConnectedInterface();
parent::AfterInsert();
}]]>UpdateConnectedInterface();
parent::AfterUpdate();
}]]>- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- device_id
- logical_type
- physical_type
- ip_address
- ip_mask
- mac_address
- speed
- duplex
- link_type
- connected_if
- connected_if_device_id
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- name
- status
- org_id
- importance
- device_id
- logical_type
- physical_type
- ip_address
- ip_mask
- mac_address
- connected_if_device_id
- status
- ip_address
- importance
- device_id_finalclass_recall
- device_id
- logical_type
- physical_type
- link_type
- connected_if_device_id
../modules/itop-config-mgmt-1.0.0/images/server.png array("sQuery"=>"SELECT SoftwareInstance AS app WHERE app.device_id = :this->id", "bPropagate"=>true, "iDistance"=>5),
"connected_devices" => array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.device_id = :this->id AND if2.link_type='downlink'", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
case "depends on":
$aRels = array(
"connected_devices" => array("sQuery"=>"SELECT Device AS dev JOIN NetworkInterface AS if1 ON if1.device_id = dev.id JOIN NetworkInterface AS if2 ON if2.connected_if = if1.id WHERE if2.device_id = :this->id AND if2.link_type='uplink'", "bPropagate"=>true, "iDistance"=>5),
);
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}]]>- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- finalclass
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
../modules/itop-config-mgmt-1.0.0/images/laptop.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- cpu
- ram
- hdd
- os_family
- os_version
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- application_list
- patch_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- os_family
- os_version
- status
- org_id
- importance
- brand
- model
- os_family
../modules/itop-config-mgmt-1.0.0/images/mobile-phone.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- status
- org_id
- importance
- brand
- model
../modules/itop-config-mgmt-1.0.0/images/mobile-phone.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- number
- imei
- hw_pin
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- number
- imei
- status
- org_id
- importance
- brand
- model
../modules/itop-config-mgmt-1.0.0/images/server.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- description
- location_id
- location_details
- management_ip
- default_gateway
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- location_id
- management_ip
- default_gateway
- status
- org_id
- importance
- brand
- model
- location_id
../modules/itop-config-mgmt-1.0.0/images/switch.pngwanacceleratorfirewallhubloadbalancerrouterswitch- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- description
- location_id
- location_details
- management_ip
- default_gateway
- type
- ios_version
- ram
- snmp_read
- snmp_write
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- location_id
- management_ip
- default_gateway
- type
- ios_version
- status
- org_id
- importance
- brand
- model
- location_id
- type
../modules/itop-config-mgmt-1.0.0/images/server.png- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- description
- location_id
- location_details
- management_ip
- default_gateway
- cpu
- ram
- hdd
- os_family
- os_version
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- application_list
- patch_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- location_id
- management_ip
- default_gateway
- os_family
- os_version
- status
- org_id
- importance
- brand
- model
- location_id
- os_family
../modules/itop-config-mgmt-1.0.0/images/printer.pngmopierprinterlaserinkjettracer- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- description
- location_id
- location_details
- management_ip
- default_gateway
- type
- technology
- contact_list
- document_list
- solution_list
- contract_list
- ticket_list
- nwinterface_list
- name
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- description
- location_id
- location_details
- management_ip
- default_gateway
- type
- technology
- status
- org_id
- importance
- brand
- model
- serial_number
- asset_ref
- location_id
- management_ip
- default_gateway
- type
- technology
- ci_id
- ci_status
- document_id
- document_type
- document_status
- ci_id
- document_id
- ci_id_finalclass_recall
- ci_id
- ci_status
- document_id_finalclass_recall
- document_id
- document_type
- document_status
../modules/itop-config-mgmt-1.0.0/images/contact.png- ci_id
- ci_status
- contact_id
- contact_email
- role
- ci_id
- contact_id
- role
- ci_id_finalclass_recall
- ci_id
- ci_status
- contact_id_finalclass_recall
- contact_id
- contact_email
- role
- solution_id
- ci_id
- ci_status
- utility
- solution_id
- ci_id
- utility
- solution_id
- ci_id_finalclass_recall
- ci_id
- ci_status
- utility
- solution_id
- process_id
- reason
- solution_id
- process_id
- reason
- solution_id
- process_id
- reason