In this post I will show you how to enable SNMP on a Linksys/Cisco SLM2008. All credits go out for Romain Boissat who made this post:

First off all you need the download the script from and need to have a Linux box with Perl installed.

The first time I ran the script on Debian 6 I got the following error:


On Debian 6 you have to install the package libwww-perl to get the script working:

apt-get install libwww-perl

After you installed the libwww-perl module you can rerun the script:

quote from

$ ./ <SWITCH IP>
Obtaining data from Switch: <SWITCH IP>
Administrator Username: [ admin ]: <USER>
Administrator Password: [ admin ]: <PASSWORD>
Current Body Checksum: <SOME HEXADECIMAL VALUE>
Current Header Check Byte: <SOME HEXADECIMAL VALUE>
Both community strings are limited to 15 characters.
New read-only community string: [ public ]: <STRING RO>
New read-write community string: [ private ]: <STRING RW>
End - SNMP Should be enabled.

When the above steps ends with an error. You can use the offline method. Just make a backup of your config in the GUI of the SLM2008. Thank copy the .cfg file to a linux box in my case this was Debian. Start the script. Point to the .cfg file. The will generate a new .cfg file.


The next step is to restore the changed config to the SLM2008 switch. Open the GUI and upgrade the configuration with the new “snmpenabled” config via Admin – Save configuration – Upgrade:


With snmpwalk you can verify if the new SNMP setup is working:

snmpwalk -c public -v 2c

You can use Cacti to graph the switchports. In the screenshot below you see a running vMotion of a small VM:




4 thoughts on “How to enable SNMP on a Linksys/Cisco SLM2008 switch

  1. I just enabled snmp on my SLM2008 via the online method.
    Just what I needed from the beginning when I bought the switch some years ago.
    Good work from Romain Boissat.

  2. Some simple mods will make the script work for SLM2005 instead.
    Change the following:
    Lines 44 and 65: 0x1F0 to 0x1D9
    Lines 45 and 66: 0x1F7 to 0x1E0
    Lines 47 and 67: 0x20C to 0x1F5
    The script should work fine after that. Just the data addresses were changed between models, adjust for that and everything is good.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.