Marcus316's Posts

Hi Albert, I've always updated the latest version in the original post of this thread. If I update it any further, I will probably post it on my blog : Nuvoli Systems – Nuvoli means Cloud.
Hi everyone, 3 questions regarding vRA + NSX integration and distributed routers : 1 - Is there any way to provision a distributed router as part of a multi-machine blueprint in vRA? 2 ... See more...
Hi everyone, 3 questions regarding vRA + NSX integration and distributed routers : 1 - Is there any way to provision a distributed router as part of a multi-machine blueprint in vRA? 2 - It doesn't seem to be possible natively, has anyone developed anything that would do this via a vRO workflow? Via a call to the NSX API? 3 - Is there something I am missing in thinking that I would want to deploy 1 logical router per "application stack"? (1 application stack = 1 multi machine blueprint) For reference, here are the software versions I'm using  : vRA v6.2 NSX plugin for vRO v1.0.2 NSX v6.2 vCenter 6.0 Thanks! Marcus
Hi Luc, Thanks for the response. For some reason, that doesn't work either, I see the stats I want when I do a Get-StatType, but when I do a Get-stat : PowerCLI C:\> Get-Stat -Stat datas... See more...
Hi Luc, Thanks for the response. For some reason, that doesn't work either, I see the stats I want when I do a Get-StatType, but when I do a Get-stat : PowerCLI C:\> Get-Stat -Stat datastore* -Entity ESXi1 PowerCLI C:\> Any ideas of why this would happen? Thanks, Marc
Hello all, I'm trying to collect some metrics via PowerCLI for Datastore Average IOPS and Guest Average Latency (GAVG) for all VMs in a given Datastore. This is normally a straightforward ... See more...
Hello all, I'm trying to collect some metrics via PowerCLI for Datastore Average IOPS and Guest Average Latency (GAVG) for all VMs in a given Datastore. This is normally a straightforward process if the vCenter statistics levels are configured properly, which I believe they are. But here is my problem : When I run "Get-StatType -Entity Datastore-1", these are all the metrics I get PowerCLI C:\> Get-StatType -Entity Datastore-1 disk.used.latest disk.provisioned.latest disk.capacity.latest disk.unshared.latest datastore.numberReadAveraged.average datastore.numberWriteAveraged.average datastore.read.average datastore.write.average However, when I try to grab one of these stats, I get nothing back, for example : PowerCLI C:\>Get-Stat -Entity Datastore-1 -Stat datastore.numberReadAveraged.average PowerCLI C:\> When I do a simple "Get-Stat -Entity Datastore-1" I get plenty of stats of "disk.used.latest" stats but not the metrics I want, which are "datastore.numberReadAveraged.average" and "datastore.numberWriteAveraged.average". The just don't seem to work via PowerCLI. I tried getting them another way, by "Getting" all VMs in a given Datastore and then Aggregating that data, but even at the VM level I get the same result. The stat is there but there are no values for it. However, I CAN get see these metrics when I go to a VM's Performance tab in the vSphere client! If anyone has an idea of what the problem could be, please let me know! Thanks! - vCenter version is 5.5. - Database rollup tasks are all functionning properly. - My vCenter Statistics levels are set to 3 for the 3 first Intervals (P.S.: it has been set to 3 for about 3 weeks, before that it was at 1 everywhere) - My PowerCLI version : PowerCLI C:\> Get-PowerCLIVersion PowerCLI Version ----------------    VMware vSphere PowerCLI 5.5 Release 2 Patch 1 build 1931983 --------------- Snapin Versions ---------------    VMWare AutoDeploy PowerCLI Component 5.5 build 1890764    VMWare ImageBuilder PowerCLI Component 5.5 build 1890764    VMware License PowerCLI Component 5.5 build 1265954    VMware VDS PowerCLI Component 5.5 build 1926677    VMware vSphere PowerCLI Component 5.5 Patch 1 build 1926677
Hello all, I just posted version 2.1 of the script on the first page of this post : PowerCLI script for vSphere capacity planning This version includes the bugfix for cluster names with spa... See more...
Hello all, I just posted version 2.1 of the script on the first page of this post : PowerCLI script for vSphere capacity planning This version includes the bugfix for cluster names with spaces in it. Thanks to anilandhale for posting a potential solution.! Marcus
Hi Anilandhale, Indeed, if you see problems with the script formatting, you can just go to the generated HTML page to look at the code and that should at least give you a hint as to which part... See more...
Hi Anilandhale, Indeed, if you see problems with the script formatting, you can just go to the generated HTML page to look at the code and that should at least give you a hint as to which part of the script caused the error. Thanks for helping out! Marc
Hi Coozybones, By default, when you run the PowerCLI cmdlet "Connect-VIServer" it tries to use the current user to login. So I just run Windows scheduled tasks with a service account called s... See more...
Hi Coozybones, By default, when you run the PowerCLI cmdlet "Connect-VIServer" it tries to use the current user to login. So I just run Windows scheduled tasks with a service account called something like "svc_CPReport" and give that account read-only access to my vCenter. That way, you don't have to hardcode a username/password inside the script. - Marc
Hi SakiBones, I used to run the script monthly, but recently I set it to run on the 1st and 15th of every month. I use it mostly to ensure there are no clusters or datastore that are not near... See more...
Hi SakiBones, I used to run the script monthly, but recently I set it to run on the 1st and 15th of every month. I use it mostly to ensure there are no clusters or datastore that are not near full capacity. Thanks
Hi Jitla, It's very simple: The $FromAddress variable should contain the e-mail address you want to receive the e-mail report from (this can be a fictional address) The $ToAddress variable s... See more...
Hi Jitla, It's very simple: The $FromAddress variable should contain the e-mail address you want to receive the e-mail report from (this can be a fictional address) The $ToAddress variable should contain the e-mail address(es) that you want to send the report to.
Hello Sivaramsharmar, This is most likely a permission issue on the folder where the images are written to. Make sure the account you run the script with has Read & Write permissions on that ... See more...
Hello Sivaramsharmar, This is most likely a permission issue on the folder where the images are written to. Make sure the account you run the script with has Read & Write permissions on that folder.
Hi Jitla, Of course: You can simply modify the variable $ToAddress. (Should be about at line 37 of the script). Marcus
Hi Adriano, Sorry for the delay in response! It would not be easy to do that in the script's current form, since it has all the numbers in the script as "Integers". You cou... See more...
Hi Adriano, Sorry for the delay in response! It would not be easy to do that in the script's current form, since it has all the numbers in the script as "Integers". You could do a check to know if a certain Integer is under a defined threshold(in a certain part of the script, the function), however, the problem is you would have to find a way to add the HTML tags to highlight that number (which is in another part of the script). Take this function for example : Function GetVMHostAverageMemoryUsagePercentage ($vmhosttemp) { #For the last 30 days     $AverageMemoryUsagePercentage = Get-Stat -Entity ($vmhosttemp)-start (get-date).AddDays(-30) -Finish (Get-Date)-MaxSamples 31 -stat mem.usage.average     $AverageMemoryUsagePercentage = $AverageMemoryUsagePercentage | Measure-Object -Property value -Average     $AverageMemoryUsagePercentage = $AverageMemoryUsagePercentage.Average        $AverageMemoryUsagePercentage = [system.math]::ceiling($AverageMemoryUsagePercentage) # Round up     return $AverageMemoryUsagePercentage } Since this function returns an Integer, and the script later EXPECTS an integer, that would mean you have to do a lot of work to adapt the script to use Strings instead of Integers and then add the highlighting condition. I've considered adding this feature in the past to my script, however it just seemd like too much work compared to the potential benefit...
Hi LucD, The only metrics used to calculate the numbers in the tables are the cpu.usage.average and memory.usage.average (Line 14 and 123 of the script). The goal was to keep it simple in thi... See more...
Hi LucD, The only metrics used to calculate the numbers in the tables are the cpu.usage.average and memory.usage.average (Line 14 and 123 of the script). The goal was to keep it simple in this respect. Thanks
Hi Dixitr, Unfortunately not. The script is built from the ground up to be exported to HTML / e-mail format. A workaround I could suggest is to open the exported .HTML file and save that page... See more...
Hi Dixitr, Unfortunately not. The script is built from the ground up to be exported to HTML / e-mail format. A workaround I could suggest is to open the exported .HTML file and save that page as a PDF file. It's manual, but it works. Thanks
Hi Doyart, This script doesn't modify anything once it connects to vCenter. In fact, you can run the script with Read Only permissions, it won't make a difference because all the script does ... See more...
Hi Doyart, This script doesn't modify anything once it connects to vCenter. In fact, you can run the script with Read Only permissions, it won't make a difference because all the script does is "GET" information. Marc
Hi Pinball, First, thanks! Second, that's not how this script is programmed and I believe it would take a lot of work to change it. You can always add a section at the end of the script th... See more...
Hi Pinball, First, thanks! Second, that's not how this script is programmed and I believe it would take a lot of work to change it. You can always add a section at the end of the script that does this kind of thing. Good luck! Marc
Hello everyone! After recent discussion on vSphere Capacity planning, I thought I would share one of the tools I use for this purpose. This is a side project I've been working on for few month... See more...
Hello everyone! After recent discussion on vSphere Capacity planning, I thought I would share one of the tools I use for this purpose. This is a side project I've been working on for few months. I present to you, my very own "VMware Capacity & Performance Report PowerCLI script (v2.1 Community edition)" http://1drv.ms/1J00vkq (Click here then click on "Download") This is a complex PowerCLI script I wrote, that generates an e-mail report that gives you insight into the current state of your VMware vSphere environment's capacity. It generates tables, pie charts and line charts with information about CPU, Memory & Storage capacity, VM Provisioning Potential, Cluster Resilience and more. Check the script's #INFORMATION block for more information about prerequisites, script input and output. Have a look at the report it generates and let me know what you think of it! Please share your thoughts and comments! Marc Davoli http://ca.linkedin.com/in/marcvincentdavoli/ Edited on May 25 : Changed OneDrive link to updated script v2.1 with bugfix (for cluster names with a space in it)