We have recently migrated from Cisco to MS Teams. I need to check if there still any traffic in call manager. How do I check that. And also if there is any traffic how can I check which numbers and devices are still using CUCM infrastructure.
As @Jaime Valencia mentions, you can use the Call Detail Record Analysis and Reporting Tool (CAR Tool) to view Call Detail Records to see if there has been any recent activity. (Google "Cisco CAR Tool" and read up a bit. Feel free to ask questions here about what you read.
If you find activity in the CDRs, that will show MACs and/or Device Names.
In CUCM navigate to Device > Phone and do a search for "Last Active" to see what devices might still be using your CUCM (registered).