旧版废弃对象

数据模型由iTop 2.4引入,现在通过突出显示隐藏的过时对象而包括了按对象类定义的废弃概念,到改进用户体验都定义了这一概念。

目的

突出显示过时的对象

通过图形化图标和标签在控制台中将定义为过时的对象标记为明显。

在清单上:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-list-hypervisor.png

在对象上:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-hypervisor.png

在链接的对象列表上:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-lnk-farm.png

改进的影响度分析

影响度分析将忽略过时的对象

在iTop 2.4.0之前:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-impactanalyses-before2-4.png

后:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-impactanalyses-after2-4.png

隐藏过时的对象

基于用户偏好,定义为过时的对象将从iTop控制台的显示列表中删除。

无论用户偏好如何,都会显示废弃对象详细信息。

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-userpreference.png

与上面为用户显示的相同的集群,请求不显示过时的对象:

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-lnk-farm-filtered.png

对此用户偏好保持谨慎,它会隐藏现有对象:

修改模式

  • 在详细信息屏幕上的下拉列表中:不会建议使用过时的对象。
  • 在关系选项卡中,将不会显示过时的对象,因此无法删除它们。
  • 在关系选项卡中,无法添加过时的对象。

其他显示差异

  • 快捷方式显示没有过时对象的列表
  • 仪表板不包含过时的对象
  • 全局搜索不返回过时的对象
  • 审计在陈旧的对象上不会报告审计错误
  • RunQuery不会返回过时的对象
  • 导出应该返回没有过期对象的列表

此模式下,仍然可以使用过期对象的CSV导入

搜索过时的对象

使用RunQuery和自动属性obsolescence_flag

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-runquery-hypervisor.png

在运行查询之前,请谨慎设置用户偏好显示为过时的数据,否则查询将不返回任何内容!

局限性

obsolescence_flag字段基于OQL表达式。仅当从数据库读取对象时才计算得出。它没有考虑尚未保存的账号对象修改,从逻辑上应该会对其进行修改。

除非iTop cron正在运行,否则不会记录obsolescence_date ,这在后台中作为异步任务完成

用户门户从未将用户偏好纳入账号中,因此,除非经过门户示波器过滤,否则可见的过时数据

默认废弃规则

哪些对象已过时?

一般来说:

  1. 状况等于过时或无效的对象
  2. 如果对象是另一个对象的子对象,则如果它们的主对象是对象,则该对象已过时。示例:如果物理接口的ConnectableCI是过时的,则它已过时。此规则有两个例外:当且仅当它们自己的对象被淘汰时,虚拟机和虚拟化主机才被淘汰。
  3. 许可证已过期超过15个月,(无法缓存搜索查询,因此请谨慎对待大批量交易)

如果要通知过时的联系人,请注意,如果用户选择在其偏好中隐藏过时的对象,则此操作将失败

配置管理内核

  • 联系人: status='inactive'
  • 文档: status='obsolete'
配置项
  • 应用方案:status='inactive'
  • 业务流程:status='inactive'
  • DB服务器:status='inactive'
  • 数据库架构:its DBServer is obsolete
  • 中间件:status='inactive'
  • 中间件实例:Middleware is obsolete
  • 网络设备: status='obsolete'
  • 其他软件: status='inactive'
  • PC软件: status='inactive'
  • 服务器:status='obsolete'
  • Web应用软件:its Web server is obsolete
  • Web服务器:status='inactive'
杂项
  • 组:status='obsolete'
  • 位置:status='inactive'
  • 操作系统许可:许可不是永久性的,并且定义的结束日期超过15个月
  • 操作系统补丁:未定义废弃
  • 组织:status='inactive'
  • 物理接口:其设备已过时
  • 软体:未定义废弃
  • 软件许可证:许可证不是永久性的,终止日期已定义,超过15个月以上
  • 软件补丁:未定义废弃
  • 子网:未定义废弃
  • VLAN:未定义废弃

终端用户设备

在所有终端用户设备上,使用在物理设备上定义的相同逻辑:status='obsolete'

虚拟化和云资源

  • 集群:status='obsolete'
  • 虚拟化主机:status='obsolete'
  • 逻辑接口:its Virtual Machine is obsolete
  • 虚拟机: status='obsolet

专业存储设备

  • 光纤通道接口:其数据中心设备已过时
  • 逻辑卷:其存储系统已作废
  • NAS:status='obsolete'
  • NAS文件系统:其NAS已过时
  • SAN交换机: status='obsolete'
  • 存储系统:status='obsolete'
  • 磁带:其磁带库已作废
  • 磁带库:status='obsolete'

数据中心

  • 机箱:status='obsolete'
  • PDU:status='obsolete'
  • 电源:status='obsolete'
  • 机柜:status='obsolete'

工单

从2.5.0版本开始,由于工单降级了性能,因此不再存在废弃规则。

配置废弃

定义自己的规则:定义废弃规则

原贴链接:https://www.itophub.io/wiki/page?id=2_7_0%3Afeature%3Aobsolescence


