You want to know how much swap isconfigured in your server in gb.
swap -l tells us 512byte blocks, if you have more than one swap chunk then you need to sum and convert
bash-3.00# swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d1 85,1 16 16780208 16627776
/dev/md/dsk/d2 86,1 16 26780208 16111111
You can calculate it in gb with:
swap -l |awk ‘{ b+=$4 } END { print b*512/1024/1024/1024 }’