Use the ctgadmin -a trace command to control Gateway daemon and JNI trace.
ctgadmin -a trace [-tfile=<filename>][-tfilesize=<number>][-tlevel=<number>]
[-truncationsize=<number>][-dumpoffset=<number>]|-fulldatadump][-adminport=<port>]
Specifying -tlevel value between 1 and 4 turns Gateway trace on and specifying a value of 0 turns Gateway trace off.
ctgadmin -a trace [-jnifile=<filename>][-jnilevel=<number>][-adminport=<port>]
Specifying -jnilevel value of 1 turns JNI trace on and specifying a value of 0 turns JNI trace off.
ctgadmin -a trace[-adminport=<port>]
If the default port is not used, you must use the -adminport option.