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
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.
- -h|-help
- Displays the command usage information.
Examples
-
The db2gateways utility is available on the Db2 image at the following path.
where media path refers to the path where the copy of the Db2 image is located and platform represents the operating system used.media_path/db2/platform/install/db2gateways
-
To get the pingable gateway IP from the routing table, enter the following command.
media_path/db2/platform/install/db2gateways -get
-
To update the pingable gateway IP to the routing table, enter the following command.
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.media_path/db2/platform/install/db2gateways -update -gateway_ip <IP_address> -dev <device_name>