How to set SG200-26P to factory default settings

This thread was helpful, even though it’s for a smaller, 8-port switch.  Basically:

  1. Disconnect the switch from all possible DHCP servers (unless you like playing hide-and-seek).
  2. Connect the link port directly to your laptop’s Ethernet port.
  3. Configure your laptop’s network interface to be in the network, but avoid the
  4. Now find a small pin (I used the one from the office stepler) and push into the Reset hole of the switch for about 30 seconds.  You’ll see all the switch ports blink when you are done.
  5. Remove the pin.
  6. Start pinging … it’ll take a few minutes before you get a reply.
  7. Once the ping starts working, navigate to .  It’ll help if your browser doesn’t have any proxy servers configured.
  8. Login with username cisco, password cisco.
  9. ???
  10. PROFIT!


RT initialdata and Perl’s nested map

Request Tracker (aka RT) comes with a very powerful, yet not too widely known tool – initialdata.  This helps with automating configuration of the new system and data migration.  Combined with the power of Perl’s map() function, some really awesome things can be done in a jiffy.

Here is a snippet I’ve used recently, to set a list of access rights to a list of queues:

push @ACL, map {
  my $queue = $_;
  map {
      GroupDomain => 'SystemInternal',
      GroupType => 'Everyone',
      Queue => $queue,
      Right => $_,
  } qw(
} qw(

Nginx and Memcached, a 400% boost!

Here is an idea to try on a slow weekend: Nginx and Memcached, a 400% boost!



Memcached, the darling of every web-developer, is capable of turning almost any application into a speed-demon. Benchmarking one of my own Rails applications resulted in ~850 req/s on commodity, non-optimized hardware – more than enough in the case of this application. However, what if we took Mongrel out of the equation? Nginx, by default, comes prepackaged with the Memcached module, which allows us to bypass the Mongrel servers and talk to Memcached directly. Same hardware, and a quick test later: ~3,550 req/s, or almost a 400% improvement! Not bad for a five minute tweak!