physical memory

what is the command to find the physical memory in soalris OS and how to find whether paging is happening or not ?

prtconf -v | grep Memory

or

prtdiag -v

vmstat 5 10 for example

I need a script which sends a mail when paging is happening and which process is causing paging?