此内容没有您所选择的语言版本。

2.5. Script - Server


Overview

Expand
Table 2.49. Overview
Description: A resource with a command line executable or script as its management interface
Singleton: no
Plugin: Script

Child Resource Types

none

Autodiscovery Process Scans

none

Connection Properties

Expand
Table 2.50. 
Name Description Required Internal Name
Executable The full path to the command line executable or script yes executable
Working Directory When the executable is invoked, this will be its working directory. no workingDirectory
Environment Variables Environment variables that are set when executing the executable no environmentVariables
Availability Execute Check If specified and true, the ability to successfully execute the executable can determine whether or not the managed resource is considered up and available. If you set this to true, you normally do not set the availability regex settings in order to allow availability to be determined based solely on the successful execution, regardless of the exit code or output. If this is false, setting one of the avail regex settings will override it as if it were true. no availabilityExecuteCheck
Availability Exit Code Regex If specified, the executable must return an exit code that matches this regular expression if the managed resource is to be considered up and available no availabilityExitCodeRegex
Availability Output Regex If specified, the executable must output text that matches this regular expression if the managed resource is to be considered up and available no availabilityOutputRegex
Availability Arguments If the executable needs to be executed in order to determine availability, these are the arguments that will be passed to the executable. If you do not specify the regex settings and you set the execute check setting to false, the executable will not be executed and these arguments will not be used - in this case, availability will be determined by the mere existence of the executable file. no availabilityArguments
Version Arguments The arguments to pass to the executable that will help determine the version of the managed resource no versionArguments
Version Regex The regex that can pick out the version from the executable output. If the regex has a captured group, its matched content will be used as the version. If there is no captured group, the entire output will be used as the version. no versionRegex
Fixed Version If specified, this will be the version of the managed resource - the executable will not be invoked to determine it. no fixedVersion
Description Arguments The arguments to pass to the executable that will help determine the managed resource description. This can be arguments to enable verbose version output. no descriptionArguments
Description Regex The regex that can pick out the description from the executable output. If the regex has a captured group, its matched content will be used as the description. If there is no captured group, the entire output will be used as the description. no descriptionRegex
Fixed Description If specified, this will be the description of the managed resource - the executable will not be invoked to determine it. no fixedDescription

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

none

Configuration Properties

none

Operations

Expand
Table 2.51. Metrics
Name Description
Execute Executes the executable with a set of arguments and returns the output and exit code.

Package Types

none
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat