For SATA SSD, I know that there exists an open source program named hdparm for secure erase by issuing ATA command and this tool has been embedded within linux operating system. For SAS SSD, I want to know whether there is a similar tool that can be used for secure erase for all kinds of SAS SSD. Thank you in advance.
It varies by vendor, but mostly the
sg_format tool (as found in the
sg3_utils package) will suffice.
All SanDisk Lightning SSDs are SAS and support the SCSI format unit command which will securely erase all user data.