VMware vSphere

 View Only
  • 1.  Export Vsphere Networks

    Posted Aug 06, 2020 10:59 PM

    Hi,

    I've had a look online, and following an issue with a esx host that needed rebuilding, i had to manually add all the network pools, vlan ID's etc to the host that died using other hosts for reference.

    Is there a way we can back  this up/export it to save having to manually type all this in.

    In the event all hosts went down, obviously reconfiguring this would be a nightmare unless we had documented/screenshotted every screen.

    Cheers



  • 2.  RE: Export Vsphere Networks

    Broadcom Employee
    Posted Aug 07, 2020 05:59 AM

    Moderator: Thread moved to the vSphere area.



  • 3.  RE: Export Vsphere Networks
    Best Answer

    Posted Aug 07, 2020 08:50 AM

    - Host Profiles

    - vDS instead vSS

    - Some time ago there was a fling like vCenter hmmmmm. It reads the structure of an existing vCenter and creates the Powershell code or something like that to recreate it on another vCenter. Not sure how Hosts are covered.

    I often use "esxcfg-vswitch -l" and then recreate the vNetwork from command line. I only struggle with Uplink ordering/security seetings and using the new "esxcli ...." instead the depricated esxcfg.

    Regards,
    Joerg



  • 4.  RE: Export Vsphere Networks

    Posted Aug 10, 2020 02:23 PM

    Hi There,

    I did  end up looking into host Profiles, we dont use VDS so it seemed like the closest choice.

    I also exported the settings via powershell just so we have the info to hand. (network adaptor and port group info_

    Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\pstest\VMHostNetworkDetails.csv

    $VMHosts = Get-VMHost

    $Output = Foreach($VMHost in $VMHosts){

    Get-VirtualPortGroup -VMHost $VMHost | select @{N='VMHost';E={$VMHost.name}}, Name, VirtualSwitch, VLanId} 

    $output | export-csv "C:\pstest\VMHostPortsGroupDetails.csv"

    Cheers