[Script / Code sample requests] The Total Network Get for a given set of ESXi hosts or natachasery flow

Hi all

I asked this question to Luc rooms (@LucD22) via twitter earlier and it offers to post here... good suggestion.

Scenario:

We have a set of ESX host running on hardware of blade, currently using double transmission 10 g out to the Top of Rack Juniper EX4500 switches. I offer you with our next design to be used in the chassis MXL Force10 switches and uplink of a distributed Thorn (or Lagg for 10g or 40g). There was some resistance from the network team saying we owe to full speed for all blades, all the time... I have a strong suspicion of our overall throughput for a given frame is much less than 320gbit... but I want to prove that with solid data.

We had a follow-up, but they all use averages of 5 minutes (at best), so the transient peaks tend to miss (and I want to capture them if possible).

What I would do:

Generate a set of data that I can use to create a stacked line chart (each host or Teddy bear would be a line with each other at each point of data in total also). Probably should separate incoming and outgoing...

I would like to have the data as granular as possible, in order to capture the 20 seconds on average, calculate averages over a period of Maximum would be ideal for each host. Remember to say a data point every 30 minutes, over a period of X (probably the length of time, the script is running allowed to run to?), maybe a failsafe (x, configurable?)

However, overall, it probably should summarize each collection point, then calc the max of people for each datapoint (way not to capture two vertices that do not occur at the same time, the inclination data.)

It may be useful to divide into a new CSV file daily / some-other-small-time, so long

Other ways to do this:

Get stats levels to get the values of "maximum" in vCenter to the largest. Ideally not... He puts a reasonable amount of strain on the vCenter DB, more it will produce asymmetrical data by combining the maximum values.

Thoughts?
Cnidus

You are welcome, and as long as there is no "code editor" I will continue to make typos

Tags: VMware

