Catalog the remote DB2 client node.
Logging in sets up your DB2 environment variables by executing the environment scripts. You can also execute these scripts manually as follows.
In Korn shell, source the db2profile file:
. $HOME/sqllib/db2profile
In C shell, source the db2cshrc file:
source $HOME/sqllib/db2cshrc
where $HOME is the home directory of the DB2 instance owner.
catalog tcpip node MYNODE remote MYHOST server XXXX
where MYNODE is the node name, MYHOST is the host name or IP address of the data server, and XXXX is the data server port number.
list node directory
DB2 should return something similar to:
Node 1 entry: Node name = MYNODE Comment = Directory entry type = LOCAL Protocol = TCPIP Hostname = MYHOST Service name = XXXX