To use the CLI macro function, write a CLI macro file, and then save the file with the mac extension in the directory specified for the macrodir parameter in the BCM GUI configuration file. For details about CLI macro files, see How to write a CLI macro file.