Hitachi

JP1 Version 13 JP1/IT Desktop Management 2 Configuration Guide


1.6.12 Procedure for automatically setting the connection destination via Internet gateway for agents

If your agent connects to management server through an Internet gateway, you can distribute setting information to managed computers to determine which Internet gateway to connect to, and then automatically determine the appropriate destination Internet gateway from IP address of the agent. This section describes how to automatically configure an Internet gateway to which agent connects.

You can use this function in JP1/IT Desktop Management 2 - Agent. Note that you cannot use this function in relay systems, agents for UNIX, and agents for Mac.

Organization of this subsection

(1) Automatically setting and change the host system to be connected via the Internet gateway

To automatically configure or change the Internet gateway you want to connect to, create an Internet gateway file for connection destinations (itdmigw.conf) in advance and distribute it to managed computers. The destination Internet gateway is automatically set at certain timings after distribution.

Create an Internet gateway file for connection destinations

The Internet gateway file for connection destinations is a file used to determine which Internet gateway to connect to. This file defines the range of managed computer's IP addressing pairs with the corresponding destination Internet gateway. For more information about how to create an Internet gateway file for connection destinations, see (2) Creating the Internet gateway file for connection destinations (itdmigw.conf).

Distribute the Internet gateway file for connection destinations to managed computer

When JP1/IT Desktop Management 2 - Agent is installed using the imported installation set, Internet gateway file for connection destinations is stored in the following folder on the managed computer:

JP1/IT Desktop Management 2 Agent-installation-folder\MASTER\DB

If you register the Internet gateway file for connection destinations as a package and then create a job that distributes that package, you can distribute the package to managed computers. When doing so, specify the above folder as the distribution destination.

For computers that are not yet managed, you can store the file manually.

Time when the Internet gateway connection destination is determined

After you store the Internet gateway file for connection destinations on a managed computer, wait until polling (a job inquiry from the agent) is performed or restart the OS on the managed computer. The Internet gateway to which the agent is connected is set according to the contents of the Internet gateway file for connection destinations.

The following three types of polling can be used to determine the connection destination for the agent:

To reset the connection destination you have set, perform either of the following operations, and then wait for polling to be performed or restart the OS:

If you move a managed computer and change its IP address, all you have to do to change the connection destination to an appropriate Internet gateway is to wait for polling to be performed or restart the OS. End users need not be aware of changes to connection destinations.

If connection destinations of agents are automatically set or changed based on the Internet gateway file for connection destinations, log data for each agent is collected in the installation-folder\LOG\USER.LOG file. For details about logs relating to automatic changes to connection destinations, see the JP1/IT Desktop Management 2 Distribution Function Administration Guide.

Tip

If multiple IP addresses are specified for an agent, the agent connects to an Internet gateway by using the IP address that has the highest priority defined by the operating system. If the connection succeeds, that system is set as the connection destination of the agent.

Relationship between automatic changes to connection destinations and other functions

Automatic changes to connection destinations by using the Internet gateway file for connection destinations might not be possible in conjunction with other JP1/IT Desktop Management 2 functions. Note the following:

To disable the Internet gateway connection destination settings in the Internet gateway file for connection destinations, perform one of the operations listed below:

(2) Creating the Internet gateway file for connection destinations (itdmigw.conf)

The Internet gateway file for connection destinations is a text file named itdmigw.conf. The following describes how to create it.

Format of the Internet gateway file for connection destinations

In the Internet gateway file for connection destinations, define the IP address ranges of managed computers and the corresponding connection Internet gateway destinations. You can define one combination per line. Separate items by using commas (,). A line beginning with a semicolon (;) is handled as a comment. Note that the last line cannot end with a line break. In addition, use UTF-8 for the character code of the file.

The following shows the format of the Internet gateway file for connection destinations.

[IGW]
minimum-IP-address,maximum-IP-address,host-name-or-IP-address-of-the-internet-gateway,internet-gateway-port-number,port-number-#1-used-by-agent,port-number-#2-used-by-agent,communicate-directly-with-the-higher-system-if-the-internet-gateway-is-unavailable,authenticate-user,user-ID-of-internet-gateway-server,Password-of-internet-gateway-server,use-proxy-server,host-name-or-IP-address-of-proxy-server,port-number-of-proxy-server,user-ID-of-proxy-server,password-of-proxy-server,ignore-certificate-errors,file-split-size
minimum-IP-address,maximum-IP-address,host-name-or-IP-address-of-the-internet-gateway,internet-gateway-port-number,port-number-#1-used-by-agent,port-number-#2-used-by-agent,communicate-directly-with-the-higher-system-if-the-internet-gateway-is-unavailable,authenticate-user,user-ID-of-internet-gateway-server,Password-of-internet-gateway-server,use-proxy-server,host-name-or-IP-address-of-proxy-server,port-number-of-proxy-server,user-ID-of-proxy-server,password-of-proxy-server,ignore-certificate-errors,file-split-size
    :

The following table lists and describes the items in the Internet gateway file for connection destinations.

Section

Item

Description

Value that can be entered

Required?

IGW

Specify the Internet gateway server to which the agent is connected.

Required

Minimum IP address

Specify the minimum IP address in the range of the IP addresses of managed computers.

Single-byte numbers in xxx.xxx.xxx.xxx format

Required

Maximum IP address

Specify the maximum IP address in the range of the IP addresses of managed computers.

Single-byte numbers in xxx.xxx.xxx.xxx format

Required

Host name or IP address of the Internet gateway

Specify host name or IP address of the Internet gateway.

For a host name, a maximum of 255 single-byte alphanumeric characters

For an IP address, single-byte numbers in xxx.xxx.xxx.xxx format

Required

Internet gateway port number

Specify port number of the Internet gateway.

Single-byte numeric value in the range 1 to 65535

Required

Port number #1 used by agent#

Specify the first of the two port numbers to be used in agent.

Single-byte numeric value in the range 1 to 65535

Required

Port number #2 used by agent#

Specify the second of the two port numbers to be used in agent.

Single-byte numeric value in the range 1 to 65535

Required

Communicate directly with the higher system if the Internet Gateway is unavailable

Specify whether to communicate directly with the higher system if the Internet gateway is unavailable.

Specify one of the following as a single-byte numeric value:

1: Communicate

0: Do not communicate

Required

Authenticate user

Specify whether to authenticate users when they connect to the Internet gateway.

Specify one of the following as a single-byte numeric value:

1: Authenticate

0: Do not authenticate

Required

User ID of the Internet gateway server

Specify user ID for authenticating the Internet gateway.

Up to 276 ASCII characters other than ASCII control

Required when "Authenticate user" is set to 1. If 0, the value is ignored.

Password of the Internet gateway server

Specify password for authenticating the Internet gateway.

Up to 48 ASCII characters other than ASCII control

Required when "Authenticate user" is set to 1. If 0, the value is ignored.

Use proxy server

Specify whether to use a proxy server.

Specify one of the following as a single-byte numeric value:

1: Use proxy server

0: Do not use proxy server

Required

Host name or IP address of the proxy server

Specify host name or IP address of the proxy server when using a proxy server to communicate with the Internet gateway.

For a host name, a maximum of 249 single-byte alphanumeric characters

For an IP address, single-byte numbers in xxx.xxx.xxx.xxx format

Required when "Use proxy server" is set to 1. If 0, the value is ignored.

Port number of the proxy server

Specify port number of the proxy server.

Single-byte numeric value in the range 5001 to 49151

Required when "Use proxy server" is set to 1. If 0, the value is ignored.

User ID of the proxy server

Specify the user ID to authenticate users when connecting to the proxy server.

Up to 276 ASCII characters other than ASCII control

Optional

If "Use proxy server" is set to 0, the value is ignored.

Password of the proxy server

Specify the password to authenticate users when connecting to the proxy server.

Up to 48 ASCII characters other than ASCII control

Optional

If "Use proxy server" is set to 0, the value is ignored.

Ignore certificate errors

Specify whether the connection to the Internet gateway is an error when the server certificate expires.

Specify one of the following as a single-byte numeric value:

1: Handle as an error

0: Do not handle as an error

Required

File split size

Specify the split size of the upload file in KB.

Single-byte numeric value in the range 10 to 102400

Required

#: If you have changed the port number used by agent, restart agent device.

Important

After creating the Internet gateway file for connection destinations, it is strongly recommended that you use checkitdmigw commands to check whether the file format is met, obfuscate the file, and then capture it to installation set or distribute it to the respective agent. For more information about checkitdmigw commands, see 8.14 checkitdmigw (checking the format of the Internet gateway file for connection destinations).

The following shows the notes for the Internet gateway file for connection destinations.

Sample Internet gateway file for connection destinations

The following is a sample Internet gateway file for connection destinations.

[IGW]
172.17.12.1, 172.17.12.250, igwserver01, 443, 31024, 31025,0, 1, igwuser01, igwpwd01,  1, proxyserver01, 8080, proxyuser01, proxypwd01, 0, 1024
172.17.13.1, 172.17.13.250, igwserver02, 443, 31024, 31025,1, 1, igwuser02, igwpwd02,  1, proxyserver02, 8080, proxyuser02, proxypwd02, 0, 1024
0.0.0.0, 255.255.255.254, igwserver03, 443 , 31024, 31025 ,0, 1, igwuser03, igwpwd03,  1, proxyserver03, 8080, proxyuser03, proxypwd03, 0, 1024

In this example, if the IP address of the managed computer is 172.17.13.6, the connection-destination Internet gateway server is a host whose name is igwserver02, and uses the user ID igwuser02 and password igwpwd02 when authenticating the Internet gateway. The proxy server proxyserver02 is used when the Internet gateway is connected, and the user ID proxyuser02 and password proxypwd02 are used when the proxy server is authenticated. In addition, if communication with the Internet gateway is not possible, do not communicate with the higher system directly.

In the file for connection destinations, you can define 0.0.0.0 to 255.255.255.254 (all IP addresses) on the last line of each section to indicate a connection destination that is to be used if no appropriate IP address is found. In this example, for computers with IP addresses outside the range from 172.17.12.1 to 172.17.12.250 and from 172.17.13.1 to 172.17.13.250, the connection-destination Internet gateway server is igwserver03.

Note after distribution of the Internet gateway file for connection destinations

When you change the IP address of connected Internet gateway after configured the Internet gateway by distributing the Internet gateway file for connection destinations to managed computers, you must redistribute the Internet gateway file for connection destinations with the new IP address to managed computers.