This code came from Lee Lloyd at TM: Open the db2 command line as admin.
Cataloging:
list node directory
list database directory
catalog tcpip node NODE0000 remote 192.168.60.20 server 50000
terminate
db2
catalog database ISC4 as ISC4 at node NODE0000
catalog database MAGNUM as MAGNUM at node NODE0000
terminate
db2
list node directory
list database directory
Test connections:
connect to isc4 user db2admin using M@dd0x1
connect reset
connect to magqa user db2admin using M@dd0x1
connect reset
Removing catalogs:
list node directory
list database directory
uncatalog db isc4
uncatalog db magqa
terminate
db2
uncatalog node NODE0000
terminate
db2
list node directory
list database directory