You can view macro error information in the macroData log file using the show log data command and specifying the macroData keyword for the category.
![]() |
Note: Each execution of a macro, by any user and by any name, obtains a unique ID. This ID appears in the starting and ending message of the macro output and for each log message in the macroData log. |
show log data
host1(config)# show log data category macroData severity debug NOTICE 01/07/2006 09:46:57 macroData: Macro 'badInterfaceCommandMacro' in file 'testInterfaceCommand.mac' starting execution (Id: 402) on vty, 0 ERROR 01/07/2006 09:46:57 macroData: (Id: 402) Command error: interface fastEthernet 500, Command execution error NOTICE 01/07/2006 09:46:57 macroData: (Id: 402) commandError is interface fastEthernet 500 NOTICE 01/07/2006 09:46:57 macroData: (Id: 402) commandErrorStatus is Command execution error NOTICE 01/07/2006 09:46:57 macroData: (Id: 402) runStatus is Loop:500 NOTICE 01/07/2006 09:46:57 macroData: Macro 'badInterfaceCommandMacro' in file 'testInterfaceCommand.mac' ending execution (Id: 402) on vty, 0