cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP set giving undo failed error on the icx switch

amar_deep
New Contributor III
Hi,

I want to untagg the port 2 in VLAN 1050. Initially, it is untagged in VLAN 1025.

                
Request to set the row as “untagged” (untagg port 2 in VLAN 1050)

print_r(snmp2_set('HOST', 'test12345', '1.3.6.1.4.1.1991.1.1.3.2.6.1.4.1050.2', 'i', '2'));

Gettting error: Warning:  snmp2_set(): Error in packet at 'SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.3.1050.2': undoFailed 

I have also tried using the following SNMP OID:

print_r(snmp2_set('HOST','test1234','dot1qPvid.2','u','1050'));
print_r(snmp2_set('HOST','test1234','dot1qVlanStaticUntaggedPorts.1050','x','400000000000000000000000'));

The above calls are also failing and I am getting a no response.

Any suggestions?
11 REPLIES 11

netwizz
Contributor III
How is your SNMP setup?  Don't share the actual community strings you use.

Also, have you tried using something more dynamic like 802.1x or SmartZone?

amar_deep
New Contributor III
Hi,

I am using SNMP version 2. The communities names are for reference.

I have the ICX switch on which I want to untagg a port in a particular VLAN using snmp. The same calls work for HP switch but on the ICX switch the calls are not working.

Thanks

netwizz
Contributor III
I am asking that you verify the config of the SNMP v2

For example:

snmp-server community ..... ro 99

or

snmp-server community ..... rw 99

isaac_madriz
New Contributor III
HI Amar,

In order to add or remove a port as tagged or untagged you have to use in the same instruction the OID to add/remove along with the OID specifying if you would like to have it tagged or untagged:

Image_ images_messages_5f91c447135b77e2479fe7b4_15f57f2f07b980f2f29060419705140e_RackMultipart201909091129279g3-a93ae0b3-9530-407f-acc4-8b963e27ee01-1612068278.png1568034911
net-snmp syntax example:

To Add a port to a vlan:   

snmpset -v2c -c ruckus 1.3.6.1.4.1.1991.1.1.3.2.6.1.3.X.Y i C 1.3.6.1.4.1.1991.1.1.3.2.6.1.4.X.Y i D

 

X= VLAN

Y= PORT

C=3 remove

C=4 add  

D=1 tagged

D=2 untagged



net-snmp real example:

  • with the following set we are adding port 1/1/1 to vlan 10 as tagged:

 

C:\Users\Administrator\Desktop\usr\bin>snmpset -v2c -c ruckus 10.176.192.138 1.3.6.1.4.1.1991.1.1.3.2.6.1.3.10.1 i 4 1.3.6.1.4.1.1

991.1.1.3.2.6.1.4.10.1 i 1

SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.3.10.1 = INTEGER: 4

SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.4.10.1 = INTEGER: 1

 

  • with the following set we are adding port 1/1/1 to vlan 11 as Untagged:

 

C:\Users\Administrator\Desktop\usr\bin>snmpset -v2c -c ruckus 10.176.192.138 1.3.6.1.4.1.1991.1.1.3.2.6.1.3.11.1 i 4 1.3.6.1.4.1.1

991.1.1.3.2.6.1.4.11.1 i 2

SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.3.11.1 = INTEGER: 4

SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.4.11.1 = INTEGER: 2



Amar could you please try with that syntax, if you still having an error please try to remove the port from vlan 1025 and then add it to vlan 1050.

Hope that helps.