cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

CISCO SWITCHES FOR SMALL and MEDIUM BUSINESS

Introducing the next generation of Cisco Small and Medium Business Switches. Cisco is refreshing its SMB Switch portfolio. Click here  to learn more.


372
Views
0
Helpful
2
Replies
Highlighted
Beginner

Missing writable OIDs to set vlans on SF300-24

Hello. 

I've managed to collect information piece by piece on forums, MIBs, boards  etc and make work reading status information from this switch into some managing software.


Now I'm stuck on setting vlans or port:

Common OIDs "vtpVlanEdit" section (1.3.6.1.4.1.9.9.46.1.4.1 and 1.3.6.1.4.1.9.9.46.1.4.2 branches) answering me 

No Such Object available on this agent at this OID

Searched MIBs and stumbled upon "rldot1qPortVlanStaticEgressList*"  OIDs (1.3.6.1.4.1.9.6.1.101.48.68.1.1-4 branches). According to MIBs these OIDS are readable and writable. I can read vlan lists from them but can't write new lists because of two type of errors:

Reason: wrongValue (The set value is illegal or unsupported in some way)

and 

Reason: notWritable (That object does not support modification)"

Hav an OID to retrieve port-vlan map (1.0.8802.1.1.2.1.5.32962.1.1.2.1.1) which snmpwalk result looks like this:

iso.0.8802.1.1.2.1.5.32962.1.1.2.1.1.8.1029 = INTEGER: 2
iso.0.8802.1.1.2.1.5.32962.1.1.2.1.1.10.1029 = INTEGER: 2
iso.0.8802.1.1.2.1.5.32962.1.1.2.1.1.10.1023 = INTEGER: 2

Meaning: 

8th port has 1029 VLAN active
10th port has 1029 and 1023 VLANs active


But have no idea how I can use it to set vlans.
Any advice?

Everyone's tags (7)
2 REPLIES 2
Beginner

Re: Missing writable OIDs to set vlans on SF300-24

Managed to find OID (1.3.6.1.2.1.17.7.1.4.3.1.2) which returns map of pairs vlan and hex-port-map of this vlan:

 

SNMPv2-SMI::mib-2.17.7.1.4.3.1.2.1029 = Hex-STRING: 00 44 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00

 

Manually I can read and write new hex-port-map to this OID and make vlan changes, but inside a software I work on right now we use net-snmp lib and when I try to write hex-port-map back to device I'm getting such error:

Error in packet: wrongLength (The set value has an illegal length from what the agent expects)

While size of HEX-string is same I receive with snmpget (252).


reformatted HEX read result:

004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
size() = 252;

edited to remove one port from map:

000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
size() = 252;

Googled and found only old bug about 64bit architect which was already fixed in net-snmp version we use.

Any suggestion?

Everyone's tags (1)
Beginner

Re: Missing writable OIDs to set vlans on SF300-24

Hi, I had the same requirement. Only solution I found is that you can toggle using snmp between the Access Mode VLAN membership and the General Mode membership for a port.

Using this creative functionality I was able with a smnpset to toggle a port between 2 VLANs.

 

 

Maybe this can be a solution for you if your goal is to toggle a port between VLAN's.

 

If you require more I'm afraid SMB series switches do not allow really changing VLAN-id's from snmp.

 

Kind regards, JanPieter