Similar Questions

  • Can I use the total amount of resources (cpu/ram) of two esxi hosts if I place a cluster so that a single VM gets all resources?

    I use vCenter 5.1 with two esxi 5 guests, both exactly the same (Evga SR - 2 pc with two Intel x 5670 each) with the exception of the disk storage. Processor x 5670 a 12 hearts if HT is enabled. Since then, I have 4 of these processors that would be 48 cores. Each processor is clocked at 4 GHz for a total of 16 GHz. Each host would also 24GO of total Yes 48 GB of ram.

    I doubt that this is possible, but what I want to do is to install a virtual machine like Win 7 x 64 and give all these resources to it... all of them (perhaps leave some carrots and ram aside for guests of esxi, of course). This vm is run to 16 GHz? It would be nice if we could create a cluster with a Setup like this and give the "total available resources' for a single virtual machine running on a esxi host.

    I doubt that this is possible because I've tried that before and it wouldn't let me create a virtual machine with this number of nuclei or ram because he said that they were not available or something... as if to suggest that I can only use the total amount of resources to AN esxi host.

    There may be another way I could give this 16 GHz machine?

    Could not assign more resources to a host to a virtual computer.

  • vSphere sdk api to get the total memory available for booking of virtual machine

    What vsphere sdk api should I use to get the total memory available to make reservations for virtual machines?

    Here's what I see in the VI client,

    Click on hos-> Configuration:

    Memory

    Physics

    Total xx

    System xx

    VMS 3512,0 MB

    Service xx console

    Now, when I click on the resource allocation tab I see

    3348 MB memory reservation

    Memorey reservation used: 0 MB

    Unreserved memory: 3348 MB

    The question is what value is correct and which are programming API to get all these values (even if it is wrong)?

    If you are familiar with the vSphere API, the easiest way is to browse through the documentation of API reference: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html and/or using the CROWD (object browser), once you explore a bit, you will begin to understand where some properties of what you see on the vSphere Client

    For the configuration of host memory, take a look at: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.host.MemoryManagerSystem.ServiceConsoleReservationInfo.html

    To the memory of VM host accessible to the general public, take a look at: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ResourceAllocationInfo.html

    To get information "Resource allocation", you must get a reference to the list of local resources for your host: http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ResourcePool.ResourceUsage.html#reservationUsedForVm

    Even if you do not have a "Resource Pool", there is a defect which still exists. This should get your started

    If you use the VI of Java, you can take a look at the VI Java Browser: http://www.doublecloud.org/2010/02/22/vijava-browser-a-great-tool-to-recommend/

    You must also follow Steve Jin blog (author/creator of connections of vSphere Java open source VI)

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Need a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter

    Hi all

    If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.

    Very much appreciated to help him.

    Kind regards

    MelLvin

    I suspect that you posted your question to the wrong thread

    This requires only a minor change to the script above actually.

    Something like that

    $groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user"
    
    $esxlist = Get-VMHostforeach($esx in $esxlist){    Connect-VIServer -Server $esx -User root -Password "password"
    
        Try {      Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null    }    Catch {      New-VMHostAccount -Id $groupName -GroupAccount | Out-Null    }
    
        $rootFolder = Get-Folder -Name ha-folder-root    Try{        $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop |        Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName    }    Catch{        $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName    }
    
        $rootFolder = Get-Folder -Name ha-folder-root    New-VIPermission -Entity $rootFolder -Principal $account -Role admin
    
        Disconnect-VIServer -Confirm:$false}
    
  • A script that will count the total number of pages into multiple PDF files in a batch file?

    Is there a script I can use ExtendScript Toolkit that will count the total number of pages into multiple PDF files in a batch file?

    In another discussion I showed a JavaScript that you can use to write the number of pages to the console in a batch sequence. You would do exactly the same thing in Action, so the action would consist of a simple JavaScript (more tools > run JavaScript) which includes the code.

  • HP Deskjet 3830: Printer connected by wireless worked well until someone joined the home network - looking for password now!

    I created my HP Deskjet 3830 yesterday and it worked on wireless connection. At no time was I asked a network security key.

    A colleague joined today to the home network (yesterday I was myself), and requested a key security network - to my surprise I was so.

    I put my wireless network password, and he says that it is evil. I used HP Print and Scan doctor to confirm the password (I guess that's the same thing as a "security key" - it was OK, but I keep being told it's wrong.)

    It is porrible that it is because my setup yesterday wasn't network but without straight wire? Or want to say I'm wrong?

    Other: since yesterday I have not changed anything or even restarted.

    Reset the printer to the default network. Now plug it back to your routers SSID with password. Try now. If Direct wireless is enabled in the printer, turn it off.

  • Question about the accuracy of the Total remaining time for battery in Power Meter

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

    The remaining computing power comes from the numere questioning power management drivers and is a fairly complex calculation based on current usage (the amount of energy is consumed), the capacity of the battery (what total capacity is left and how fully charged is battery) and can also vary depending on what else is plugged into the USB port of the computer , what accessories (memory, video card, etc.) are installed, how good or bad, the battery is to maintain a charge and so on.  There is no particular reason to believe that maybe outside the right-out-of-the-box everything two laptops will show the same calculation even if they are all the same brand and model.

    "Horky.Chen" wrote in the new message: * e-mail address is removed from the privacy... *

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

  • total number of bytes of network traffic for a given period and given a vm guest

    Hello

    I want to see the total number of bytes of network traffic a given virtual machine generates in a give period.

    I think it's possible with a great metric but don't know how.

    Any help is welcome.

    Kristof

    This is for vrops x 6

    1. create a metric configuration


     
        

            
            
            

        

     

    2. create a new dashboard with a list of objects and graphic metric

    3 edit the object list widget, and the filter object type\Virtual Machines and save

    4. change the metrics graph and select the metric config that you created in step 1 in the metrix configuration box and save it

    5 in Widget interactions select list of objects in the menu drop-down and click on apply Interactions and save the dashboard

    When you open the control panel and select a virtual machine from the list (or search for it in the filter), it will display the average amount of data received and transmitted in Kbps in the metric table. Use the controls to date to specify when you want to see the data to and from.

    Hope this helps

  • What is the best way to get a customized version # from an ESXi host?

    Each quarter, we generate a sequence of updates (including patches and security scripts) which are performed manually on our 5.0 ESXi hosts. I don't have an internet connection and so I have to do it this way.  I would like to be able to identify the last quarterly update that has been run on the vCenter servers and/or Client VI.

    Right now, I think adding the quarter, example 1 Q 13 on the DCUI message, then help PowerCLI, vCenter to retrieve the message DCUI, crawled and paste the quarter in the field host Annotations on vCenter.

    Kind of ugly, but I cannot find a cool way to get data like this outside of the host.  I don't want to rely on my user manually set to nothing, for example the field of Annotations on vCenter that is also subject to errors.

    I really want something that can also be seen on the VI Client, too, as the annotations are only on vCenter.

    I have ideas about the best approach to tackle this problem.

    Thank you

    Not sure if this is the best way, but that's what I ended up doing.   It feels like there should be a better way.

    I've updated my quarterly script to add the version number at the bottom of the file, / etc/vmware/welcome, whenever it is run on an ESXi host (e.g. myScript version: v1.0 Date: 04June2013).  This file appears under the banner DCUI.

    Then, I wrote a script powerCLI to roughly the following:

    foreach ($vmHostObj in Get-VMHost-name *) {}

    # Get the full message of DCUI in/etc/vmware/welcome

    $msgObj = echo $vmHostObj | Get-VMHostAdvancedConfiguration-name Annotations.WelcomeMessage

    # Convert a hash of a string table welcome message

    $msgTxt = echo $msgObj.Item ("Annotations.WelcomeMessage")

    # find the clue for the string containing my script information, which is at the end of the welcome message.

    # This is important because the substring below function will extract everything after the index.

    $idx = $msgTxt.IndexOf ("version myScript :")

    If ($idx - gt 0) {}

    $label = $msgTxt.Substring ($idx)

    Set Annotation - remarks on the entity $vmHostObj - CustomAttribute - value $label

    }

    }

    This replaces the Notes field for each host, one day I can go back and make it more user-friendly where it replaces the version leaving the rest of the field notes intact.

  • How to change the local IP on the virtual NETWORK adapter for Web server address

    Hi all

    I have a physical Windows system, on which I run VMware Workstation 9. Now on VMware I run Ubuntu 12.10 a LAMP for a Web server.
    Problem:
    Now, my local IP address for my NETWORK card virtual (using the Ubuntu one) at the address 192.168.159.7 and my router only emits the 10.0.0.x range IP addresses. So if I want to port forward to the virtual NETWORK adapter that has a 192.168 address, I can't, so my LAMP Web server are not accessible to the outside because the router does not send packets on port 80 to the virtual card... How to fix this?
    The only way I guess that is to be assigned an ip address of 10.0.0.x to the virtual NETWORK adapter?
    But how do I do this?
    I tried to do it on the host from the Windows machine with "get my IP address automatically", but she emits an 192.168 address every time...
    Thank you

    Welcome to the community,

    I guess that the virtual computer is currently configured to "NAT" or "Host-Only' networking! That would explain the 192.168.x.x IP address.

    There are 2 options to be able to access the web server on the virtual computer.

    1. with "NAT" network configured

    In this case forward port 80 to the IP address of the host and configure the port forwarding on the virtual computer in the "Virtual Network Editor. This way you can leave the IP address on the private network of 192 (if it is currently set to NAT)

    2. use "Bridged" network layout

    Reconfigure the virtual NETWORK adapter to the machine virtual networking "Bridged" within the parameters of the virtual machine, assign an IP address from your router network (10.x.x.x) and do the port forwarding on the router directly to the IP address of the virtual machine.

    André

  • Best design for the use of 8 physical network interface cards on a 5.1 ESXi host

    I have 8 physical network cards to work with on and 5.1 ESXi host using Enterprise Plus license.  I need to repair the following traffic:

    Management traffic

    vMotion traffic

    Virtual machine traffic (probably 2 natachasery will suffice for this)

    NFS traffic

    Won't fault tolerance.  Natachasery-how much should I dedicate to NFS, vMotion, and traffic management?  What failover policy I should use (active / active) (active / standby) for each?

    It is business more licensing and vSphere distributed switches are used.

    Thank you

    Yes, I would put the backup in the switch as well as management traffic and vMotion is they use vSS or vDS. The other option would be to reduce your vDS for NFS traffic of 4 natachasery 2 natachasery and then or to add to the existing vDS that contains management and vMotion VM traffic to add it extra bandwidth or create a new vDS with these 2 natachasery. But at the point of my original thought around creating a vDS is based on all of my bandwidth throwing together and then cut it but I want it and do not have to trade around natachasery after the fact. But there are so many different ways to achieve that is the fun part.

  • The virtual NETWORK card MAC address is editable in ESXi?

    Is it possible to put the address MAC of the virtual NETWORK adapter to a custom value instead of let the hypervisor generate the MAC address for each NETWORK adapter in each computer running under ESXi virtual? I know that this is possible in workstation, server, Fusion, etc.

    Hello.

    Discover KB 507.

    Good luck!

  • By specifying the path network topology for flat files

    Hello

    It is possible to specify the path network for files in the topology.
    for example:-as we specify say d:\source, can here we specify as \\netwokmachine1\source?

    Thank you
    Mahesh

    YES. We can. It worked for me

  • Network configuration for two virtual machines on a host

    I have two XP running on a Vista 64 host using 6.5 guests.  I would like to power instant message between the two guests.  I use the option open, and each guest can comminicate outward, very well.  However, if I send an instant message from one guest to another, the message can't.  All parameters in the virtual network editor are the default values on the two hosts.  Thank you.

    so IM between two virtual machines should work as well.

    There must be a factor that we haven't talked yet - any ideas?

    ___________________________________

    Description of the vmx settings: http://sanbarrow.com/vmx.html

    VMware-liveCD: http://sanbarrow.com/moa.html

  • I am trying to register my product online and asks me a code of request - where can I get the claim code?

    I'm trying to get a claim code so that I can record.

    Is which product this?

Maybe you are looking for

  • Why a formula will work in each cell of each other than A column?

    Just for appearances, I would like to see the result of a formula in A4 format. When I enter the formula in A4, it returns an error. However, when I copy and paste the formula (or drag the cell) into any other cell in any column that does not have on

  • OS 6.5.1 - RC1 can plan problem

  • The best way to draw the difference of phase vs. time of two signals

    I have three channels (time, force, displacement) of approximately 1 000 seconds of a sinusoidal test load test data (sampling rate was 100 Hz).  I would draw the difference in phase between the force and displacement (perhaps using a second window 3

  • No sound with You Tube

    I can't hear sound on the videos of You Tube with Adobe Flash Player (latest version). Audio on my laptop is good because I can listen to music from Media Player and other sources. The only problem with the audio is with videos from You Tube, my brow

  • DriverSupport remove it from my computer?

    * Original title: DriverSupport I have this installed on my PC since October 28, 2014. https://secure.driversupport.com/account/home/about I can't download it, and my wife is sure that she didn't, but...! (She could have) Do I really need this out th