The SunOS command, swap -s, displays available swap space. See swap(1M).
Example: Use the swap command:
demo% swap -s total: 40236k bytes allocated + 7280k reserved = 47516k used, 1058708k available
demo% /usr/sbin/dmesg | grep mem mem = 655360K (0x28000000) avail mem = 602476544