find physical disk type : SAS / SATA

Hi,

Is there an easy way to find the disk-type from the command line or with another api ? sdparm works for SAS but not for SATA, hdparm works for SATA but not SAS.

Thanks

It'd help to know what your system was.