If I'm not wrong, you should be able to record the information you want with the statistics methods provided by OMNeT++. For real-time data recording, you can look into cOutVector. In Part 5 of the OMNeT++ TicToc Tutorial 1, the statistical collection is well illustrated.