(Before anyone says anything , yes, I know SNMP is not an advertised feature of the SLM2008, but where's the fun in that?)
So does anyone know how to edit the switch.cfg file generated by the device when you go to save the configuration? (No, its not text, its binary, and its "obviously" checksummed in some manner, since any changes to the file cause it to be rejected when attempting to upload it.
It seems SNMP is enabled .. sorta.. I'm not entirely certain if the firmware tries to disable it intentionally and fails due to a bug, or if there's some other problems with SNMP...
If you reset the device to factory defaults, either by hitting the reset button long enough or via the "Admin->Factory Default" menu option, SNMP is left enabled. (Note the "Admin->Factory Default" option is the way to reset everything but keep a different IP address)
Note SNMP goes away as soon as you change anything on the System Settings page. (Even if you leave the default password as default.) Tweaking the other pages does not seem to... (Albeit, I've not gone through every setting.)
Looking at a few config files, it "seems" fairly obvious the default system password, the default read-only, and read-write community strings are in there, so the question becomes, how to edit the config file, and change the passwords......
Any ideas, or anyone ever poked that far under the covers?
I find the following script I wrote works fairly successfully.
Configure the switch as you wish, then run the script.
Give it a hostname/ip address, or the name of a config file you've downloaded. It'll prompt for adminstrator name, and password, if its a remote host.
Its not had a great deal of testing, since I've only got the one switch, but it worked in my case. (To change the read-write private string, and re-enable SNMP). I'd not make the community passwords too long, since there's obviously no documentation on maximum length. (besides the obvious "public" == 6 characters, and "private" == 7 characters).... I chose a 15 character maximum based on some guesses from other strings in the cfg file, but it could be wrong, so perhaps keeping them short would be best.
Web enteredSystem Location does not appear in SNMP, but the System Name does, you can however do a snmpset, and change it till the next reboot. If there's a way to configure SNMP traps, I don't know about it.
If it blows up, you're on your own, no guarentees of fitness for any purpose are provided, but I hope it helps someone in the future...
Now I need to go configure cacti monitoring against it.....
Sx550X, Sx350X, Sx250: PSE will Supply Power to Catalyst PSE Ports
May 31, 2016
June 5, 2017
Configure Remote Network Monitoring (RMON) Events Control Settings on a Switch through the Command Line Interface (CLI)
Remote Network Monitoring (RMON) was developed by the Internet Engineering Task Force (IETF) to support...