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 enable_snmp.pl script. Point to the .cfg file. The enable_snmp.pl 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 192.168.123.253 -v 2c

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

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.