Need to obtain information from a host distributed switch

Hi all

I want to get information distributed switch of a host.

With the script below am able to get the name of the switch, network cards added to the dvswitch and its status.

$report = @()
foreach ()$sw in (Get-VirtualSwitch -distributed)) {}
$uuid = $sw. ExtensionData.Summary.Uuid
$sw . ExtensionData.Config.Host | %{
$portStates = $sw. ExtensionData.FetchDVPorts ($null)
$esx = Get-View $_. Config.Host
$netSys = Get-vue $esx. ConfigManager.NetworkSystem
$netSys . NetworkConfig.ProxySwitch | where {$_. Uuid -eq $uuid} | %{
foreach ($pnicSpec in $_. Spec.Backing.PnicSpec) { }
$row = "" | Select Host, dvSwitch, Teddy bear, PortLinkUp
$row . Host = $esx. Name
$row .dvSwitch = $sw. Name
$row . PNic = $pnicSPec. PnicDevice
$row . PortLinkUp = () $portStates | {$_. Clé - eq $pnicSPec. UplinkPortKey}). State.RunTimeInfo.LinkUp
$report += $row
}
}
}
}

$report


But I would like to get the information of physical switch (switch. physical name and port information of each vmnic connected to this host please help to get the same thing.)

Note:

CDP information are enabled.

Since you have the natachasery, it would be a matter of using a script like Re: how to get the CDP in Switch Cisco values? for the information of the COP.

Tags: VMware

