SNMP set giving undo failed error on the icx switch

  • 1
  • Question
  • Updated 3 months ago
  • (Edited)
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?
Photo of amar deep

amar deep

  • 14 Posts
  • 0 Reply Likes

Posted 3 months ago

  • 1
Photo of NETWizz

NETWizz

  • 182 Posts
  • 58 Reply Likes
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?
Photo of amar deep

amar deep

  • 14 Posts
  • 0 Reply Likes
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
Photo of NETWizz

NETWizz

  • 182 Posts
  • 58 Reply Likes
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

Photo of Isaac Madriz

Isaac Madriz, Employee

  • 10 Posts
  • 10 Reply Likes
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:


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.
Photo of amar deep

amar deep

  • 14 Posts
  • 0 Reply Likes
Hi Isaac,

I have tried using the above SNMP calls but I am getting the following errors:

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

Port = 2
VLAN = 1050

I have removed the port 2 from VLAN 1025, but still getting the above error.

Please suggest!

Thanks for your reply on this.
Photo of Isaac Madriz

Isaac Madriz, Employee

  • 10 Posts
  • 10 Reply Likes
Hi Amar,

Were you able to use both OIDs on the same call? is that something supported for the tool you are using, from previous tests I know that not all SNMP tool support that, is there a way for you to test with net-snmp tool? 

Regards.
Photo of amar deep

amar deep

  • 12 Posts
  • 0 Reply Likes
Hi Issac,

I was successfully able to untagg the ports after using both the OIDs in a single snmp call.

Thanks for your suggestion. I really appreciate.

Photo of Isaac Madriz

Isaac Madriz, Employee

  • 10 Posts
  • 10 Reply Likes
Great!! Amar, I am glad to hear that, thank you for the confirmation 
Photo of Denis Kalinin

Denis Kalinin

  • 4 Posts
  • 0 Reply Likes
Hi Isaac,

I have similar problem like Amar. I have successfully add vlan to tagged port, but have problem with adding vlan to untaged port
snmpset -v2c -c community 192.168.1.30 1.3.6.1.4.1.1991.1.1.3.2.6.1.3.192.23 i 4 1.3.6.1.4.1.1991.1.1.3.2.6.1.4.192.23 i 2

and i get error like that

Error in packet.
Reason: undoFailed
Failed object: SNMPv2-SMI::enterprises.1991.1.1.3.2.6.1.3.192.23


(Edited)
Photo of amar deep

amar deep

  • 12 Posts
  • 0 Reply Likes
Hi Denis,

Can you  try removing the initial association of the vlan? In my case also, I need to remove the untagged  port from the vlan otherwise I was getting the same error.

Thanks
Photo of Denis Kalinin

Denis Kalinin

  • 4 Posts
  • 0 Reply Likes
Hi Amar,

You absolutely right. After removing untagged port it's started to work
Thanks