Performing a hard reset on an Aruba CX switch typically involves pressing and holding the reset button for a specified amount of time, such as 5 seconds, and then releasing it. This action will initiate a reboot of the switch and return it to factory default settings, including the credentials.