Obsolescence

Introduced by iTop 2.4, the Data Model now includes an obsolescence notion defined per class of object, to improve user experience by highlighting / hiding obsolete objects.

Purpose

Highlight obsolete objects

Object defined as obsolete are flagged in the console to make this aspect obvious, by graphical icon and tag.

On a list:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-list-hypervisor.png

On an object:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-hypervisor.png

On a list of linked object:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-lnk-farm.png

Improved Impact Analysis

Obsolete objects are ignored by Impact Analysis

Before iTop 2.4.0:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-impactanalyses-before2-4.png

After:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-impactanalyses-after2-4.png

Hide obsolete objects

Based on user preference, objects which are defined as obsolete, are removed from displayed lists in the iTop console.

An obsolete object details is displayed regardless of user preference.https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-userpreference.png

The same Farm as above displayed for a user, requesting to not display obsolete objects:https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-details-lnk-farm-filtered.png

Be cautious with this user preference, it does hide existing objects:

modify mode

  • In details screen, on a drop-down list: obsolete objects will not be proposed.

  • In a relation tab, obsolete objects will not be displayed, so cannot be removed.

  • In a relation tab, obsolete objects cannot be added.

other display difference

  • Shortcut display a list without obsolete objects

  • Dashlets do not include obsolete objects

  • Global Search do not return obsolete objects

  • Audit does not report audit errors on obsolete objects

  • RunQuery does not return obsolete objects

  • Export should return a list without obsolete objects

CSV import of obsolete objects is still possible in this mode

Searching for obsolete objects

Use RunQuery and automatic attribute obsolescence_flag

https://www.itophub.io/wiki/media?media=2_7_0%3Adatamodel%3Aobsolescence-runquery-hypervisor.png

Be cautious to set User Preference show obsolete data before running the query, otherwise the query won't return anything!

Limitations

The obsolescence_flag field is based on a OQL expression. It is calculated only when reading the object from database. It's not taking into account not-yet-saved object modifications, which should logically affect it.

obsolescence_date won't be documented unless the iTop cron is running.
This is done in background as an asynchronous task

User Portal never takes into account the user preferences, so obsolete data are visible unless filtered by portal scopes

Default obsolescence rules

Which objects are Obsolete?

In general:

  1. Objects with a status equal to obsolete or inactive

  2. Objects being a sub-object of another one, are obsolete if their main object is. Example: Physical Interface is obsolete if its ConnectableCI is. There are two exceptions to this rule: a Virtual Machine and an Hypervisor are obsolete if and only if their own status is obsolete

  3. License expired more than 15 months ago, (Search query cannot be cached, so cautious with high volumes)

If you want to notify obsolete contacts, be aware that this will fail if the user chose to hide obsolete objects in his preference

Configuration Management core

  • Contact: status='inactive'

  • Document: status='obsolete'

CIs
  • Application Solution: status='inactive'

  • Business Process: status='inactive'

  • DB Server: status='inactive'

  • Database Schema: its DBServer is obsolete

  • Middleware: status='inactive'

  • Middleware Instance: its Middleware is obsolete

  • Network Device: status='obsolete'

  • Other Software: status='inactive'

  • PC Software: status='inactive'

  • Server: status='obsolete'

  • Web Application: its Web server is obsolete

  • Web server: status='inactive'

Miscellaneous
  • Group: status='obsolete'

  • Location: status='inactive'

  • OS Licence: Licence is not perpetual and end date defined and exceeded by more than 15 months

  • OS Patch: no obsolescence defined

  • Organization: status='inactive'

  • Physical Interface: its Device is obsolete

  • Software: no obsolescence defined

  • Software Licence: Licence is not perpetual and end date defined and exceeded by more than 15 months

  • Software Patch: no obsolescence defined

  • Subnet: no obsolescence defined

  • VLAN: no obsolescence defined

End User devices

On all end-user devices use the same logic defined on Physical Device: status='obsolete'

Virtualization Management

  • Farm: status='obsolete'

  • Hypervisor: status='obsolete'

  • Logical Interface: its Virtual Machine is obsolete

  • Virtual Machine: status='obsolete

Advanced Storage

  • Fiber Channel Interface: its Datacenter Device is obsolete

  • Logical Volume: its Storage System is obsolete

  • NAS: status='obsolete'

  • NAS File System: its NAS is obsolete

  • SAN Switch: status='obsolete'

  • Storage System: status='obsolete'

  • Tape: its Tape Library is obsolete

  • Tape Library: status='obsolete'

Datacenter

  • Enclosure: status='obsolete'

  • PDU: status='obsolete'

  • Power Source: status='obsolete'

  • Rack: status='obsolete'

Ticket

Since 2.5.0, there is no obsolescence rule on Ticket anymore as it was degrading performance.

Configuring Obsolescence

For defining your own rules: Define Obsolescence rules

标签:
由 superadmin 在 2020/08/25, 16:11 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司