欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 5469|回复: 3
收起左侧

itop数据模型图

[复制链接]
oppo 发表于 2016-5-12 19:33 | 显示全部楼层 |阅读模式
[gv=dot]digraph G{
rankdir=RL;
Organization->cmdbAbstractObject
Location->cmdbAbstractObject
Contact->cmdbAbstractObject
Person->Contact
Team->Contact
Document->cmdbAbstractObject
DocumentFile->Document
DocumentNote->Document
DocumentWeb->Document
FunctionalCI->cmdbAbstractObject
PhysicalDevice->FunctionalCI
ConnectableCI->PhysicalDevice
DatacenterDevice->ConnectableCI
NetworkDevice->DatacenterDevice
Server->DatacenterDevice
ApplicationSolution->FunctionalCI
BusinessProcess->FunctionalCI
SoftwareInstance->FunctionalCI
Middleware->SoftwareInstance
DBServer->SoftwareInstance
WebServer->SoftwareInstance
PCSoftware->SoftwareInstance
OtherSoftware->SoftwareInstance
MiddlewareInstance->FunctionalCI
DatabaseSchema->FunctionalCI
WebApplication->FunctionalCI
Software->cmdbAbstractObject
Patch->cmdbAbstractObject
OSPatch->Patch
SoftwarePatch->Patch
Licence->cmdbAbstractObject
OSLicence->Licence
SoftwareLicence->Licence
lnkDocumentToLicence->cmdbAbstractObject
Typology->cmdbAbstractObject
OSVersion->Typology
OSFamily->Typology
DocumentType->Typology
ContactType->Typology
Brand->Typology
Model->Typology
NetworkDeviceType->Typology
IOSVersion->Typology
lnkDocumentToPatch->cmdbAbstractObject
lnkSoftwareInstanceToSoftwarePatch->cmdbAbstractObject
lnkFunctionalCIToOSPatch->cmdbAbstractObject
lnkDocumentToSoftware->cmdbAbstractObject
lnkContactToFunctionalCI->cmdbAbstractObject
lnkDocumentToFunctionalCI->cmdbAbstractObject
Subnet->cmdbAbstractObject
VLAN->cmdbAbstractObject
lnkSubnetToVLAN->cmdbAbstractObject
NetworkInterface->cmdbAbstractObject
IPInterface->NetworkInterface
PhysicalInterface->IPInterface
lnkPhysicalInterfaceToVLAN->cmdbAbstractObject
lnkConnectableCIToNetworkDevice->cmdbAbstractObject
lnkApplicationSolutionToFunctionalCI->cmdbAbstractObject
lnkApplicationSolutionToBusinessProcess->cmdbAbstractObject
lnkPersonToTeam->cmdbAbstractObject
Group->cmdbAbstractObject
lnkGroupToCI->cmdbAbstractObject
}[/gv]
 楼主| oppo 发表于 2016-5-12 19:33 | 显示全部楼层
