On Sep 8, 2011, at 11:08 AM, Mikael Knutsson wrote:
Hello,
Hello, again
Yes, that is the primary thing. But also for identifying which VLAN is on which port and what VLANs are available on the status page for the switch. I'm not sure that is the PortAdmin module?
No, that information is not coming from PortAdmin and I have not written that code and I am afraid I cannot help You much with that particular code. Sorry.
Still I would advice You to take a look at the snmp-code for PortAdmin. I think it will give You some ideas how You could do this.
You will find the code in: python/nav/portadmin/snmputils.py
I am however as stated having some problems with writing to the VLAN OIDs as stated, I'm getting inconsistentValue returned no matter what I try, it feels like. I'm not sure what I'm doing wrong and if someone seasoned with SNMP could help me out with how to track down the error, that would be greatly appreciated!
I am not quite sure if I understand,- but I guess You are talking about the confusion regarding what value-type to use when writing back to the equipment. Some take an unsigned integer and some don't. A VLAN is a positive integer and in most cases you would use an unsigned integer. If You take a look at the code, You will see that we in some cases try both.
If You also want to change VLAN on a port You must also remember to remove the port from the VLAN You are moving away from.
Is this of any help to You?
Sincerely
Trond.