On ArubaOS-Switch (formerly Provision switches)
From the CLI; capture a show run to a text file and save it.
From the Web GUI. Select Configurations> Management. In the right side, in the Download box, Click Download and save the file locally. It will default to config.pcc. PCC files can be opened with notepad or similar.