For further clarification: I'm looking for some hardware way of factory-resetting a D-Link DGS3224TGR switch (as any terminal access to this switch is restricted by password).
There is no "reset" button on it; the user manual doesn't say a thing, and a service manual is not to be found.
This is no sketchy activity, I assure you; the thing is, that the previous network admin who knew the password, well, died (and thus took the password with him).
Best Answer
Try the following (quote from other D-link switch manuals)
In the "Password Recovery Mode" only the following commands can be used.
The reset config command resets the whole configuration back to the default values, with the exception of the account settings. The reboot command exits the Password Recovery Mode and restarts the switch. The reset account command deletes all of the created user accounts. The reset password command resets the password of the specified user. If a username is not specified, the password of all the users will be reset. The show account command displays all previously created accounts.
if this doesn't work, contact D-Link. They know how to generate a password based on the MAC -- this you can learn from the notes on firmware 3.01.030: