Tuesday, February 21, 2012

How to restore Layer 2 full managed switch to factory default

How to restore Layer 2 full managed switch to factory default
Suitable for: TL-SG5426, TL-SL5428
There are two ways to restore Layer 2 full managed switch to factory default, one is to use the web interface, but sometimes you may not be able to log on the web interface. In this case, you should use console to restore it to factory default.
Use serial cable to connect your switch to a computer. Then power off the switch.
On your computer click start -> All Programs -> Accessories -> Communications -> Hyper Terminal to run Hyper Terminal. And there will pop up a dialog box as Picture 1 shows. Enter a name, here we use test for example. Then click OK.
Picture 1
Then you will see Picture 2, just click OK.
Picture 2
Change Port Settings as Picture 3 shows. Bits per second set to 9600, Data bits set to 8, Parity set to None, Stop bits set to 1 and Flow control set to None. Then click OK.
Picture 3
Then power on the switch, when you see Image Loader x.x.x.x, press Ctrl+U, it requires a password to enter the diagnose mode.
Picture 4
The password for TL-SL5428 is mercury while for TL-SG5426 it is sosupdate. Here we use TL-SL5428 for example. After enter mercury, you will see Picture 5.
Picture 5
Enter D and it will require you to enter the file name you want to delete. Please type startup1.cfg (startup1.cfg is the configuration file I have saved before).
Picture 6
Press Enter and type Y.

Picture 7
After that type Q and the switch will reboot automatically and then restore to factory default.
Caution: Please DO NOT do any other operations, or it may damage your switch.

Friday, February 10, 2012

Getif SNMP MIB Browser


I had a problem installing this in Windows 7, but was able to eventually get it to run.
The problem is with the Msflxgrd.ocx file which doesn't get registered in Windows 7.
This site provided some clues: http://www.ascentive.com/support/new/support_dll.phtml?dllname=Msflxgrd.ocx
And so did this site: http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/471a9b26-88c1-4765-9417-bae27ff8fe3b
The manual process goes something like this:
Copy the Msflxgrd.ocx file to the windows\system32. That file can be found in the 'ascentive.com' link above. I also found this file in the sysWOW64 directory, but Windows 7 was giving me an error message saying it was not available.
Next, I did a right click on Start >> Accessories >> Command Prompt and selected 'Run as Administrator'.
Then I executed the following from the command line:
%systemroot%\SysWoW64\resvr32 \windows\sysWOW64\Msflxgrd.ocx
I had to run Getif as admin, but I expect changing permissions should be trivial.