Sosreport is used by both Red Hat and Canonical support as the primary tool used to collect information from customers’ machines when they are having an issue. It can both collect files and run commands. It’s open source and you can use it too.
I’m doing a Show & Tell session on it in this coming UOS: http://summit.ubuntu.com/uos-1505/meeting/22457/sosreport-for-troubleshooting.
I’ve got about 10-15 minutes of stuff to show. Questions are welcome.