03-31-2015 01:32 AM - edited 03-07-2019 11:19 PM
Dear Friends,
I am looking for a help about the VLAN addition to a existing port profile.
I have to add vlans to existing port profile. Vlans exists on switch. But when I add the vlan I get error "Failed to write VSH commands".
Below is the snippet of the configuration.
========================================================
Software
BIOS: version 2.1.0
loader: version N/A
kickstart: version 7.0(1)N1(1)
system: version 7.0(1)N1(1)
Hardware
cisco Nexus 5672UP Chassis ("Nexus 5672UP Supervisor")
SHOW PORT_PROFILE
==========================================================
port-profile ESX-FARM-HA01-10G
type: Ethernet
description: PORT ESX-FARM-HA01-10G
status: enabled
max-ports: 512
inherit:
config attributes:
switchport mode trunk
spanning-tree port type edge trunk
switchport trunk native vlan 4093
switchport trunk allowed vlan 1, 3, 12-13, 41, 43, 47-48, 51, 53-55, 59-61, 122, 139, 150-151, 901, 1008, 1016, 1018, 1037, 1053, 1058, 1060, 1083
evaluated config attributes:
switchport mode trunk
spanning-tree port type edge trunk
switchport trunk native vlan 4093
switchport trunk allowed vlan 1, 3, 12-13, 41, 43, 47-48, 51, 53-55, 59-61, 122, 139, 150-151, 901, 1008, 1016, 1018, 1037, 1053, 1058, 1060, 1083
assigned interfaces:
Ethernet103/1/1
Ethernet103/1/2
Ethernet103/1/3
Ethernet103/1/4
Ethernet103/1/5
Ethernet103/1/6
Ethernet103/1/7
Ethernet103/1/8
FP_211_NEW_SW (config-port-prof)# sw trunk allowed vlan add 26
ERROR: Failed to write VSH commands
Could you please help me on how to get rid of the error.
Thank you for your help in advance.
Regards ,
Mohit Pathak
03-31-2015 11:51 PM
Hi Mohit,
Seems to be problem with VSH shell. It will parse the command and give to right component. Here the problem seems to be with parsing. you can try to create a new VSH through the below command in deplugin shell and try the same thing.
Steps to create:
1) load the dbplugin image and login into linux shell
2) /isan/bin/vsh
3) then try configuring the port-profile
If not, as a workaround, you can delete and recreate the port-profile i might help u.
Are you facing problem only with adding the vlan or any commands ?
Thanks,
Muthu.
04-11-2018 11:25 AM
Hello Mohit,
NOT ABLE TO ADD VLAN TO PORT PROFILE
Learn whether some non-existing FEX ports are part of a port-profile, which are causing
the trouble. We can make use of for the
same. Once we know such FEX ports, we can pre-provision the corresponding FEX and thus un-inherit
the port-profile from these ports. Now, we can make changes in the port-profile config.
02-13-2019 08:27 AM
An ancient thread I know, but as I came a cropper with the same issue I think it is worth adding that the solution for me when I had this problem was to add the 'switchport' command, this needs to come at the top of the config attributes - ie before 'switchport mode...' and 'switchport access vlan ...'.
switchport
switchport mode access
switchport access vlan ...
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: