richG's Posts

Ok another question.. Lost and Found with in the VCD under System Administrator & Roles. I found 500 names so my question is what are these names. I know they are user with in my enterprise, ... See more...
Ok another question.. Lost and Found with in the VCD under System Administrator & Roles. I found 500 names so my question is what are these names. I know they are user with in my enterprise, but there are duplicates of a lot of the names. If they are deleted what affect will have on the guests? I do know that certain objects are connect to the names. another question: with in the VCD under system > manage & Monitor > Organizations is a list of my catalogs, vApps, Running VMs and users My Virtual Center is reporting I have a total of 344 Virtual machines and Templates My VCD is reporting Total of 262 vApps, 176 Running VMs which gives me 86 that are not running The difference is 82 from total vApps to what the VC is reporting so does this mean 82 VM guest are lost?
Thank you that explains it.. I have had to take over our Cloud VCD and still learning.. I appreciate the help.
Hi all, I have a question I understand how linked clones work. If I created a template from scratch once completed it had a chain length of 1. I then created a vm from the template to my cloud... See more...
Hi all, I have a question I understand how linked clones work. If I created a template from scratch once completed it had a chain length of 1. I then created a vm from the template to my cloud. After testing it and confirming it work ok, I deleted the Guest. I went back to check the template and if had a chain length of 2. Shouldn't this have reverted back to 1 after I removed the guest??? I am running VCD Version 5.1.2.1068441. I guess I am thinking I might have to consolidate again to remove the old guest all together?? It would seem strange if I do Thanks Richg
Sorry about that guys and gals.. My mistake.
Here is the link for PowerCli 5.5 https://my.vmware.com/group/vmware/details?downloadGroup=PCLI550&productId=352&download=true&fileId=0b8a733a67ebb3aca6bf…
Hi LucD, I have some questions for you. I really hoping you can help. I have read a bunch of PS books trying to figure out Looping namely ForEach-Object  or the ForEach. The problem I have is w... See more...
Hi LucD, I have some questions for you. I really hoping you can help. I have read a bunch of PS books trying to figure out Looping namely ForEach-Object  or the ForEach. The problem I have is when folks try to explain how to use it they do not use a Virtual examples. So you have helped me in the past and I really appreciate it, but I am trying to understand nesting and how to configure this for the right output. Here is one that I have built and it does work. get-cluster | foreach-object { write "Datacenter: $($_.name) `n"                 $_ | Get-vmhost | foreach-object {                 write "ESX Host: $($_.Name) `n`n"                 $_ | get-vm | foreach-object {                 write "$($_.name)"                 }                 }                 write-output ""                 } Here is another one that I am unable to work.  Now I know it is wrong but this is what I am trying to understand.. get-cluster | foreach-object { write "Datacenter: $($_.name) `n"                 $_ | Get-vmhost | foreach-object {                 write "ESX Host: $($_.Name) `n`n"                 $_ | get-vm | get-networkadapter | where {$_.type -ne "Vmxnet3"}   #it works up till here after that is fails.                 foreach-object { write "$($_.parent)" write "$($_.name)" Write "$($_.type)"                 }                 }                 write-output ""                 } Here is some of the things I am trying to do and understand. Pull the Datacenter, VMHost, Virtual Machine. The pull some information from the Guest system. But I would still need to be able to print out the Datacenter name, Vmhost name, and guest name plus other information. Another case would be say print out host and then drill down into the guest and pull out information. So what I am looking to understand is nesting. I have look at different websites but still not found anything to help. Hal Rottenberg wrote a book and that has helped me some, but I feel things have changed since his book came out. I have your book as well, plus all of Don Jones book.. I will admit I work so much better off of examples as long as I can understand them. So I know you are very busy but if you could find some time it would be greatly appreciated. Thanks Kind regards, RichG
HI LucD, Thank you very much for explaining it.. I have some other questions which I would like to post here later today or tomorrow.. Thanks very much.. Power Shell is great, but one of my... See more...
HI LucD, Thank you very much for explaining it.. I have some other questions which I would like to post here later today or tomorrow.. Thanks very much.. Power Shell is great, but one of my problems is one Cmdlet pulls some objects, another cmdlet pulls some other information, which is needed. When I try to pull this all together it when I run into issues.. I hope this make sense, kind of hard to explain.. Rich
I have started this script and I am trying to figure out method types get-vmhost | sort name | get-view | select name, @{N="Datacenter";E={Get-Datacenter -VMHost $_.Name}}, @{N="Type";E={$_... See more...
I have started this script and I am trying to figure out method types get-vmhost | sort name | get-view | select name, @{N="Datacenter";E={Get-Datacenter -VMHost $_.Name}}, @{N="Type";E={$_.hardware.systeminfo.vendor+" "+ $_.Hardware.systeminfo.model}}, @{N="CPU"; E={"PROC:" + $_.Hardware.CpuInfo.NumCPUPackages + "Cores:" + $_.Hardware.CpuInfoNumCpuCores + "MHZ:" + [math]::round($_.Hardware.CpuInfo.Hz/1000000,0)}} This part works like a charm. I guess what I am trying to understand $_.hardware.systeminfo.model  I know it extracts the information I want and it is using the Typename but how does this work? The next part works on its own Get-vmhostnetworkadapter  <servername> -vmkernel | select name,ip,subnetmask This works fine but when I try to do this I have issues. get-vmhost | sort name | get-view | select name, @{N="NIC";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.Name}}, @{N="IP";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.IP}}, @{N="Subnetmask";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.subnetmask}} This is the type name I get when I do GM on the command Get-vmhostnetworkadapter  <servername> -vmkernel | select name,ip,subnetmask TypeName: Selected.VMware.VimAutomation.ViCore.Impl.V1.Host.Networking.Nic.HostVMKernelVirtualNicImpl So can it be done? My goal is the following.. get-vmhost | sort name | get-view | select name, @{N="Datacenter";E={Get-Datacenter -VMHost $_.Name}}, @{N="Type";E={$_.hardware.systeminfo.vendor+" "+ $_.Hardware.systeminfo.model}}, @{N="CPU"; E={"PROC:" + $_.Hardware.CpuInfo.NumCPUPackages + "Cores:" + $_.Hardware.CpuInfoNumCpuCores + "MHZ:" + [math]::round($_.Hardware.CpuInfo.Hz/1000000,0)}}, @{N="MEM";E={"" +[math]::round($_.Hardware.MemorySize / 1GB,0) + "GB"}}, @{N="NIC";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.Name}}, @{N="IP";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.IP}}, @{N="Subnetmask";E={$_.Host.Networking.Nic.HostVMKernelVirtualNicImpl.subnetmask}} | Export-Csv c:\pscripts\hostinfo.csv If someone can explain or point me in the direction of how to extract data from multiple cmdlets using a simple method it would be greatly appreciated.. I have just about every book out there so it is in a book please just point me to it and I will read it. Thanks in advance.
Hi all, My question is pretty simple, is it possible to create a stand alone update manager. Another words I do not want to have a second VC but I want to have two Update managers one in the USA... See more...
Hi all, My question is pretty simple, is it possible to create a stand alone update manager. Another words I do not want to have a second VC but I want to have two Update managers one in the USA and one in Europe is possible and if it how. My team in Europe has been unable to do it.. Any help would be greatly appreciated.. Richg
Thank you once again for all the help and suggestions. I am looking at them now.. It a slow slug getting through this, but you have made it easier thanks.. Kind regards, Richard J Garrow... See more...
Thank you once again for all the help and suggestions. I am looking at them now.. It a slow slug getting through this, but you have made it easier thanks.. Kind regards, Richard J Garrow MCSE Sr Systems Engineer Gartner Loc: Trumbull CT Office: 203-873-2555 Cell: 203-278-7813 Email: richard.garrow@gartner.com<mailto:richard.garrow@gartner.com> P Please do not print this e-mail unless you really need to.
Hi well I wanted to give an update on how this project is going, I also have a couple of questions as well Question first.  -Netmask $guestNic.SubnetMask -Wins $nicGuest.Wins ` this code was i... See more...
Hi well I wanted to give an update on how this project is going, I also have a couple of questions as well Question first.  -Netmask $guestNic.SubnetMask -Wins $nicGuest.Wins ` this code was it a mistake or intentional for the -netmask $guestNic.SubnetMask. I thought it should be $nicGuest.subnetmask?? As always in a perfect world this script would work like a charm. As I have so many different servers it is proving to be harder then I thought. The one major problem is this is all running on HP hardware and windows 2003 - 2008R2 the old network card is not remove it is just hiddened. So I have to manually go in and remove it from each VM Guest. o work around this behavior and display devices when you click Show hidden devices: Click Start, point to All Programs, point to Accessories, and then click Command Prompt. At a command prompt, type the following command , and then press ENTER: set devmgr_show_nonpresent_devices=1 Type the following command a command prompt, and then press ENTER: start devmgmt.msc Troubleshoot the devices and drivers in Device Manager. NOTE: Click Show hidden devices on the View menu in Device Managers before you can see devices that are not connected to the computer. When you finish troubleshooting, close Device Manager. Type exit at the command prompt. This is the process I have to go through each time.. I am getting different errors on different servers. I think I got one with out errors it was nice.. The command I had to add to the scirpt was to turn on the network card on startup. -startconnected I suggest as it does take a little while to run is to do them in batches, say from a text file like add 1- 20 names and have the script read it from the file, and perform the operation.. Over all the script is great thank you..
Thank you very much for your help. I have to admit I was praying you might see this thread and reply to it.. I will test this weekend on a few of my dev servers and if all goes to plan then I wil... See more...
Thank you very much for your help. I have to admit I was praying you might see this thread and reply to it.. I will test this weekend on a few of my dev servers and if all goes to plan then I will let you all know. Have a good weekend.. RichG
Hi all, I am trying to figure out if there is a way to perform a major change for all my Guests systems. Vmware has asked us to change all of our VM Guest from Flex and E1000 to VMXNET 3, now ... See more...
Hi all, I am trying to figure out if there is a way to perform a major change for all my Guests systems. Vmware has asked us to change all of our VM Guest from Flex and E1000 to VMXNET 3, now this can be done manually, but as I have 944 guest in the enterprise it will take me a while to work through them all. Ok so here is the problem The script will have to have to check two things before it does this check for the latest tools, and that the guest is running hardware level 7 as well. If it does not meet any of these reuirements it would have to output the host and guest name to a failed file. If you change the the Network card you have to re-enter all the network information on the new network adapter. So I would say the first part of the script would have capture all the network settings from the old network card, hold that in a variable. Add the new Network card and use the informaton in the Variable to the new network card. I would say it would have to reboot the VM.. Then move on to the next guest system. Now I am not looking to do all 944 at once I would do it in sections like Dev first and then QA. So if anyone has any suggestions on the best way to go about doing this it would be greatly appreciated. Regards, RichG
Hi to answer your question regarding the reason we use the onboard arrary controller for our internal drives and another card for the other drives the short answer it company policy not my call. ... See more...
Hi to answer your question regarding the reason we use the onboard arrary controller for our internal drives and another card for the other drives the short answer it company policy not my call. As I am sure there are certain things each of us have to do that we might question but to keep our jobs we follow the request of the management this is my case.  As far as not moving to ESXi we feel there is no need at this point in time to make the move.. Thanks RichG
Thanks very much Pablo. The funny thing is if the price is say under 25-40 dollars I feel some of us would be willing to pay for the poster size. I know I would!! I did looking into geting the fi... See more...
Thanks very much Pablo. The funny thing is if the price is say under 25-40 dollars I feel some of us would be willing to pay for the poster size. I know I would!! I did looking into geting the files enlarged at Staples and they wanted $40 but said as the image size was so small there would be distoration so I did not feel it was worth the money.. Have a think and let us know I do appreciate this file as well. thanks.. I have the other printed on my wall at home and the office and refer to it all the time but a larger one would be really great. Thanks for all the effort and work that went into it I am sure everyone appreciates it. Regards, RichG
Hi all, I am very glad to say this problem has been resolved. We found the problem was the on board control was using an older firmware verson while the 410 was using the latest version. This... See more...
Hi all, I am very glad to say this problem has been resolved. We found the problem was the on board control was using an older firmware verson while the 410 was using the latest version. This caused a conflict.. Once both cards were on the same version the problem was resolved. So this problem can be considered closed. Thanks for everyones feeback, it was greatly appreciated. Regards, RichG
Erik, You have no idea how much this means thank you so very much... I have been trying for a few days now to figure this out. I know it might sound silly but it was really bugging me on how t... See more...
Erik, You have no idea how much this means thank you so very much... I have been trying for a few days now to figure this out. I know it might sound silly but it was really bugging me on how they were able to use this property and now I know. I am still learning but each day gets better I do enjoy this I have been a linux/windows admin for years now and have done a bit of scripting, but now I am determined to learn PS and write my own stuff. I will say the forums work wonders not like the earlydays when you had to bang you head against a wall and read every book you could get your hands on. Hey thanks very much I really do appreciate the help.. I hope you have a great evening.. Regards, Rich
Hi Erik, Ok here is my question that has been really bugging me. In this script below you can see $snap.SizeMB I am trying to figure out if there is a property for this. Now I did get this scr... See more...
Hi Erik, Ok here is my question that has been really bugging me. In this script below you can see $snap.SizeMB I am trying to figure out if there is a property for this. Now I did get this script off the web it does work but can not for the life of me figure out where this property is coming from. Param ($age=30) Connect-VIServer $vm = Get-VM $snapshots = Get-Snapshot -VM $vm Write-Host -ForegroundColor Red "Old Snapshots Found" foreach ($snap in $snapshots) { if ($snap.created -lt (Get-Date).adddays(-$age)) { Write-Host " VM: " $snap.VM, "Name: " $snap.Name, " Size: " $snap.SizeMB, " Created: " $snap.Created } } another point I would love is if there was an easy switch for kb mb gb I know you can write a conversion to do it but lets face it how many folks want KB most of work in now a days either GB or TB let alone MB. Sorry had to sound off. Thanks for help much appreciated and yes I could us a cup of joe as well.
Thanks very much I might be looking for a property that is just not there. I do appreciate you help. Have a great day or evening . Rich
thanks for the reply yes I did bang my head for a while till I came upon your solution and it work thanks.. I do have a question which has nothing to do with this problem. Ok the cmdlet get-sn... See more...
thanks for the reply yes I did bang my head for a while till I came upon your solution and it work thanks.. I do have a question which has nothing to do with this problem. Ok the cmdlet get-snapshot I have been trying to get all the methods and properties for this cmdlet and have run into a few snags so maybe you can help. Here it the way I have been doing it. get-command get-snapshot | get-member what am I doing wrong?? thanks again for the help. Rich