5324 Password recovery

I have purchased a used 5324 switch, need to configure it for our network however I don't have password for it and cannot login to console to configure it. I can login using hypreterminal using IP address it is not connecting to COM port either. Please help.

RE: 5324 Password recovery

Erase FLASH FileIn some cases, the device configuration must be erased. If the configuration is erased, allparameters configured via CLI, EWS or SNMP must be reconfigured.Erasing the Device Configuration1 From the Startup menu, press [2] within two seconds to erase flash file. The followingmessage is displayed:Warning! About to erase a Flash file.Are you sure (Y/N)? y2 Press Y. The following message is displayed.Write Flash file name (Up to 8 characters, Enter for none.):configFile config (if present) will be erased after systeminitialization======== Press Enter To Continue ========3 Enter config as the name of the flash file. The configuration is erased and the devicereboots.4 Repeat the device initial configuration.