Diagnostic data collection including trace spooling

From C-7KDB897