Attached is a tool called MGInfo (composed by Clive Eastwood) which allows you to display licensing, and some summary information about your management group. It is run from a command prompt and you can output the results to a text file by using the following command:-
c:\mginfo /l >mginfo.txt
MGInfo can be run from a command prompt (not Opsmgr shell) on the RMS itself or remotely. NOTE:-Running remotely will require you to copy the SDK DLL’s Microsoft.EnterpriseManagement.OperationsManager.Common.dll and Microsoft.EnterpriseManagement.OperationsManager.dll to the same folder as MGInfo.