You can run below command racadm get idrac.info "ServerGen" field of the output will say whether it is a 12G or 13G server. All 12G are iDRAC 7 and all 13G are iDRAC8.
Hello all.  I suspect this is covered in some document somewhere but I cannot find out how.  We have many blades, some are idrac 7 and some are idrac 8.  Using the idracadm tool, the getversion command only gives me a numbered version like 2.50.50 etc...  how do I know if we are dealing with a v8 or a v7 idrac?   Thanks in advance
Determine idrac major version with idracadm tool