# Using dectrace

Perform the following steps to run dectrace:

Step | Action
1 | Run agtrace or itrace to instruct the AG driver to send NMS ISDN protocol stack trace messages to oammon.
2 | For CG boards, run oammon to configure your boards as described in the board keyword file and to enable error logging. For AG boards, this is done automatically.
3 | Run the NMS ISDN protocol stack.
4 | Run dectrace. For CG boards, use the oammon -f command to specify the log file on the command line. For AG boards, the default name of this file is agpierror.log.