The VirtualSwitch and Virutalport group details

Hello

I'm trying to collect each host vSwitch details information and the port configured in the cluster group.

I go and get the result by using the onliner like that... (get-vmhost | get-virtualswitch | get-virtualportgroup)

But please can someone help me get it in report as below

ClusterName ESXhost vSwitch exchanges

X x 1 vSwitch0 1, 2, 3, 4, 5

vSwitch1 6, 7, 8, 9, 10

I am sure, that such a request could have answered already. But I could not do in the search.  Thanks in advance.

I combined the name of virtualportgroup and the VLanId, you will get something like "pg1-123", where pg1 is portgroupname and 123 is the VLanId.

foreach($cluster in Get-Cluster){    foreach($esx in Get-VMHost -Location $cluster){        Get-VirtualSwitch -VMHost $esx |        Select @{N="Cluster";E={$cluster.Name}},            @{N="ESXi";E={$esx.Name}},            @{N="vSwitch";E={$_.Name}},            @{N="Portgroups";E={[string]::Join(',',(Get-VirtualPortGroup -VirtualSwitch $_ | %{"$($_.Name)-$($_.VLanId)"}))}}    }}

Tags: VMware

Similar Questions

  • How to put the text in the cell and support in detail in read-only?

    Hello world

    In Hyperion 11.1.1.3, nobody knows how to put the text in the cell and the support of the details read-only after that the budgeting process is done in order to avoid people to change their comments.

    Thank you!

    Published by: Ouizmie on February 3, 2011 11:14

    There is no way to restrict the entry of text in the cell
    If you specify the description to charge you like details in support, which can be made read-only.
    but cell text comments to review, which can be changed. Even if you only read your form, users will be able to enter the text in the cell as long as they have access to the intersections of data...

    You can do a process to enter the descriptions of the charges, as supporting details only...

  • I can't view and print details in the Windows experience index, when I click on the display and printing of details.

    When I click on the button check printing details and it appears a message saying not able to create Details page.
    How can I solve this problem? for those who want the truth revealed open their hearts and their secrets unseal right now until the now from now who complete memories for those who are now in this House only truth will be heard from the mouth

    Hi Alex,

    Thank you for using the Microsoft answers Forum!

    From my research, I suggest you try the following steps.

    Method I - execute a System File Checker tool.

    To determine if the problem you are experiencing is caused by one or more system files that are used by Windows Vista, run the System File Checker tool. The System File Checker tool analyzes the system files and replaces incorrect versions of system files by using the correct versions.

    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the box start the search.

    2. right click on cmd in the list programs and then click Run as administrator.

    If you are prompted for an administrator password or a confirmation, type your

    password or click on continue.

    3. at the command prompt, the following line, and then press ENTER:

    sfc/scannow

    Once the completed scan, a test to see if the problem you are experiencing is resolved

    See this link for more information about the System File Checker tool.

    http://support.Microsoft.com/default.aspx/KB/936212

    Let me know if it worked

     

    Kind regards

    Karena a: MICROSOFT SUPPORT

    ------------------------------------------------------------------------------------------------------------

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • The files and folder grouping

    Hello, I went to watch my file flash drives, and they were all grouped by file format. I don't like it and I was wondering if I could change?

    Hello

    Please, customize the view by referring to the link.

    http://Windows.Microsoft.com/en-us/Windows7/arrange-sort-or-group-your-files

  • Script to automate the affinity of the crib of DRS-groups

    Hello

    I am trying to automate the rules of affinity for the drs Group Manager. The idea is to let some virtual machines running on

    assigned to the esx host (type 'Run VMs on Hosts' / 'Should run on hosts in the group').

    Background: we have esx hosts in two data centers interconnected 10 giga with a metrocluster netapp on each site hosting the nfs exports. I created two groups of type "Host DRS Groups" (in datacenter esx host a go into one, hosts datacenter b go the other) and two groups of type 'Machine virtual DRS Groups' (virtual machines hosted on export nfs one go into one, while the virtual machines hosted on nfs export b go the other). In this way, we can prevent nfs/iscsi traffic across data centers.

    Create the rules manually in a small cluster works. However with dozens of virtual machines in the other groups, there must be a way to automate the task and that it is regualary. I let powercli generate a list of VMS according to nfs export (hard location is either the field a or site b) then import the given in the Virtual Machine DRS group concerned.

    Using get-drsrule-Cluster 'cluster ' | Export-CliXml does not display a details for groups of DRS HOST or Virtual Machine DRS. Is it possible to do it at all? I recon using set-drsrule let me import rules.

    Any help / ideas is appreceated.

    Concerning

    Sascha

    The current DrsRule cmdlets do not, all I know, allows you to work with groups of DRS.

    As an alternative, you can use the ReconfigureComputeResource method that is available.

    The script should look like this

    $clusterName = "MyCluster"
    $cluster = Get-Cluster -Name $clusterName
    
     $spec = New-Object VMware.Vim.ClusterConfigSpecEx
    $groupVM = New-Object VMware.Vim.ClusterGroupSpec $groupVM.operation = "add" $groupVM.Info = New-Object VMware.Vim.ClusterVmGroup $groupVM.Info.Name = "Grouped VM" 
    
    Get-VM -Name MyVM1* | %{
        $groupVM.Info.VM += $_.Extensiondata.MoRef
    }
    $spec.GroupSpec += $groupVM
    $groupESX = New-Object VMware.Vim.ClusterGroupSpec $groupESX.operation = "add"$groupESX.Info = New-Object VMware.Vim.ClusterHostGroup$groupESX.Info.Name = "Grouped Host"
    
    Get-VMHost -Name MyHost1* | %{
        $groupESX.Info.Host += $_.Extensiondata.MoRef
    }
    $spec.GroupSpec += $groupESX
    $rule = New-Object VMware.Vim.ClusterRuleSpec$rule.operation = "add"$rule.info = New-Object VMware.Vim.ClusterVmHostRuleInfo$rule.info.enabled = $true$rule.info.name = "Test DRS group rule"$rule.info.mandatory = $true$rule.info.vmGroupName = "Grouped VM"$rule.info.affineHostGroupName = "Group Host"$spec.RulesSpec += $rule
    $cluster.ExtensionData.ReconfigureComputeResource($spec,$true)
    
    The script first creates 2 DRS groups. One with the VMs and one with the ESX(i) servers.
    

    In the example, there all customers whose name starts with "MyVM1" for a group and all hosts whose name begins with "MyHost1" to the other group.

    These 2 selections will of course be changed for your configuration. Let me know what selection rules you want to implement for virtual machines and hosts and I can update the script.

    The script then creates a rule. Note that the rule specifies $true for the "required" property

    This means that a virtual machine will not be powered on if the placement host does not match the rule.

    The 2nd parameter to the ReconfigureComputeResource method allows you to specify if the changes defined in the $spec to add or not.

    If it's not $true all your cluster settings, except for the groups and the rule will be deleted. So, attention!

  • You want to delete the user account from the computer and turn the computer on a workgrout or a homegroup.

    Original title: My Windows 7 laptop is plugged in and not on a network. My lack of understanding of the work and networking groups made me make a mess in the implementation

    I implemented 'users' as I could and now I find that in large part is loaded on my computer and I didn't need to have to deal with two identities to myself.  Can I fix or would it not be better to reinstall Windows a user, a set of files on all and the guest account will be switched off.  In addition, even though my computer says that it is a working group, the only internet connection I have is the LAN.  Can someone put me directly.

    Thanks in advance

    Hi Daniel,.

    Until we provide troubleshooting steps, we would like to know as a result of information from you.

    Do you have problems when you access to your user accounts?

    It depends on your choice what parameters of files you want to keep to a particular account. As you mentioned that you have two accounts and you want to keep once the user account, I suggest you follow the steps in the link given below to delete a user account.

    Delete a user account

    http://Windows.Microsoft.com/en-in/Windows7/delete-a-user-account

    If you want you can transfer files and setting up one account to another, you can follow the steps in the link below.

    Difficulty of a corrupted user profile

    http://Windows.Microsoft.com/en-in/Windows7/fix-a-corrupted-user-profile

    You can see the steps in the link below to add your computer to a home group or a working group.

    Join or create a workgroup

    http://Windows.Microsoft.com/en-in/Windows7/join-or-create-a-workgroup

    Homegroup from start to finish

    http://Windows.Microsoft.com/en-in/Windows/HomeGroup-help#HomeGroup-start-to-finish=Windows-7&V1H=win8tab1&V2H=win7tab1

    Feel free to write us if you are still experiencing a problem. We will be happy to help you.

  • Using elements in the field and the transfer of my computer at home?

    I want to use my ultrabook with elements in the field in order to sort, shoot, and edit the images in time.  When I go home can I just transfer these files from my computer at home and use Get Photos to add them to my main catalog?  Tags, version sets and changes made in the field will survive, so that it would be the same if I had done this treatment on my computer at home in the first place?

    Here is a more detailed workflow suggestion, assuming you want to do the bulk of your organization in the computer field.

    It is based on the notes above and the use of a backup PSE to transfer photos and catalog of the field at home a computer.

    -Create a new catalog on your computer in the domain before you download files.

    -organize entirely unconstrained...

    -Prepare a later import in your main catalog, after the backup and restore processes (details to come...) or wait until after the restoration to make this work.

    -Backup to a disk external (there are beautiful portable USB drives in ideal for this)

    -(Note: quand vous avez votre sauvegarde, il est sûr de re-formater vos cartes.)

    -Restore from the external hard drive to your computer at home (custom destinatin). You will have a new catalogue with all your changes.

    -If you did not already preparing indicated above, it is here. Select the files in the batteries and common as label "IsInAStack", and then select the version games and assign a label like "IsInAVersion". Now, you can also assign keywords to the components of cells. For albums, use the common keywords. If you need save the order in albums (for slideshows...) export and rename the files as explained above and reimport them in your catalog.

    -Now you can re - import the files in your main catalog

    -To re - create batteries select files with "IsInAStack" or their label and either stack manually or with the help of the feature automatically 'suggest piles. Sets of version can be restored only like batteries. Albums must be recreated: you drag the selection based on the keyword corresponding to the album.

  • Join between tables header & detail based on the age and group

    To find the amount of the age and the group in the table of detail based on age & group_id in header?

    Example: Take the seq_id = 1 mind, it has age = 60 & group_id = 23 (23 months).

    In the detail table xx_detail, the age column represents the age of the person (0-65 represents the age 0-65 and so on).

    If the age is null, while the rank indicates the Group (0-12 represents the group between 0-12 months). If the age is not null, then the Group 1, group 2, group 3 that data amounts.

    So now I must get the amount as 240 (like my seq_id header = 1, age = 60, group_id = 23, as it is covered by group age & 13-59 0-65). So I need a SQL to find the exact amount in detail based on the header record. We must go to settings & group_id age and get an amount of detail tables. Can anyone provide input how to achieve this in the most simple.

    1. SQL > select * from v$ version
    2. 2.
    3. BANNER
    4. --------------------------------------------------------------------------------
    5. Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    6. PL/SQL Release 11.2.0.3.0 - Production
    7. CORE Production 11.2.0.3.0
    8. AMT for Linux: Version 11.2.0.3.0 - Production
    9. NLSRTL Version 11.2.0.3.0 - Production
    10. SQL > xx_header desc ;
    11. Name Null?    Type                                     
    12. ----------------------------------------- -------- ----------------------------
    13. SEQ_ID VARCHAR2 (6)
    14. AGE                                                NUMBER
    15. START_DATE                                         DATE
    16. GROUP_ID NUMBER
    17. SQL > select * from xx_header;
    18. SEQ_ID AGE START_DATE GROUP_ID
    19. ---------------- ------ ------------------        ---------------
    20. 1 60 1 JANUARY 12 23
    21. 2 89 1 JANUARY 12 23
    22. 3 95 1 JANUARY 12 23
    23. SQL > xx_detail desc ;
    24. Name Null                                      
    ?    Type
  • ----------------------------------------- -------- ----------------------------
  • SEQ_ID VARCHAR2 (10)
  • AGE                                                   VARCHAR2(10)
  • GROUP1 VARCHAR2 (10)
  • GROUP2 VARCHAR2 (10)
  • GROUP 3 VARCHAR2 (10)
  • SQL > select * from xx_detail;
  • SEQ_ID AGE GROUP1 GROUP2 GROUP3
  • ---------- ----------           ----------            ----------     ----------
  • 1                                0-12              13-59       60-126
  • 1           0-65               120                 240         300
  • 1 66 - 135 100 80 400
  • Hello

    Is this the same question you asked 3 days ago

    https://forums.Oracle.com/thread/2606197

    ?

    Whether it is or not, validate the information requested in this message, which is also in the FAQS of the Forum:

    https://forums.Oracle.com/message/9362002

    If it's the same question, do not post a new thread.  Mark it as "Answered" immediately and continue in the original thread.

  • Configure the timeout and session timeout in a group policy.

    I want a L2L tunnel to establish a period of time, this tunnel is established in a PIX 515E.

    Then I had seen that we must configure the idle time in group policy, but I have no ' t know the difference between the idle timeout setting and the session timeout.

    Anyone know what is the difference between this two command line.

    Thank you

    Hello

    Session-Timeout: at the end of this time, the security apparatus terminates the connection.

    Idle-timeout: If there is no communication on the connection activity in this period, the security apparatus terminates the connection.

    Please see the below URL for more details.

    http://www.Cisco.com/en/us/docs/security/ASA/asa70/command/reference/TZ.html#wp1281883

    http://www.Cisco.com/en/us/docs/security/ASA/asa70/configuration/guide/vpngrp.html

    Kind regards

    Arul

    * Rate pls if it helps *.

  • How to group on the left and right audio tracks of a. OMF file?

    Hi, I'm changing the sound of my short film, I sent one. OMF to audition for the first, but the left and right channels are separated in the multitrack session tracks, how would group them so whatever I do to a channel, will be the other

    This is because the OMF specification requires mono audio files

    It really depends on what you're trying to do with the two tracks as the best answer to the extent of the 'group '.

    You can select all the clips on the tracks and right mouse click on and select "group".

    You can send two channels to a bus

    You can export the two lanes to a stereo file and that bring in the session

    Many more things I know not but a little more details about what you're trying to do would help

  • If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?

    If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?
    (sometimes, someone answers my question, and I want to mark it as the solution and am not yet quite ready for the thread be closed...)

    If you still experience this issue, you can return to this thread.
    But, you must clear the flag solved .

  • My Yahoo cursor has changed to a diamond with a cross in the middle and nothing in the pick - able (?) groups. How can I change back?

    My Yahoo slider went from arrowhead to a diamond with a cross in the middle and nothing in the pick - able (?) groups. How can I change back? 8.1 (latest) Windows and FireFox (latest).

    You're not referring to auto scroll?

    • Tools > Options > advanced > general: navigation: "use autoscrolling".
  • How can I remove comments from the users and groups

    I have my in my users and groups in the system preferences a user snd invited another user

    How can I remove them

    Go to Preferences system-> users and groups, and then press the lock to allow you to change the settings. Then choose 'user comments' in the sidebar and uncheck "Allow clients to connect to this computer". This will not make this option disappear, but after that you will not be able to use the Guest user.

    «Respect for the other user, simply choose it in the sidebar and press on the '-' button.» Make sure that no one uses this user.

  • Slow with the sending and receiving of Skype messaged in group chat

    Seems to have no problem with ordinary a shat, but when I'm in a discussion group that it takes a lot of time for my message be sent it is just gray and have this loading circle to the left.

    Also, some messages are received several minutes once they are written to the original, make a group of very confused discussion throughout...

    http://heartbeat.Skype.com/

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Satellite A50: Need the detailed specifications of the screen and DVD - RW

    Hello

    One of my friends had their murdered A50.
    It suffered a blow hard with blunt when closed, which broke the screen and totally destroyed the hard drive.

    This is probably beyond economic repair. However, I had a go at laptops before repair (mainly the Apple iBook - these have tiny parts and are quite difficult to maintain - the Toshiba looks easy).

    I have two questions-

    First, I removed the HARD drive and hooked it to an external monitor. The wireless appears to work, the charges of the battery and the system boots to the BIOS. I took the hard drive and it is writing off the coast, the data has been saved.

    However, I can't get the DVD player to eject. I opened it with a paper clip, and it opens and closes fine manually. There don't seem to be getting no power anyway. Is this normal? It does not seem to have taken no external damage, it is easy to take the coverage of the case and take a look at the connectors.

    Second, the screen is broken (just the glass, the rest of the top of the page looks very well). Anyone know what is the model of screen used in the A50? In addition, a source for this bit second hand would be great - pointers? (if this is allowed in the forum?)

    See you soon,.
    Josh

    [Edited by: admin on 21 January 06 11:04]

    Hello

    In my opinion the best way to order parts is to contact Toshiba service partner because it has detailed information on compatible parts. In addition, sometimes laptops come with different screens and if you want to be 100% sure what part is supported so ask the ASP.
    However I found this site with a screen for an A50:
    http://www.screentekinc.com/Toshiba__Satellite__A50--14.1_lcd_screen--(1024_x_768) _XGA.html

    Well well about by car: in my opinion, the drive is broken and it should also be replaced.

    Good bye

Maybe you are looking for