[gv=fdp]digraph G{
rankdir=RL;
Organization->cmdbAbstractObject
Location->cmdbAbstractObject
Contact->cmdbAbstractObject
Person->Contact
Team->Contact
Document->cmdbAbstractObject
DocumentFile->Document
DocumentNote->Document
DocumentWeb->Document
FunctionalCI->cmdbAbstractObject
PhysicalDevice->FunctionalCI
ConnectableCI->PhysicalDevice
DatacenterDevice->ConnectableCI
NetworkDevice->DatacenterDevice
Server->DatacenterDevice
ApplicationSolution->FunctionalCI
BusinessProcess->FunctionalCI
SoftwareInstance->FunctionalCI
Middleware->SoftwareInstance
DBServer->SoftwareInstance
WebServer->SoftwareInstance
PCSoftware->SoftwareInstance
OtherSoftware->SoftwareInstance
MiddlewareInstance->FunctionalCI
DatabaseSchema->FunctionalCI
WebApplication->FunctionalCI
Software->cmdbAbstractObject
Patch->cmdbAbstractObject
OSPatch->Patch
SoftwarePatch->Patch
Licence->cmdbAbstractObject
OSLicence->Licence
SoftwareLicence->Licence
lnkDocumentToLicence->cmdbAbstractObject
Typology->cmdbAbstractObject
OSVersion->Typology
OSFamily->Typology
DocumentType->Typology
ContactType->Typology
Brand->Typology
Model->Typology
NetworkDeviceType->Typology
IOSVersion->Typology
lnkDocumentToPatch->cmdbAbstractObject
lnkSoftwareInstanceToSoftwarePatch->cmdbAbstractObject
lnkFunctionalCIToOSPatch->cmdbAbstractObject
lnkDocumentToSoftware->cmdbAbstractObject
lnkContactToFunctionalCI->cmdbAbstractObject
lnkDocumentToFunctionalCI->cmdbAbstractObject
Subnet->cmdbAbstractObject
VLAN->cmdbAbstractObject
lnkSubnetToVLAN->cmdbAbstractObject
NetworkInterface->cmdbAbstractObject
IPInterface->NetworkInterface
PhysicalInterface->IPInterface
lnkPhysicalInterfaceToVLAN->cmdbAbstractObject
lnkConnectableCIToNetworkDevice->cmdbAbstractObject
lnkApplicationSolutionToFunctionalCI->cmdbAbstractObject
lnkApplicationSolutionToBusinessProcess->cmdbAbstractObject
lnkPersonToTeam->cmdbAbstractObject
Group->cmdbAbstractObject
lnkGroupToCI->cmdbAbstractObject
}[/gv]
回复 打印

使用道具 举报

 楼主| oppo 发表于 2016-5-12 19:34 | 显示全部楼层
本帖最后由 oppo 于 2016-5-12 19:37 编辑

[gv=neato]digraph G{
rankdir=RL;
Organization->cmdbAbstractObject
Location->cmdbAbstractObject
Contact->cmdbAbstractObject
Person->Contact
Team->Contact
Document->cmdbAbstractObject
DocumentFile->Document
DocumentNote->Document
DocumentWeb->Document
FunctionalCI->cmdbAbstractObject
PhysicalDevice->FunctionalCI
ConnectableCI->PhysicalDevice
DatacenterDevice->ConnectableCI
NetworkDevice->DatacenterDevice
Server->DatacenterDevice
ApplicationSolution->FunctionalCI
BusinessProcess->FunctionalCI
SoftwareInstance->FunctionalCI
Middleware->SoftwareInstance
DBServer->SoftwareInstance
WebServer->SoftwareInstance
PCSoftware->SoftwareInstance
OtherSoftware->SoftwareInstance
MiddlewareInstance->FunctionalCI
DatabaseSchema->FunctionalCI
WebApplication->FunctionalCI
Software->cmdbAbstractObject
Patch->cmdbAbstractObject
OSPatch->Patch
SoftwarePatch->Patch
Licence->cmdbAbstractObject
OSLicence->Licence
SoftwareLicence->Licence
lnkDocumentToLicence->cmdbAbstractObject
Typology->cmdbAbstractObject
OSVersion->Typology
OSFamily->Typology
DocumentType->Typology
ContactType->Typology
Brand->Typology
Model->Typology
NetworkDeviceType->Typology
IOSVersion->Typology
lnkDocumentToPatch->cmdbAbstractObject
lnkSoftwareInstanceToSoftwarePatch->cmdbAbstractObject
lnkFunctionalCIToOSPatch->cmdbAbstractObject
lnkDocumentToSoftware->cmdbAbstractObject
lnkContactToFunctionalCI->cmdbAbstractObject
lnkDocumentToFunctionalCI->cmdbAbstractObject
Subnet->cmdbAbstractObject
VLAN->cmdbAbstractObject
lnkSubnetToVLAN->cmdbAbstractObject
NetworkInterface->cmdbAbstractObject
IPInterface->NetworkInterface
PhysicalInterface->IPInterface
lnkPhysicalInterfaceToVLAN->cmdbAbstractObject
lnkConnectableCIToNetworkDevice->cmdbAbstractObject
lnkApplicationSolutionToFunctionalCI->cmdbAbstractObject
lnkApplicationSolutionToBusinessProcess->cmdbAbstractObject
lnkPersonToTeam->cmdbAbstractObject
Group->cmdbAbstractObject
lnkGroupToCI->cmdbAbstractObject
}[/gv]
回复 打印

