getting available physical RAM

What command should I be using on Solaris 9 to get an accurate representation of the available physical RAM?

you could have a look in your prtdiag(M) output or prtconf(M) or swap(M)

gP

What I meant to say is if i have for example 6GB of physical RAM and 3 GB's are being used, how can I find that?
top shows:

swap -s shows:

So top seems to be showing that 3 GB's are being used. Where can I see that in the swap output?

Hmm... what about....

$ vmstat 1 2 | sed -n '$ p' | awk '{print $5}'

Cheers
ZB

Thanks zazzybob. That's what I was looking for. This is the code I was using it for, since I wanted the percentage of physical RAM used.

TOTAL_RAM=`prtdiag | grep '^Memory size' | awk -F: '{ print $2 }' | awk '{ print $1 }'`
(( TOTAL_RAM = TOTAL_RAM * 1000 ))

AVAIL_RAM=`vmstat 1 2 | sed -n '$ p' | awk '{print $5}'`

RAM_PERC=`echo "scale = 2; $AVAIL_RAM/$TOTAL_RAM" | bc | sed 's/\.//'`
(( RAM_PERC = 100 - RAM_PERC ))