4.13.18 Output OS type
Function
Outputs the type of OS of the execution target server.
The plugin outputs one of the following to the standard output (depending on the execution target server's OS):
• OS is Windows: OSType:Windows
• OS is Linux: OSType:Linux
Use situation
You use this plugin in order to perform different processing depending on the type of OS in the service template.
The following explains how to use this plugin:
1. Execute this plugin on the execution target server.
2. Use the branch by property value plug-in to check the OS type is output.
Prerequisites
For the latest support information about [Required products on the execution target server]/[OS running in the execution target server], see the release notes.
In addition, the following OS and products use abbreviations. For the abbreviations of OS and products, see the "Preface".
[Required products on the execution target server]
None.
[OS running in the execution target server]
(1) Windows Server
(2) Red Hat Enterprise Linux Server
(3) Oracle Linux
[Usage conditions for the target server]
None.
Version
04.00.00
Plug-in tags
Gather OS information,Windows,Linux
Plug-in name displayed in the task log
osGetOsInfo
Return code
0: Normal
21: Error (invalid environment) Command cannot be found (error detected in the plugin script)
27: Error (check task logs for the nature of error)
41: Error (error detected in plugin) Missing property (error detected in plugin script)
Property list
The following table lists the properties:
|
Property key |
Property name |
Description |
Default value |
I/O type |
Required |
|---|---|---|---|---|---|
|
plugin.destinationHost |
Host name of the execution target server |
Specify the host name or IP address of the server on which this plugin will be executed. IPv6 addresses are not supported. |
localhost |
Input |
R |
|
common.osKind |
OS type |
This property indicates Windows or Linux as the OS type of the execution target server. |
-- |
Output |
O |
|
common.returnValue |
Return value for the plugin |
The return value of this plugin stored. |
-- |
Output |
O |