History search for specific command

How to find out history of specific command run by all users in solaris server ?

I recall there is some stat of executiuon counts. If you want to know every exec of every user, there is no record.