Similar Questions

  • Need a powershell script to gather information from ESX host

    Hello

    I need a powershell script to collect the below given information host ESX to the Virtual Center. My VC:2.5 of the environment, the ESX hosts: 2.5, 3, 3.5

    At present I have individual powershell scripts of a steamer to get these details. Would be more useful to have a single script. I tried VESI, but does not receive the report in the below in the format.

    | ESX host name Version | Number | construction | manufacturer Model | Processor type | Number of physical CPUS | Number of cores | VMotion service IP Console IP | | County HBA | Physical NETWORK interface cards count

    Thanks in advance!

    So I'm at my wits end here.

    It works for me and Robert also confirmed that it worked for him.

    Although I don't see why this would solve the problem, you could finally try an upgrade to PowerShell v2 RTM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • I need to pass information from old computer to new computer, how do I put it on a flash drive

    I need to set up the new computer and want to back up info from old computer to a flash drive and then reload info to new computer.

    Hello

    What is the operating system in the new computer?

    You can manually copy and paste the files in the flash player and transfer. You can also use Windows easy transfer to transfer files using a flash drive. For more information, see this article:

    Transferring files and settings: frequently asked questions

    http://Windows.Microsoft.com/en-in/Windows7/transferring-files-and-settings-frequently-asked-questions

    See also:

    How Windows Easy Transfer makes setting up a computer easier?

    http://Windows.Microsoft.com/en-us/Windows7/how-does-Windows-easy-transfer-make-setting-up-a-computer-easier

    Note: If you are transferring from a 64-bit version of Windows XP, you need to move your files manually.

    Hope this information helps.

  • Obtain information from the OS - where Oracle EBS installed

    Hi friends,

    I raise a SR Oracle for more help about Oracle EBS R12. but I need to provide some information.

    Operating system/Version - how can we get this information - is there any query or is it possible to get this info.


    Thank you and best regards,

    User

    I got the info from my DBA.

  • Need to capture information from the user in AM

    Hi all

    I need to capture the user's information in the Module of the Application. Could you please suggest me how I can do this...

    Thank you
    GRISSA

    Use

    getOADBTransaction () .getUserId)

    or

    getOADBTransaction () .getUserName)

    -Anand

  • Need to retrieve information from the user who blocked the account

    Hi all

    As we had forced her, we changed the password of our schema.

    The same pattern has been locked up in the next day morning.

    We have required to generate the information to senior management who has blocked the account by giving the wrong password.

    Kindly guide / help me to retrieve the USER information.

    Thanks in advance.
    Orahar

    Hello

    SQL> show parameter audit
    ORA-00942: table or view does not exist
    

    you're trying the foregoing to the privileged user not DBA.

    Try your user SYS or SYSTEM.

    Kind regards
    Delphine K

  • Obtaining information from line datagrid dynamically

    I want to be able to get the details of the exact line of a specifically datagrid on working capital. Is there a possible way to get this? I need to use the row data to generate a graph dynamically at execution. Suggestions and advice appreciated.

    Just he said. There is another itemRollOver event. That's what I needed.

  • Need to retrieve data from the internal 512 GB sata drive (now removed the MB).

    MUSIC have a 512 GB mb pro with internal chips removed sata disk. I need to get information from the drive (now removed the MB). I expect to get the data via the USB port.  How to do this and with what cable. I have a MB air as replacement.

    Thanks for your help.

    Use this external case: http://eshop.macsales.com/item/OWC/MSTG800U3K/.  I replace in clone disks, data readers, testdrives for new OSXes, etc.  Any 2.5-inch drive, really.

  • Extract information from signature in VBA to a PDF file

    Hi all

    I need to extract information from signatures of PDF files in VBA (mainly the name of the signer and the date of signature. PDF files have several signatures inside them).

    So I have a few questions:

    -Are there an example somewhere to do such a thing?

    -I need Acrobat Pro for this? This is an important point because the code is supposed to be run on machines where ONLY Acrobat Reader is installed.

    -If the above is not possible, do you know a command line utility that would do the thing (and I could run from my VB code)

    Thank you for your help

    Emphyrio

    As already mentioned, you will need Adobe Acrobat Standard or Pro VB/JS bridge. If you want to make this work with just the free reader, you are limited to what you can do in JavaScript environment. Basically, this means that you must open the file in the player and then for example use a menu item to trigger functions to get information about signatures in your file. For example, this information may appear on a dialog box, and you would be able to copy & paste from this dialog (which means no VBA integration at all).

    Of course, you can use either Adobe PDF Library (licensed through Datalogics), or other 3rd party PDF frameworks/libraries. It's a site run by Adobe, you will understand that we cannot give you advice regarding 3rd party solutions that compete with the own Adobe solution.

  • Get specific information from executives of related texts

    Hi all

    So here's my question. I need to get information from text within a thick layer. The layer contains images and text and the text is the information that I need, which looks like this:

    (4) L attest 1,2,3,4

    (13) XL 5,7,8,9,10,11,12,14,15,17,19,20,21 bolt torque

    (4) bolt torque 22,23,25,27 XXL

    (1) XXXL 34 bolt torque

    I need to do three things: the number that represents the number inside the parenthesis, the size that it is the next set of letters (L, XL, XXL, XXXL) and the list of numbers (I need not "# s" characters), and information storage together to know for example that size L has a 4 number and numbers are 1,2,3 and 4.

    If someone could point me in a direction to achieve this I would really appreciate it. I'm working on CS6.

    Thank you.

    This is not EXACTLY how I described above... but this is the one I tested with. It doesn't have the conditional statement about whether she should use asterisks or peren and me have just pre-programmed the chain of the textFrame. It worked for me. It will be perhaps more useful than this wall of text and attempts at explanations...

    function getRoster()
    {
        var roster = {};
    
        var text = "(4) AL #'s 1,2,3,4\
        (13) AXL #'s 5,7,8,9,10,11,12,14,15,17,19,20,21\
        (4) AXXL #'s 22,23,25,27\
        (1) AXXXL #'s 34\
         \
        TOTAL: 22"
    
        var lines = text.split('\n');
    
        roster["sizes"] = {};
    
        for(var a=0;a5 && lines[a].indexOf(":") == -1)
            {
                var qty = lines[a].substring(lines[a].indexOf("(")+1, lines[a].indexOf(") "));
                var size = lines[a].substring(lines[a].indexOf(") ")+2, lines[a].indexOf(" #"));
                var nums = lines[a].substring(lines[a].indexOf("s ") + 2, lines[a].length);
                nums = nums.split(",");
    
                roster["sizes"][size] = {};
                roster["sizes"][size]["quantity"] = qty;
                roster["sizes"][size]["numbers"] = nums;
            }
        }
        return roster;
    }
    var theRoster = getRoster();
    

    This script returns the next object and saves it under theRoster:

    var theRoster = {
         "sizes" : {
              "AL" : {
                   "numbers": ["1", "2", "3", "4"],
                   "quantity" : 4
              },
              "AXL" : {
                   "numbers":["5","7","8","9","10","11","12","14","15","17","19","20","21"],
                   "quantity" : 13
              },
              "AXXL" : {
                   "numbers": ["22","23","25","27"],
                   "quantity" : 4
              },
              "AXXXL" : {
                  "numbers" : ["34"],
                   "quantity" : 1
              }
         }
    
  • Download of information from one Oracle_DB_A to another Oracle_DB_B

    Hello world

    What I want to do is to use as the source of an Oracle_DB_A and move that data to other Oracle_DB_B. Is this possible? I guess it is.

    I guess I have to create and use a new database server? Or can I use an existing one?

    What I've done so far is to transfer data from an excel in an Oracle_DB_B file, and now I need to bring information from another Oracle_DB_A.

    I really appreciate all of you for your advice and help.

    Best regards.

    Jaison

    Stephanie wrote:
    Hello world

    What I want to do is to use as the source of an Oracle_DB_A and move that data to other Oracle_DB_B. Is this possible? I guess it is.

    Yes it is possible.

    I guess I have to create and use a new database server? Or can I use an existing one?

    If you created the database for the Oracle_DB_A and the Oracle_DB_B server, then you can then reuse.
    ELESE create in topology

    What I've done so far is to transfer data from an excel in an Oracle_DB_B file, and now I need to bring information from another Oracle_DB_A.

    I really appreciate all of you for your advice and help.

    Best regards.

    Jaison

    Once the database server is in place, reverse engineering to get the metadata in the model.
    Create ODI interface to transfer data from one data store.
    You can use

    LKM: Oracle for Oracle (DB Link)
    Or
    SQL for Oracle

    IKM: Updated incremental Oracle
    Or
    Added SQL command

    These lists are not restricted, you can choose according to your requirement.

    Thank you
    Fati

  • migration of the distributed switch standard, how much should be created?

    I'm migrating my VMs from standard to distributed switches.  Are there practices for distributed switches how you create?  Vmotion traffic must be on a separate dvswitch?  My plan was to a dvswitch for vMotion and the other for my VMs and mgmt of ESXi servers.  OR would they all simply in the same switch?

    Thanks in advance.

    Do not forget that each vDS need your own uplinks (physical network interfaces)... If you have enough rising, you can create several vDS, but with a small number of uplink, a better approach is to create just a single vDS and a group of ports for each type of traffic (vMotion, mgmt, VM)... and you can specify the uplink for each port group to use by using the configuration of aggregation and failover.

  • Need powershell scripts to collect information from vm disk

    Hello

    I need two scripts to collect information from vm drive,

    1 script to collect information vm disk mode

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | VMDK name | Device label. disksizeInGB | diskmode

    Disc-> Just need the info as persistent or independent_persistent mode

    2. script to collect info RDM of Vm

    Expected results:

    The virtual computer name. Name of ESX. Cluster name | DeviceName | File name | Compatibility mode | Size

    The first script

    Get-VM | %{
         $vm = $_
         $vm | Get-HardDisk | %{
              $_ | select @{N="VM";E={$vm.Name}},
                   @{N="ESX";E={$vm.Host}},
                   @{N="Cluster";E={(Get-VMHost $vm.Host | Get-Cluster).Name}},
                   @{N="VMDK";E={$_.Filename}},
                   @{N="Device Label";E={$_.Name}},
                   @{N="disksizeInGB";E={"{0:N1}" -f ($_.CapacityKB/1MB)}},
                   @{N="Diskmode";E={$_.Persistence}}
         }
    } | ft -AutoSize -Force
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Why need a cable modem from a router can send and receive information to a computer?

    Why need a cable modem from a router can send and receive information to a computer?

    On Fri, 14 September 2012 17:14:59 + 0000, stuckfree wrote:

    Why need a cable modem from a router can send and receive information to a computer?

    A router is a device that connects computers (or other type of computer
    devices) to each other on a network and you can send files
    from one computer to the other. It does not connect to the internet, and
    you need a device called a modem vaguely to do this. The modem also
    connects to the router and allows the computers on the network
    (those connected to the router) to connect to the internet.

    However, note that there are some available devices that are
    router-modem combination. If your router is of this type, you do not have
    need a modem.

    Ken Blake, Microsoft MVP

  • How to remove a host from switch if distributed dvswitch removed from the host?

    Hello

    If someone removed from the distributed switch vClient connected directly to the esx host, how to delete this host of the distributed switch configuration?

    There is no option to add this host to distributed switch.

    Any thoughts?

    Thank you

    Suresh.

    You can try disconnecting the host, then removing vcenter?

Maybe you are looking for

  • Foxtab PDF Converter exists, it is malware?

    Heard on an add-on Firefox called Foxtab PDF Converter, google, got four hits in saying it as malware and pervasive (as for uninstalling it.) It is supposed to convert any file that can be printed to PDF, which resembles a very handy add-on. Everyone

  • Satellite L30 - 10Y black at startup the screen upward after the installation of new modules of RAM

    Hello I use the L30 - 10Y model with the following memory specification: standard: 512 MBmaximum scalability: 2 048 MBtechnology: DDR2 RAM (533 MHz)expansion module sizes: 256, 512, 1 024 MB I use Windows Vista Home Basic Edition with a 32-bit operat

  • WD My Book and Airport Extreme

    Hello I'm having a problem using a new WD My Book with Airport Extreme. I was able to format in Mac OS extended (journaled). If connect directly to my iMac (Yosemite) is mounted and time machine asks if I want to use it as a backup drive. However, wh

  • Low 6343 USB digital output

    Hello I use the digital output to USB-6343. Sometimes when I stop writing (clear the task) the rest at high output pin (I see it in the oscilloscope). Is it possible to set that after earasing task output pin will always be low? Thank you Leonid

  • I couldn't open my emails or delete my mails?

    Could you send me an email with your solution on what is the problem with my hotmail account.  Since last week, I never could delete my emails, open my emails and even go into my personal e-mail folders?  Basically, my hotmail.com doesn't work anymor