使用道具 举报

 楼主| oppo 发表于 2016-5-12 19:39 | 显示全部楼层
[tex=md]
```
grep "class id=" datamodel.itop-config-mgmt.xml |cut -f2 -d'"' >class.txt
grep "<parent>" datamodel.itop-config-mgmt.xml |cut -f2 -d'>' |cut -f1 -d'<' >parent.txt
paste class.txt parent.txt >itop.txt
```

编辑itop.txt,\t替换为->,加上 digraph G{}即可

```
digraph G{
rankdir=RL;
Organization->cmdbAbstractObject
Location->cmdbAbstractObject
Contact->cmdbAbstractObject
Person->Contact
Team->Contact
Document->cmdbAbstractObject
DocumentFile->Document
DocumentNote->Document
DocumentWeb->Document
FunctionalCI->cmdbAbstractObject
PhysicalDevice->FunctionalCI
ConnectableCI->PhysicalDevice
DatacenterDevice->ConnectableCI
NetworkDevice->DatacenterDevice
Server->DatacenterDevice
ApplicationSolution->FunctionalCI
BusinessProcess->FunctionalCI
SoftwareInstance->FunctionalCI
Middleware->SoftwareInstance
DBServer->SoftwareInstance
WebServer->SoftwareInstance
PCSoftware->SoftwareInstance
OtherSoftware->SoftwareInstance
MiddlewareInstance->FunctionalCI
DatabaseSchema->FunctionalCI
WebApplication->FunctionalCI
Software->cmdbAbstractObject
Patch->cmdbAbstractObject
OSPatch->Patch
SoftwarePatch->Patch
Licence->cmdbAbstractObject
OSLicence->Licence
SoftwareLicence->Licence
lnkDocumentToLicence->cmdbAbstractObject
Typology->cmdbAbstractObject
OSVersion->Typology
OSFamily->Typology
DocumentType->Typology
ContactType->Typology
Brand->Typology
Model->Typology
NetworkDeviceType->Typology
IOSVersion->Typology
lnkDocumentToPatch->cmdbAbstractObject
lnkSoftwareInstanceToSoftwarePatch->cmdbAbstractObject
lnkFunctionalCIToOSPatch->cmdbAbstractObject
lnkDocumentToSoftware->cmdbAbstractObject
lnkContactToFunctionalCI->cmdbAbstractObject
lnkDocumentToFunctionalCI->cmdbAbstractObject
Subnet->cmdbAbstractObject
VLAN->cmdbAbstractObject
lnkSubnetToVLAN->cmdbAbstractObject
NetworkInterface->cmdbAbstractObject
IPInterface->NetworkInterface
PhysicalInterface->IPInterface
lnkPhysicalInterfaceToVLAN->cmdbAbstractObject
lnkConnectableCIToNetworkDevice->cmdbAbstractObject
lnkApplicationSolutionToFunctionalCI->cmdbAbstractObject
lnkApplicationSolutionToBusinessProcess->cmdbAbstractObject
lnkPersonToTeam->cmdbAbstractObject
Group->cmdbAbstractObject
lnkGroupToCI->cmdbAbstractObject
}
```
[/tex]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-11-25 11:32 , Processed in 0.069900 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表