Example 1: Configuring a PowerExchange Listener to Receive pwxcmd Commands
Example 1: Configuring a PowerExchange Listener to Receive pwxcmd Commands
This example configures a PowerExchange Listener to receive pwxcmd commands.
You issue pwxcmd commands from a Linux, UNIX, or Windows system that is remote from the system on which the PowerExchange Listener runs.
You must include pwxcmd command configuration statements in the DBMOVER configuration files on both systems.
To configure a PowerExchange Listener to receive pwxcmd commands:
In the DBMOVER configuration file on the system where the PowerExchange Listener runs, include an SVCNODE statement. The SVCNODE statement specifies the port on which the command-handling service for the PowerExchange Listener listens for pwxcmd commands. For example:
LISTENER=(node1,TCPIP,2480)
SVCNODE=(node1,6001)
In the SVCNODE statement:
The first parameter value, node1, is the service name, which matches the node name in the LISTENER statement.
The second parameter value, 6001, is the TCP/IP port number on which the service listens for pwxcmd commands. The port number must match the port number in the corresponding CMDNODE statement. The CMDNODE statement is in the DBMOVER configuration file on the Linux, UNIX, or Windows system from which you issue pwxcmd commands.
In the dbmover.cfg configuration file on the Linux, UNIX, or Windows system from which you issue pwxcmd commands, include a CMDNODE statement. The CMDNODE statement defines connection information for a PowerExchange Listener to which you want to send pwxcmd commands. For example:
CMDNODE=(listnode,LISTENER,remote_host,6001)
In the CMDNODE statement:
The first parameter value, listnode, is a service name. This service name can be any name you want. Specify this service name when you issue pwxcmd commands to the PowerExchange Listener.
The second parameter value, LISTENER, is the service type for a PowerExchange Listener.
The third parameter value, remote_host, is the host name of the PowerExchange Listener that you want to contact.
The fourth parameter value, 6001, is the TCP/IP port number. This port number must match the port number in the corresponding SVCNODE statement in the DBMOVER configuration file on the system where the PowerExchange Listener runs.
In the pwxcmd command that you send to the PowerExchange Listener, specify the
-service
option as follows:
pwxcmd listtask -service listnode
The service name in the pwxcmd command must match the service name in the corresponding CMDNODE statement. The CMDNODE statement is in the dbmover.cfg configuration file on the Linux, UNIX, or Windows system from which you issue pwxcmd commands.