TylerDurden77's Posts

Hi all, We are facing the problem again in one of our environments. ESXi 6.7 VC 4.62 HP FlexFabric 20Gb 2-port 650FLB Adapter elxnet version 12.0.1115.0 with firmware 12.0.1110.11 Reg... See more...
Hi all, We are facing the problem again in one of our environments. ESXi 6.7 VC 4.62 HP FlexFabric 20Gb 2-port 650FLB Adapter elxnet version 12.0.1115.0 with firmware 12.0.1110.11 Regards Johan
Thank you LucD Works like a charm
Hi LucD, Thanks for your quick response. Testing in my "test" environment where I have some other PG names. When I run : $sourceVMhost = "esx08" $ipTabText = @' Range,PGName 172.3... See more...
Hi LucD, Thanks for your quick response. Testing in my "test" environment where I have some other PG names. When I run : $sourceVMhost = "esx08" $ipTabText = @' Range,PGName 172.30.155,net-155 172.30.174,net-175 '@ $ipTab = @{} $ipTabText | ConvertFrom-Csv | %{     $ipTab.Add($_.Range,$_.PGName) } I get this error : Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 +     $ipTab.Add($_.Range,$_.PGName) +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : ArgumentNullException Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 +     $ipTab.Add($_.Range,$_.PGName) +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : ArgumentNullException Exception calling "Add" with "2" argument(s): "Key cannot be null. Parameter name: key" At line:19 char:5 +     $ipTab.Add($_.Range,$_.PGName) +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : ArgumentNullException Any advice? Regards Tyler
Hi, I'm moving ESX servers from one vCenter to another. VMs that have been migrated to my new vCenter/DVswitch don't have a correct PG configured. My setup: PG10 = 192.168.10.0/24 PG1... See more...
Hi, I'm moving ESX servers from one vCenter to another. VMs that have been migrated to my new vCenter/DVswitch don't have a correct PG configured. My setup: PG10 = 192.168.10.0/24 PG11 = 192.168.11.0/24 PG12 = 192.168.12.0/24 Etc... Found this script somewhere which solves my problem per vlan $sourceVMhost = "esx03" $VMnameFilter = "*" $IPFilter = "192.168.10.*" $logfolder = "c:\MigrationLogs" $getvms = Get-VMhost $sourceVMhost | Get-VM | where name -Like $VMnameFilter | Select Name, @{ L = "IP Address"; E = { ($_.guest.IPAddress[0]) } } | where "IP Address" -Like $IPFilter | select -ExpandProperty name foreach ($vm in $getvms) { $NEWDPG = Get-VDSwitch -Name dvSwitch-prod | Get-VDPortgroup -Name 'PG10' get-vm $vm | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName $NEWDPG -Confirm:$false If (!$error) { Write-Output $vm, $error[0] | out-file -append -filepath "$logfolder\success.log" } Else { Write-Output $vm, $error[0] | out-file -append -filepath "$logfolder\failed.log" } Above script works fine but I have to run it many times and change the $IPFilter and $NEWDPG.   (My VMs are spread out on vlan10-20) Possible to use some kind of If statement to accomplish this task in one single script? Regards Tyler
Hi, Just a quick update. On our gen10 servers, we have this setup which has been stable for the last 36 hours. @glamic26 You say that you have seen problems with "11.1.183.62" ? (wi... See more...
Hi, Just a quick update. On our gen10 servers, we have this setup which has been stable for the last 36 hours. @glamic26 You say that you have seen problems with "11.1.183.62" ? (with driver 11.2.1149.0) Cheers Johan
Hi Sergey, We are pretty sure that we have pinpointed the "bug" Has nothing to do with our new gen10 blades and it's not the VC firmware. It's the CNA firmware (11.2.1263.19) from the Okt SP... See more...
Hi Sergey, We are pretty sure that we have pinpointed the "bug" Has nothing to do with our new gen10 blades and it's not the VC firmware. It's the CNA firmware (11.2.1263.19) from the Okt SPP.  Done a lot of testing and we can reproduce the problem on VMhosts with the "11.2.1263.19" firmware. (Both on VC 4.50 and 4.61) We have now downgraded the CNA firmware to "11.1.183.62" and our environment is stable again. I find it very strange that HPE doesn't know about this problem, must be many customers around the world who have issues like we did. Cheers Johan
Hi Sergey, We have 4 chassis In each chassis we have: 3 gen10  servers. 10 gen9  servers. 3 gen8 servers. All blades except 2 are ESXi 6.0u3 hosts. In our case it feels like the p... See more...
Hi Sergey, We have 4 chassis In each chassis we have: 3 gen10  servers. 10 gen9  servers. 3 gen8 servers. All blades except 2 are ESXi 6.0u3 hosts. In our case it feels like the problem escalated somehow when we took the gen10 server into production. But we are not certain... To try to pinpoint the problem we have now done the following: In chassis 1 and 2 we have downgraded the CNA firmware/driver (your hint) on the gen10 ESXi hosts, VC firmware is still 4.61 In chassis 3 and 4 we have put the gen10 servers into maintenance mode. VC firmware is downgraded to 4.50 After we downgraded the VC firmware in C3 and C4 we still had issues. (Random packet loss on VMs running in C3 and C4) But after we downgraded the CNAs on the gen10 blades in C1 and C2 we havent seen any issues and our environment seems stable. ( Only 8 hours now though) It's a very strange problem,  hard to troubleshoot, so intermittent. How are things in your environment? Still good after the downgrade? Do you have any types of loadbalancers?  (Wonder if our F5s could have something to do with the problem) Cheers Johan
Ok, that is one possibility verified. Are you connected to multiple vSphere servers? Check what is in $global:defaultviservers. I'm only connected to 1 vCenter Are the variables you use i... See more...
Ok, that is one possibility verified. Are you connected to multiple vSphere servers? Check what is in $global:defaultviservers. I'm only connected to 1 vCenter Are the variables you use in the New-TagAssignment holding single objects? Not more than one object? Yes , i list VMs in a specific folder and then use > foreach($vm in (Get-folder 'ext' -Type VM | Get-VM)) I just created a new VM named 'jjjjj' and then tried to apply a tag. $lintag = Get-Tag -name 'ext-linux' $vm = get-vm 'jjjjj' New-TagAssignment -Entity $vm -Tag $lintag Uid    : /VIServer=xxx\johm@xxx-vcsa-01:443/VirtualMachine=VirtualMachine-vm-10271/TagAssignment=/Tag=urn:vmomi:InventoryServiceTag:d667e6d8-b5b0-4f1a-b0e7-66d32a469b16:GLOBAL/ Tag    : ext-linux Entity : jjjjj Id     : com.vmware.cis.tagging.TagAssociationModel Name   : com.vmware.cis.tagging.TagAssociationModel Client : VMware.VimAutomation.ViCore.Impl.V1.VimClient Works just fine! When I had issues with my previous vCenter,  I took a backup of the database, I then installed a new vcsa appliance , then I restored the database. Feels like that the problem is with the vCenter database and duplicate tag entries.  (Haven't had issues with applying tags this way before) I will ask vmware for support. Many thanks for your help/feedback. Much appreciated!!
I understand. But  I only have 1 tag assigned to my VMs.  If I remove this tag (no tags present on VM) , and then try to apply it again, I get the same error message. "The given key... See more...
I understand. But  I only have 1 tag assigned to my VMs.  If I remove this tag (no tags present on VM) , and then try to apply it again, I get the same error message. "The given key was not present..." (The tag will be applied though) My vCenter crashed some weeks ago and I had to reinstall it. Don't know if this could have something to do with my problem.
PS C:\Windows\system32> Get-TagCategory Description : Veeam Backup TAGs Cardinality : Single EntityType  : {VirtualMachine} Id          : urn:vmomi:InventoryServiceCategory:6aadd96c-b633-49... See more...
PS C:\Windows\system32> Get-TagCategory Description : Veeam Backup TAGs Cardinality : Single EntityType  : {VirtualMachine} Id          : urn:vmomi:InventoryServiceCategory:6aadd96c-b633-4998-946d-38960f0c8fe8:GLOBAL Name        : vbr Uid         : /VIServer=xxx\johm@xxx-vcsa-01:443/TagCategory=urn:vmomi:InventoryServiceCategory:6aadd96c-b633-4998-946d-38960f0c8fe8:GLOBAL/ Client      : VMware.VimAutomation.ViCore.Impl.V1.VimClient So this is wrong?
Hi LucD I'm running the following script. $wintag = Get-Tag -Name 'srv-windows' $lintag = Get-Tag -name 'srv-linux' #$othertag = Get-Tag -name 'nobackup' foreach($vm in (Get-folder 'sp... See more...
Hi LucD I'm running the following script. $wintag = Get-Tag -Name 'srv-windows' $lintag = Get-Tag -name 'srv-linux' #$othertag = Get-Tag -name 'nobackup' foreach($vm in (Get-folder 'sportsbook' -Type VM | Get-VM)){     If ($vm.Guest.OSFullName -like "*win*") {         New-TagAssignment -Entity $vm -Tag $wintag     }     elseif ($vm.Guest.GuestFamily -like "linuxguest") {         New-TagAssignment -Entity $vm -Tag $lintag     }     } Regards, Johan
Hi, I'm trying to add "tags" on my VMs using powercli. I get nasty red error messages.... But the VMs gets the tag applied. New-TagAssignment : 2017-12-05 11:12:35    New-TagAssignment  ... See more...
Hi, I'm trying to add "tags" on my VMs using powercli. I get nasty red error messages.... But the VMs gets the tag applied. New-TagAssignment : 2017-12-05 11:12:35    New-TagAssignment        The given key was not present in the dictionary.    At line:13 char:9 +         New-TagAssignment -Entity $vm -Tag $lintag +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [New-TagAssignment], CisException     + FullyQualifiedErrorId : ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.NewTagAssignment.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagAssignment Also, when iI run questions against my vCenter about applied tags I don't get the accurate information. vCenter version 6.5.0.5300  PS C:\Windows\system32> Get-PowerCLIVersion PowerCLI Version ----------------    VMware PowerCLI 6.5.1 build 5377412 --------------- Component Versions ---------------    VMware Cis Core PowerCLI Component 6.5 build 6983166    VMware VimAutomation Core PowerCLI Component 6.5 build 6234650 Advice? Regards, Johan
Hi , Like you I only see the "issues" on gen9 and gen10 servers. Gen8 with HP "FlexFabric 10Gb 2-Port 534FLB Adapter" > No issues   (Have around 12 gen8 servers) Gen9 with HP "FlexFabric ... See more...
Hi , Like you I only see the "issues" on gen9 and gen10 servers. Gen8 with HP "FlexFabric 10Gb 2-Port 534FLB Adapter" > No issues   (Have around 12 gen8 servers) Gen9 with HP "FlexFabric 20Gb 2-port 650FLB Adapter" > Some issues, seen VMs acting weird, packet drops etc. Gen10 HP  "FlexFabric 20Gb 2-port 650FLB Adapter"  > Big issues, VMs random loses network connectivity, packet drops. Gen10 esxcli network nic list Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description ------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  ----------------------------------------------------------- vmnic0  0000:37:00.0  elxnet  Up            Up           10000  Full    70:10:6f:43:84:48  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapter vmnic1  0000:37:00.1  elxnet  Up            Up           10000  Full    70:10:6f:43:84:50  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapter vmnic2  0000:37:00.2  elxnet  Up            Up           10000  Full    70:10:6f:43:84:49  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapter vmnic3  0000:37:00.3  elxnet  Up            Up           10000  Full    70:10:6f:43:84:51  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapter vmnic4  0000:37:00.4  elxnet  Up            Up           10000  Full    70:10:6f:43:84:4a  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapter vmnic5  0000:37:00.5  elxnet  Up            Down             0  Half    70:10:6f:43:84:52  1500  Emulex Corporation HP FlexFabric 20Gb 2-port 650FLB Adapte esxcli network nic get -n vmnic0    Advertised Auto Negotiation: true    Advertised Link Modes: 1000baseT/Full, 10000baseT/Full, 20000baseT/Full    Auto Negotiation: true    Cable Type:    Current Message Level: 4631    Driver Info:          Bus Info: 0000:37:00:0          Driver: elxnet          Firmware Version: 11.2.1263.19          Version: 11.2.1149.0    Link Detected: true    Link Status: Up    Name: vmnic0    PHYAddress: 0    Pause Autonegotiate: true    Pause RX: true    Pause TX: true    Supported Ports:    Supports Auto Negotiation: true    Supports Pause: true    Supports Wakeon: true    Transceiver: external    Virtual Address: 00:50:56:5f:66:dc    Wakeon: MagicPacket(tm) Right now we have evacuated one chassis and downgrading to 4.50   Cheers Johan
Hi, VC version 4.60 and 4.61 seems to be the problem.  (We run on 4.61) We also have a case with HPE , they tell us to downgrade to 4.50 But like you say , to be able to downgrade it see... See more...
Hi, VC version 4.60 and 4.61 seems to be the problem.  (We run on 4.61) We also have a case with HPE , they tell us to downgrade to 4.50 But like you say , to be able to downgrade it seems that we have to shutdown the whole VC domain which isn't an option for us right now.... I find it very strange that their isn't a simple way to downgrade the VC. Hopefully, HPE will get back to us during the day with some guidance. Cheers
Solved it I changed $_.Guest.xxx to $vm.Guest.xxx Many thanks!
Thanks Luc! But when I run your suggestion my VMs gets tag $othertag (which in my case is "NoBackup") regardless of $_.guest.OSFullname Any ideas?
Hi Admins. I would like to add vSphere tags based on OS. What I have so far which aint working is : $wintag = Get-Tag -Name 'server-windows' $lintag = Get-Tag -name 'server-linux' Get... See more...
Hi Admins. I would like to add vSphere tags based on OS. What I have so far which aint working is : $wintag = Get-Tag -Name 'server-windows' $lintag = Get-Tag -name 'server-linux' Get-folder 'Test' | Get-VM  If ($_.Guest.OSFullName -like "*win*") {New-TagAssignment -Tag $wintag} If ($_.Guest.OSFullName -like "*Cent*" -or $_.GuestID -like "*ubuntu*") { New-TagAssignment -Tag $lintag } Advice? Regards Tyler
Hi , vSphere 6.0 I have 7 hosts in my cluster , one of them have an extra datastore ( local disks) Is it somehow possible to disable this "check" for this datastore ? Would like the "prof... See more...
Hi , vSphere 6.0 I have 7 hosts in my cluster , one of them have an extra datastore ( local disks) Is it somehow possible to disable this "check" for this datastore ? Would like the "profile compliance" to be green and compliant. Regards Johan
Thank you Richardson! I have to learn to check the reports in a better way.... Regards Tyler
Hi, Thanks for your swift reply. Both your URLs seems to have to do with iSCSI. My environment is FC. Still SCSI... Have several virtual WFC up and running (Windows 2012)  but this is the... See more...
Hi, Thanks for your swift reply. Both your URLs seems to have to do with iSCSI. My environment is FC. Still SCSI... Have several virtual WFC up and running (Windows 2012)  but this is the first windows 2016 Failover Cluster. Don't understand why it should be any different though Regards Tyler