db2gateways - Managing Db2 gateways command

Allows user to manage the pingable gateway IP of the routing table.

Authorization

Root user authority is required on Linux® operating system.

Required connection

None

Command syntax

Read syntax diagramSkip visual syntax diagramdb2gateways -g-get-u-update-gateway_ipIP address-devdevice name -h-help

Command parameters

-g|-get
Gets the valid pingable gateway IP from the system routing table.
-u|-update
Updates the specified gateway IP for the device name in the system routing table.
-gateway_ip IP address
Input parameter specified with -u|-update option. Specifies the valid pingable input gateway IP IP address to be updated in the system routing table.
-dev device name
Input parameter specified with -u|-update option. Specifies the valid device device name for which the pingable gateway IP needs to be updated in the system routing table.
-h|-help
Displays the command usage information.

Examples

  1. The db2gateways utility is available on the Db2 image at the following path.
    media_path/db2/platform/install/db2gateways
    where media path refers to the path where the copy of the Db2 image is located and platform represents the operating system used.
  2. To get the pingable gateway IP from the routing table, enter the following command.
    media_path/db2/platform/install/db2gateways -get
  3. To update the pingable gateway IP to the routing table, enter the following command.
    media_path/db2/platform/install/db2gateways -update -gateway_ip <IP_address> 
       -dev <device_name>
    where media_path refers to the path where the copy of the Db2 image is located, platform represents the operating system used, IP_address is the pingable IP of gateway, and device_name is the adapter name.