Help with script distributed switches Reporting

Hello everyone, my name is Sebastian and I have a question for the VMware community.

I need to know what network card physical and ESX are connected to a distributed switch. I've found that for Virtual Switch: Re: help with vSwitch reporting script. I would do the same thing with DvSwitch.

Any idea?

Thank you very much in advance for your help.

Kind regards

Sébastien.

Take a look at 1. Re: get NIC host assigned to a dvSwitch  

Tags: VMware

Similar Questions

  • Help with script Reporting vSwitch

    Hi, looking for a little help to report on the vSwitches.

    The script I've tried to write is shown below, but of course I messed up that it returns only the host names and my column headings.

    Any help really appreciated and pointers where I was wrong.

    Thank you

    Dan

    $vSwitchRep = @)
    $vmhosts = get-VMHost | Name sort
    ForEach ($vmhost to $vmhosts)
    {
    $vSwitchObj = "" | Select the host name, vSwitch, vmnic, TotalPorts, PortsAvailable, MTU
    $vSwitchObj.HostName = $vmhost. Name

    ForEach ($vswitch in $vmhost. VirtualSwitch)
    {
    $vSwitchObj.vSwitch = $vmhost. VirtualSwitch.Name
    $nic = «»
    ForEach ($vmnic in $vmhost. VirtualSwitch.nic)
    {
    $nic += $vmnic
    }
    $vSwitchObj.vmnic = $vmnic
    $vSwitchObj.TotalPorts = $vmhost. VirtualSwitch.NumPorts
    $vSwitchObj.PortsAvailable = $vmhost. VirtualSwitch.NumPortsAvailable
    $vSwitchObj.MTU = $vmhost. VirtualSwitch.Mtu
    $vSwitchRep += $vSwitchObj
    }
    }
    $vSwitchRep

    You're right, it was an error for the vmnic.

    Try this way

    $vSwitchRep = @()
    $vmhosts = Get-VMHost | Sort Nameforeach($vmhost in $vmhosts)
    {
        foreach($vswitch in (Get-VirtualSwitch -VMHost $vmhost))
        {
            $vSwitchObj = "" | Select HostName, vSwitch, vmnic, TotalPorts, PortsAvailable, MTU        $vSwitchObj.HostName = $vmhost.Name
            $vSwitchObj.vSwitch = $vswitch.Name
            $vSwitchObj.vmnic = [string]::Join(',',$vswitch.nic)
            $vSwitchObj.TotalPorts = $vswitch.NumPorts
            $vSwitchObj.PortsAvailable = $vswitch.NumPortsAvailable
            $vSwitchObj.MTU = $vswitch.Mtu
            $vSwitchRep += $vSwitchObj    }
    }
    $vSwitchRep
    
  • Please help with Wndows Genuine Advantage report

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0
    Code of Validation caching online: 0x0
    Windows product key: *-* - CM74G - RPHKF-PW487
    Windows product key hash: 71BRYMECVaSXedfumfu8zryHJVY =
    Windows product ID: 00371-177-0000061-85726
    Windows product ID type: 5
    Windows license type: retail
    The Windows OS version: 6.1.7601.2.00010100.1.0.048
    ID: {CEBFFC47-9161-4E26-9CFD-71FEB1AA8A8E} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Professional
    Architecture: 0x00000000
    Build lab: 7601.win7sp1_gdr.130828 - 1532
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files\Google\Chrome\Application\chrome.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {CEBFFC47-9161-4E26-9CFD-71FEB1AA8A8E}1.9.0027.06.1.7601.2.00010100.1.0.048x 32*-*-*-*-PW48700371-177-0000061-857265S-1-5-21-779425816-1168244839-3687251070FUJITSULIFEBOOK AH530FUJITSU / / Phoenix Technologies Ltd. Version 1.16 20100819000000.000000 + 000E5A93D07018400FC08090409GMT Standard Time(GMT+00:00)03FCS PC 109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 Professional edition
    Description: operating system Windows - Windows (r) 7, retail channel
    Activation ID: e838d943-63ed-4a0b-9fb1-47152908acc9
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00371-00170-177-000006-00-1033-7600.0000-0832014
    Installation ID: 006535289236250330459516236536365834093536590072793686
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: PW487
    License status: initial grace period
    Time remaining: 27360 minute (s) on (19 day (s))
    Remaining Windows rearm count: 4
    Time to trust: 2014/06/04 12:20:39

    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0x00000000
    Beyond: 0 x 0000000000000000
    Event timestamp: 3:26:2014 13:50
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:

    --> HWID data
    Current HWID hash: MAAAAAEAAgABAAEAAAACAAAAAgABAAEAeqhOXyaMmlEw3AqAStty9ATWXreSblxd

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    FUJ APIC PC
    FACP FSC PC
    HPET FUJ PC
    FUJ PC BOOT
    MCFG FUJ PC
    SLIC FSC PC
    SSDT PmRef CpuPm

    Separated from this thread by Moderator:
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/i-am-trying-to-put-my-activation-key-to-activate/4450e033-a9f1-4DB9-ba02-c387b8358853?page=3#LastReply

    You use the default key, you will need to reactivate Windows 7:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • BlackBerry Smartphones need help with sim card switch

    I'm changing the SIM card in my bb... it s the same company & only is done I need to move to a broken iphone 3gs. When I put it in the bb, I can make phone calls & have access to the web but my bbm works at all! I tried to reset, upgrade the operating system, are some of the things that I tried to have this sim card work in this phone. If anyone has any ideas on how to do this switch pls pls help!

    I'm with fido, is a bb unlocked Rogers & has been working wiith my fido org chip since I got it. I'm putting a ship different fido in.

    Thanks in advance!

    Finally I knew an iphone SIM will not work and you should get a new

    You may need to call your carrier to get a BlackBerry data plan added to your service

    You can try this

    On the handset, go to:

    For OS5 and 4.x
    Options - Advanced Search - host Routing Table
    Click on register now and escape from the home page.

    For OS6 and above
    in options, advanced, feature host routing table, click on the menu and select Register now.

    Wait 2 minutes and see if the network registration occurs.

    Return your books to your BIS service provider site:
    Of your handheld: http://www.blackberry.com/btsc/KB15402

    Go to the Personal Email Set Up icon and sign. Then under help!, select Service books and select send service books.

    Your desktop PC: http://www.blackberry.com/btsc/KB02830North American carriers - scroll to select your carrier
    Carriers worldwide - find your operator from the list

    3. with the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart. This restart, even if you have already done this, is often necessary to install the service books.

  • Help with script from beginner to the data store and hard drives

    Hello

    I am quite new to scripting, and recently, I created a monstrosity below.

    The problem is with the results. I have no idea why in the results I get the name of the virtual machine and its data store over and over again until all disks are highlighted.

    Any help will be very very much appreciated.

    The script:

    $raport = @)

    Foreach ($i in (Get-Content "Y:\vms.txt"))

    {

    $rekord = «»

    $vm = get-vm-name '$i '.

    $dysk1 = $vm | Get-hard drive | where {$_.} Name - eq 'Disk 1'}

    $datastore1 = $dysk1.filename.split("]") [0].split("[") [1]

    $disks = $vm | Get-hard drive

    {foreach ($disk in $disks)

    $hd = «»

    $disksize = ($disk. CapacityGB)

    $hd += $disksize

    {$rekord += $vm.name + ";" + $datastore1 + ";" + $hd}

    $raport += $rekord

    }

    $raport | out-file 'Y:\dyski.csv '.

    The results in csv:

    VM1Name; datastoreName; 60; VM1Name:datastoreName; 50; VM1Name; datastoreName; 40

    VM2Name; datastoreName; 45; VM2Name; datastoreName; 40

    The results of dream in csv:

    VM1Name; datastoreName; 60; 50 40

    VM2Name; datastoreName; 45 40

    etc.

    Try like this

    $raport = @)

    Foreach ($i in (Get-Content "Y:\vms.txt"))

    {

    $rekord = «»

    $vm = get-vm-name '$i '.

    $disk = $vm | Get-hard drive

    $datastore = ($disk | where {$_.}) Name - eq "disk 1" hard}).filename.split ("]") [0].split("[") [1].

    $rekord = "$($vm.)". The name); $($datastore); $(($disk | sélectionnez-ExpandProperty CapacityGB)-join ' |') »

    $raport += $rekord

    }

    $raport | out-file 'Y:\dyski.csv '.

  • Help with script to change the network name.

    Hello

    I made a small script to help me rename the label of network on a portgroup and then correct the label of network on all the virtual machines with this label.

    I came across the problem that it could not update on the virtual machines network label because the portgroup did not exist (this must be because it does not wait for the first order at the end?). I fixed that by doing a line with: "Start-Sleep-seconds 10.

    The script works, but I don't like the solution with 10 sec sleep because it could go wrong if the portgroup takes more than 10 seconds to create (unlikly).

    I tried different things, for example "Wait-task" but without success.

    any ideas?

    $esxi = Read-host "enter the IP address of the host."

    $portgroup_old = Read-host "Enter the name of the portgroup you wish to rename.

    $portgroup_new = Read-host "enter the new name of the portgroup.

    Get-VMHost-name $esxi | Get-VirtualPortGroup-name $portgroup_old | Game-VirtualPortGroup-name $portgroup_new

    Start-Sleep - seconds 10

    Get-VMHost-name $esxi | Get - VM | Get-NetworkAdapter | Where {$_.NetworkName - eq $portgroup_old} | Together-NetworkAdapter - NetworkName $portgroup_new - confirm: $false

    Unfortunately, with groups of standard port vSwitch, that's what you're stuck with.

    You could try a loop 'while' like this instead:

    Get-VMHost-name $esxi | Get-VirtualPortGroup-name $portgroup_old | Game-VirtualPortGroup-name $portgroup_new

    While (Get-VMHost-name $esxi |) Get - VM | Get-NetworkAdapter | Where {$_.NetworkName - eq $portgroup_old})

    {Get-VMHost-name $esxi |} Get - VM | Get-NetworkAdapter | Where {$_.NetworkName - eq $portgroup_old} | {Set-NetworkAdapter - NetworkName $portgroup_new - confirm: $false}

  • I need help with script of 'Edit arc' Russell Brown

    Hello

    I installed the script of 'Edit arc' Russell Brown for CS6. It does not play right. I go to the window > Extensions > edit in an ARC and choosing a layer to run the script. I then run the script. the layer converts it to a smart object and opens in the CRA. I treat layer in an ARC and choose 'Open' and then when the layer opens this file is smaller that before I was running the script (i.e. If layer a face of a person on this subject face decreased after treatment of CRA.)

    My Adobe Camera Raw preferences are set to automatically open all the tiffs supported. The file is 300 ppi, 8bits.  My settings of the CRA are 8 bits 300 ppi. I also tried to change the settings of the CRA to 16-bit, 300 dpi. I'm on a mac equipped with the trial version of photoshop CS6. I don't know why the layer shrinks. It seems like ARC treats the file to 240 DPI or something. Can anyone help? Thank you.

    I don't have so I can't test this, but I think that if you change the "Adobe ACR Editor.jsx" script that was installed during the installation of the CS6 Panel, you should be able to match the ppi of the cab to your ppi CS6 documents.

    Modify it, you need to do is to comment out or remove the following lines.

    // change image res to match defalut ACR 240
    if( app.activeDocument.resolution != 240 ) {
        var docRes = app.activeDocument.resolution;
        app.activeDocument.resizeImage(undefined, undefined, 240, ResampleMethod.NONE);
    }
    
  • help with script Math.Random display)

    OK, after help on another thread I managed to get this script


    var r_text = new Array ();
    r_text [0] = "all the leaves are brown;
    r_text [1] = "and the sky is gray."
    r_text [2] = "I was for a walk."
    r_text [3] = "on a winter day.
    r_text [4] = 'I'd be safe and warm. "
    r_text [5] = "If I is in L.A."
    r_text [6] = "California dreaming, such a winter day;
    var i = Math.floor (7 * Math.random ())

    document. Write (r_text [i]);

    who will work on webpages when updated, but I need it to operate when a button is pressed and displayed in a text field in my pdf

    I'm a total noob with javascript only to start learning today so as much help that pos will be great thanks in advance

    Instead of this line:

    document. Write (r_text [i]);

    You need to use something like this:

    this.getField("Field_name").value = r_text [i];

    Or if you use it as the custom text field calculation script:

    Event.Value = r_text [i];

  • Please help with Windows Genuine Advantage report

    Separated from this thread.

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0x8004FE21
    Code of Validation caching online: 0x0
    Windows product key: *-* - QCPVQ - KHRB8-RMV82
    Windows product key hash: + Rj3N34NLM2JqoBO/OzgzTZXgbY =
    Windows product ID: 00359-OEM-8992687-00095
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010300.1.0.003
    ID: {C215E071-D8D0-4E6A-8215-3DAF3B86213C} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Home Premium
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.140303 - 2144
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program may Explorer\iexplore.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\Windows\system32\wat\watadminsvc.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\wat\watux.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppobjs.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppc.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppwinob.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slc.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppuinotify.dll[6.1.7600.16385], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slui.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppcomapi.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcommdlg.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppsvc.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spsys.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spldr.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\systemcpl.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\user32.dll[6.1.7601.17514], Hr = 0x800b0100

    Other data-->
    Office details: {C215E071-D8D0-4E6A-8215-3DAF3B86213C}1.9.0027.06.1.7601.2.00010300.1.0.003x 64*-*-*-*-RMV8200359-OEM-8992687-000952S-1-5-21-3003305136-993972993-3574648170Dell Inc.. Inspiron 560 Dell Inc.. A04     20100702000000.000000 + 00027443607018400F808090409GMT Standard Time(GMT+00:00)03DELL ECS 109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00359-00178-926-800095-02-1033-7600.0000-2892010
    Installation ID: 011645703751797774892686864805547936355522076021023412
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: RMV82
    License status: licensed
    Remaining Windows rearm count: 4
    Time to trust: 11/03/2014-15:49:35

    Windows Activation Technologies-->
    HrOffline: 0x8004FE21
    HrOnline: n/a
    Beyond: 0x000000000001EFF0
    Event timestamp: 10:28:2014 09:30
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    Altered the file: %systemroot%\system32\sppobjs.dll
    Altered the file: %systemroot%\system32\sppc.dll|sppc.dll.mui
    Altered the file: %systemroot%\system32\sppcext.dll|sppcext.dll.mui
    Altered the file: %systemroot%\system32\sppwinob.dll
    Altered the file: %systemroot%\system32\slc.dll|slc.dll.mui
    Altered the file: %systemroot%\system32\slcext.dll|slcext.dll.mui
    Altered the file: %systemroot%\system32\sppuinotify.dll|sppuinotify.dll.mui
    Tampered files: Check %systemroot%\system32\slui.exe|slui.exe.mui|COM
    Altered the file: %systemroot%\system32\sppcomapi.dll|sppcomapi.dll.mui
    Altered the file: %systemroot%\system32\sppcommdlg.dll|sppcommdlg.dll.mui
    Altered the file: %systemroot%\system32\sppsvc.exe|sppsvc.exe.mui
    Altered the file: %systemroot%\system32\drivers\spsys.sys

    --> HWID data
    Current HWID of Hash: MgAAAAIAAQABAAIAAAABAAAAAwABAAEAonasvgFn9tqCwI5ZWCB0c0K3ODpB7fOPRso =

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC1823 APIC 070210
    FACP 070210 FACP1823
    HPET 070210 OEMHPET
    MCFG 070210 OEMMCFG
    ECS DELL SLIC
    LASRYVITRAGE OEMB1823 070210
    GSCI 070210 GMCHSCI
    SSDT DpgPmm CpuPm

    A common cause of these mismatches is a defective Intel Rapid Storage Tech driver

    Download and install the latest version of...

    https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=22194

    Please, run again in normal mode and copy Microsoft Genuine Advantage diagnostic tool and paste the results into a response for further analysis:
    http://go.Microsoft.com/fwlink/?LinkId=52012

  • Help with script UCCX

    Hello again everyone. I'm working on a project that is due today and I'm stuck. My script when it is called desire invites pin code when entered pin is correct, it will be propmt to press 1 for bad weather, etc., to read a message on our call center Quebec and everything works fine. My question is if bad weather is triggered not only play this message iin the than what he does but also place telephone calls to numbers outside and play the greeting of bad weather for them that say to inform our customers that, due to the bad weather, shippments might be delayed. This part does not work. He calls the first number but ends the call immediately. I have attached my op it that will help you. Thank you in advance.

    Quick to play the part of output market successful stage of appeal Place... Change - triggering Contact - the contact that you created in the step to call Place...

  • Help with script overset text?

    Hi, I found this script I think it is by Laubender. Which I use for a while now and I love it. It is easier to see where the blocks of text with overset text.  My Question is.  How would change this to get rid of the fill color of Magenta (perhaps with the original color of text box before the Script ran?) after the overset text is corrected

      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;   
      app.doScript  
        (  
        detectOverflowingTextFrames,  
        ScriptLanguage.JAVASCRIPT,  
        [],  
        UndoModes.ENTIRE_SCRIPT,  
        "Detect Overflowing TextFrames | SCRIPT"   
        );  
        
      function detectOverflowingTextFrames() {    
      var storyArray = app.documents[0].stories.everyItem().getElements();  
      var storyArrayLength = storyArray.length;  
    
     // A loop through all the stories of the document:  
      for(var n=0;n<storyArray.length;n++)  
      {  
        // The condition should be clear.  
        // However, there is one rare case where overflows is false,  
        // but the text frame is showing a red + sign:  
        // If a footnote text overflows in the last frame of a threaded story.  
         
        if(storyArray[n].overflows)  
        {  
          // TextContainers could be textFrames and textPaths !!  
          var textContainersArray = storyArray[n].textContainers;  
          var lastTextContainer = textContainersArray[textContainersArray.length-1];  
           
          // A function call to the last text frame, if its story overflows:  
          doSomethingWithTextContainers(lastTextContainer);  
         };  
        
      }  
        
      function doSomethingWithTextContainers(/*textFrame or textPath*/textContainer)  
      {  
        if(textContainer.constructor.name == "TextFrame") // Could be text on path as well  
        {  
          // Here your code that is changing the size of your frame  
          // In my example code here it will only fill the frame with color Magenta:  
          textContainer.fillColor = "Magenta";  
          // If you want to move the text frame, consider to unlock it first, if it is locked.  
        }  
        if(textContainer.constructor.name == "TextPath")  
        {  
          // Here your code, if text on a path should overflow.  
          // Depending on the pageItem that holds the path, the parent should be the pageItem you are interested in.  
          // Usually a graphicLine or a polygon. Could also be an oval, a rectangle or even a textFrame.  
           textContainer.parent.fillColor = "Magenta";  
           textContainer.parent.strokeColor = "Magenta";  
        }  
       
      }  
        
    };  
    

    Thank you

    Alain bombaert

    As long as you do not create a new text container to correct excessive; the following script should work for you.

    //Scripted by ?Laubender?
    //modified by Skemicle
    if (parseFloat(app.version) < 6)
    main();
    else
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Splice Image Along Path");
    function main() {
        var doc = app.activeDocument;
        var stories = doc.stories;
        for(s=0;s		   
  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • Need help with script to remove audit ASM files

    Hello

    It would be great if someone can provide me with a script to delete the files of audit and trace on ASM files

    Thank you

    Aerts.

    Ed,

    I have a shell script which is run via cron once a week.  Of course, you need to change the location of the trace and audit files.  This script will remove all files .trc and .trm more than 10 days

    #! / bin/bash

    find/u01/app/oracle/diag/rdbms /... dbname... / path-name ' * .trc ' - mtime + 10 - type f-exec rm '{} ';

    find/u01/app/oracle/diag/rdbms /... dbname... / path-name ' * .trm ' - mtime + 10 - type f-exec rm '{} ';

  • Need help with script to find the virtual computer by IP

    Looking for a script that will correspond to the vm to IP, but should be able to find several IPS at the same time.

    I put this together from scripts on the net, which works well to search for a single IP address at a time:

    $match_address = Read-Host "enter the IP address to find."

    Get - VM | %{

    $vmips = $_. Guest.IPAddress

    {foreach ($ip in $vmips)

    If ($ip - as $match_address) {}

    "VM found correspondence address: {0}" f $_. Name

    }

    }

    }

    But would need to be able to enter several IP addresses of different subnets in the $match_address and search script for a match for every ip address.

    Could you please try this?

    function search-VMAssociatedToIP {}

    (param

    $ArrayOfIPToCheck

    )

    {in process

    $VMsAndAssociatedIP = get-view - viewtype 'virtualmachine ' | {foreach-object

    $VM = $_

    $_.guest.net | {foreach-object

    $Net = $_

    $_. IpAddress | {foreach-object

    $IpAddress = $_

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "VM" = $VM. Name

    "NetworkName" = $Net.Network

    "IP address" = $IpAddress

    })

    Return $Output

    }

    }

    }

    $ArrayOfIPToCheck | {foreach-object

    $IPtoCheck = $_

    $VMsAndAssociatedIP | where {$_.} IpAddress - eq $IPtoCheck} | {foreach-object

    $Output = New-Object-Type PSObject-Prop ([ordered] @ {}

    "IpToCheck" = $IPtoCheck

    'VM' = $_. VM

    "NetworkName" = $_.NetworkName

    'IpAddress' = $_. IpAddress

    })

    Return $Output

    }

    }

    }

    }

    $MyArray = "10.0.33.1","10.0.30.11","10.0.20.11","10.0.32.1".

    Search for VMAssociatedToIP - ArrayOfIPToCheck $MyArray | OGV

    Use a table entry.

    First get the IP addresses of all computers installed correctly (only for virtual machines with VMware tools) virtual based on get - view so the collection will be fast.

    Then compare with the PPE provided as input.

  • Help with script

    Hello

    I'm just trying to create a script that automatically:

    > Check the selected layer is a target (or node 2) camera

    If Yes, then

    > How to create a 3d Null object [name = same camera selected more "_Target"]

    > Links the position of Point of interest of the camera selected to the position of the new Null object

    If someone could help me to restore it I would be very grateful.

    Thank you

    Spencer

    Whether a camera is a node or two nodes is not completely clear because there is no corresponding layer attribute.

    But because you want to put a phrase in the poi property, you must use canSetExpression and solves this kind of car.

    If you have never written before, here is a code example to inspire:

    function campoi(){
        var comp = app.project.activeItem;
    
        if (!(comp instanceof CompItem)) return;
    
        var layers = comp.selectedLayers;
        var n, N=layers.length;
        var null3D;
        var num2NodesCams = 0;
    
        for (n=0; n
    

    Xavier

Maybe you are looking for

  • e.tre456_worm_osx

    I received a message that I have received the following Trojan Virus: e.tre456_worm_osx on my computer and click OK to start the repair process. Is this a scam to download the real virus/malware? Or do I really have a virus? Thank you Christian

  • How to install a character on a complete theme?

    I have set up a complete theme that includes customer back/forward/home etc. icons. How can I install a character under that so I keep custom icons, but they have the character that I choose? IE: Have the toolbars, the color, the character makes them

  • How to view chat logs

    Hi im using Skype on my new laptop computer. (used the front office) and im trying to see my history of conversation over 30 days, how can I do this on my new laptop in advance thanks

  • Satellite A40 - 221 - drivers need

    Hello I am an old toshiba satellite A40-221 and the cause of a problem, I need to format so if someone knows where I can get drivers please answer fast. I've looked everywhere and I can't find them. (I lost the recovery CD) :(

  • HP dv1000: missing disk

    missing two drivers pci modem and video controllers and not update windows can someone HELP Please