Script sql-schema on for linux

Hi all

On my new job we work with MS-SQL on Red Hat Enterprise. Our laptops run Red Hat as well. I'm currently looking for an script/tool to generate the schemas of the various instances that we run so that I can compare that.