-
Notifications
You must be signed in to change notification settings - Fork 54
Using SNMP to control switches to set VLANS #747
Comments
I'm going to start working on this one. Right now I've gotten python-easysnmp setup locally on my machine to get up to speed with SNMP queries. I'll talk with @naved001 later about getting access to our switches. |
For the PowerConnect, so far I've discovered that updating Access mode VLANs is easy using SNMP OID 1.3.6.1.4.1.89.48.62.1.1.<port#>. I haven't yet found a way for accessing/editing the Trunk mode VLANs. On a side note, I did discover that it's pretty easy to deal with VLANs on ports set to General mode. |
Cool, keep up the good work. The reason we wrote the telnet drivers in the first place was that @pjd-nu had spent about a day fighting with the powerconnect's MiB, and we decided it was best to just get something working so we could unblock things. So it might take a bit of digging to work everything out; keep us posted. Happy hacking. |
Best of luck @Izhmash. I am curious to know the outcome. Keep us posted. |
In exploring the options with SNMP so far I have a good feeling that it will be usable in our switch drivers. However, the drivers will still need to be unique for different switch models. For example, the Dell switches have different SNMP MIBs than the Cisco switches, so a unified driver wouldn't be possible. Is it an issue for anyone that the drivers wouldn't be unified? I understand that Pexpect and Telnet was a workaround, but I'm not sure how strongly we feel collectively about moving away from it. |
That was my expectation. Fine to start with one driver for now; they're independent, so no need to do them all at once. |
After an extended conversation with myself, @pjd-nu @naved001 and @Izhmash, we decided that SNMP doesn't make sense. Reasons included: [Quotes are from RFC 3535]
|
Works for me.
FWIW, the points about "most SNMP implementations" and "newer hardware
will support this" don't necessarily preclude having drivers for
specific switches be SNMP based if it makes sense for that particular
switch -- the beauty of having a well-factored driver API. But I'm
totally find just deferring until we've got a more modern technology to
switch over to.
…-Ian
|
(Also, thank you guys for recording the points made like this; this is
much better re: paper trail than we've mostly been).
|
We should have a better way to set VLANS programmatically than using pexpect due to the problems discussed in #744. @pjd-nu gave us super overview of how SNMP works and what troubles we may encounter (like it is good for reading stuff from hardware, but writing to hardware can be tedious at times)
I, @henn, @naved001, @pjd-nu agree that this can be a good internship project.
Explore, understand SNMP and come up with a solution to set VLANS using it.
The text was updated successfully, but these errors were encountered: