Outdated documentation

You are looking at the documentation for an older release. For the latest information, please see current release documentation.

管理员界面

此软件包没有管理员界面,但是它允许为配置项类添加额外的输入字段。

额外的配置项字段

It is possible to add additional reference fields to refer to different data in OTRS, like to other configuration items, services and agents.

若要添加配置项的字段:

  1. 在管理员界面中打开 CMDB 设置 组的 配置项 模块。
  2. 选择一个配置项类并点击 修改类定义 按钮。
  3. 为类定义添加新的字段。

下面几节描述了可能的输入字段。

ReferenceCI 字段

此字段添加带有自动完成功能的输入字段,以便在配置项对话框中搜索其它配置项。需要以下示例配置来插入此类字段:

- Key: testci
  Name: Test CI
  Searchable: 1
  Input:
    Type: ReferenceCI
    Required: 0
    Reference:
      Name: Computer
      LinkType: AlternativeTo
      LinkDirection: Source
      ImportExportKey: Name

添加或编辑此资源时,可以使用以下设置。 标有星号的字段是必填字段。

Key *
必须是唯一的,并且只接受字母和数字字符。 如果更改了,则无法从旧定义读取数据。
Name *
表单中字段的标签。 可以在此字段中输入任何类型的字符,包括大写字母和空格。

注解

建议始终使用英文单词作为名称。

参见

Names can be translated into other languages with custom language files. For more information, see the Custom Language File chapter in the administration manual.

Searchable
定义字段是否可搜索。 可能的值为 01
Input *

启动输入字段的定义。

Type *
定义元素的类型。 必须缩进为逻辑块。 在本例中值为 ReferenceCI
Required
定义字段是否为必填字段。 可能的值为 01
Reference

启动引用字段的定义。

Name
定义可以搜索的配置项的类。
LinkType

定义将在保存值时创建的链接的类型。 可能的值为:

  • DependsOn
  • AlternativeTo
  • RelevantTo
  • Includes
  • ConnectedTo
LinkDirection
定义链接的方向。可能的值是 SourceTarget
ImportExportKey
定义用于标识引用的配置项的值。可能的值是 NameNumber 或已配置的字段键。

为输入字段设置值之后,该值将用于设置到给定配置项的链接。如果已经有一个值,那么旧值将被取消链接。如果类定义中的引用字段已经扩展为设置 CountDefault,那么也可以链接几个配置项。

对于此字段的导出和导入,使用名称和配置项编号。 如果找不到要导入的配置项,则它将导入两次,以验证链接所需的链接配置项是否已经导入。

导出值示例:ConfigItemName1

ReferenceService 字段

此字段添加具有自动完成功能的输入字段,以在配置项对话框中搜索服务。 需要以下示例配置来插入此类字段:

- Key: testservice
  Name: Test Service
  Searchable: 1
  Input:
    Type: ReferenceService
    Required: 0
    Reference:
      LinkType: AlternativeTo
      LinkDirection: Source

添加或编辑此资源时,可以使用以下设置。 标有星号的字段是必填字段。

Key *
必须是唯一的,并且只接受字母和数字字符。 如果更改了,则无法从旧定义读取数据。
Name *
表单中字段的标签。 可以在此字段中输入任何类型的字符,包括大写字母和空格。

注解

建议始终使用英文单词作为名称。

参见

Names can be translated into other languages with custom language files. For more information, see the Custom Language File chapter in the administration manual.

Searchable
定义字段是否可搜索。 可能的值为 01
Input *

启动输入字段的定义。

Type *
定义元素的类型。 必须缩进为逻辑块。 在本例中值为 ReferenceService
Required
定义字段是否为必填字段。 可能的值为 01
Reference

启动引用字段的定义。

LinkType

定义将在保存值时创建的链接的类型。 可能的值为:

  • DependsOn
  • AlternativeTo
  • RelevantTo
  • Includes
  • ConnectedTo

可以在系统配置中定义其它的链接类型。

LinkDirection
定义链接的方向。可能的值是 SourceTarget

为输入字段设置值之后,该值将用于设置到给定配置项的链接。如果已经有一个值,那么旧值将被取消链接。如果类定义中的引用字段已经扩展为设置 CountDefault,那么也可以链接几个配置项。

对于此字段的导出和导入,使用服务的名称。

导出值示例:Service 1

ReferenceUser 字段

This field adds an input field with auto-completion feature to search for agents in the configuration item dialog. The following example configuration is needed to insert this kind of field:

- Key: testuser
  Name: Test User
  Searchable: 1
  Input:
    Type: ReferenceUser
    Required: 0

添加或编辑此资源时,可以使用以下设置。 标有星号的字段是必填字段。

Key *
必须是唯一的,并且只接受字母和数字字符。 如果更改了,则无法从旧定义读取数据。
Name *
表单中字段的标签。 可以在此字段中输入任何类型的字符,包括大写字母和空格。

注解

建议始终使用英文单词作为名称。

参见

Names can be translated into other languages with custom language files. For more information, see the Custom Language File chapter in the administration manual.

Searchable
定义字段是否可搜索。 可能的值为 01
Input *

启动输入字段的定义。

Type *
定义元素的类型。 必须缩进为逻辑块。 在本例中值为 ReferenceUser
Required
定义字段是否为必填字段。 可能的值为 01

For the export and import of this field the login of the agent is used.

导出值示例: root@localhost