On Sep 9, 2011, at 8:21 AM, Mikael Knutsson wrote:
Hello again,
Hello again
I found a MIB Companion guide for a 3Com 4500G switch that apparently covered the MIBs in question and it solved my problem! It told me that there were a few conditionals on writing to the OIDs I was trying to write to. For the big hex string, they come in a group of four: hwifHybridUnTaggedVlanListLow hwifHybridUnTaggedVlanListHigh hwifHybridTaggedVlanListLow hwifHybridTaggedVlanListHigh
And they all need to be set with the same snmpset command. That is only to change VLAN on hybrid (or trunk ports), there is another hex string per VLAN that is which ports that the VLAN is on, it only allows you to change it on untagged ports set to access mode.
So, to change a port from an access port to a trunk port, you need to modify multiple variables. First, you need to set the: A3COM-HUAWEI-LswINF-MIB::hwifVLANType.28 = hybrid (3) After which you need to know the IDs of all VLANs. Then you need to set the four big hex strings in one set with each bit corresponding to the VLAN in question. I've also figured out how to create and remove VLANs, which for once seemed rather straight forward.
How much of this functionality is possible to control with PortAdmin right now? :)
As far as I know You are not allowed to change trunk ports and access ports into trunk ports in portadmin.
But, however, it is pretty straight forward to write a class in Python that is able to handle set/change VLANs for 3Com switches in PortAdmin if You know the OIDs and how to do what You want.
Have You looked at the code for PortAdmin?
Sincerely
Trond.