4.10.1 Get host name
Function
Acquires the host name of the server that corresponds to a specified IP address, based on information registered in the target server.
This plugin assumes the following servers:
• Execution target server
This server executes the plugin, queries the DNS server, and retrieves information in the hosts file.
• Retrieval target server
This is the server whose host name is to be acquired from the IP address
If a DNS server is registered on the execution target server, the plugin queries the DNS server about the host name of the retrieval target server. If the query to the DNS server fails, the plugin acquires the host name of the retrieval target server from the hosts file on the execution target server.
Use situation
This plugin enables you to reduce the number of input properties in a service template that requires the IP address and host name of the target server.
Prerequisites
For the latest support information about [Required product in the System]/[Required products on the execution target server]/[Prerequisite product OS running in the execution target server], see the release notes.
[Required product in the System]
(1)Job Management Partner 1/Automatic Operation 10-00 or later
[Required products on the execution target server]
(1) Windows Server 2003,Standard Edition/Enterprise Edition (x86/x64) SP1 or later,Windows Server 2003 R2,Standard Edition/Enterprise Edition (x86/x64)
Note that for these Windows versions, PowerShell2.0 needs to be installed.
(2) Windows Server 2008 Standard/Enterprise (x86/x64),Windows Server 2008 R2 Standard/Enterprise/Datacenter
(3) Windows Server 2012 Standard/Datacenter, Windows Server 2012 R2 Standard/Datacenter
[Usage conditions for required products on the execution target server]
(1) The IP address and host name of the target server must be defined in the execution target system's DNS or target server's hosts file.
Cautions
(1) IPv6 cannot be specified as the IP address for the target server.
Version
01.00.04
Category
OperatingSystem/Common/Basic
Plug-in name displayed in the task log
osGetHostName
Return code
0: Normal
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 |
---|---|---|---|---|---|
OS.targetIPAddress |
IP address of the search-target server |
Specify the IP address of the search-target server. IPv6 addresses are not supported. |
-- |
Input |
R |
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. |
-- |
Input |
R |
common.returnValue |
Return value for the plugin |
The return value of this plugin stored. |
-- |
Output |
O |
OS.host2Ipaddr |
Host name of the search-target server |
The host name is set for the IP address of the specified search-target server. |
-- |
Output |
R |
OS.shortHostName |
Short host name of the search-target server |
The short host name is set for the IP address of the specified search-target server. |
-- |
Output |
-- |