Need help with vSphere data script, packaging and sending it to the data warehouse

Greetings PowerCLI gurus.


Everyone can offer suggestions on a script which can query vSphere and pull on the following fields of the virtual computer:

NameStateStatusHostSpace in useSpace used

Format in a file in the CSV format and send the file to an FTP server?

Much respect to all, thanks a lot in advance.

Hello-

Happy to help you.

OK, well, if this database is accessible through a UNC path, you might make a copy directly using Copy-Item.  If you use different credentials, you can encrypt and store in an XML file.  HAL Rottenberg wrote to do http://halr9000.com/article/531.

Or, if this pension data is something that supports the secure copy (scp) or secure FTP (SFTP), those who would be good options.  Again, you can store the alternative credentials in an encrypted in an XML file format and use them as needed.

Certainly, there is a balance to be struck between security and ease of use.  It may be such that the transmitted data are not considered sensitive to all, and clear data transfers are acceptable.  Probably still a good idea to take measures to protect the credentials at least.

Tags: VMware

Similar Questions

  • Need help with Sprite´s. (Rectangles and circle)

    Hello!

    I kinda need help with a project. I m supposed to do a script that responds to a click and moves the circle of one rectangle to another.

    (Here's a picture)

    howtosprite.JPG

    So, what I want is: when I click on the blue rectangle to the right, the circle must move instantly in the rectangle on the right. And same thing on the opposite path.

    Thanks in advance!

    -Best regards,.

    Aleksandar "Dyxir" B.

    import flash.events.MouseEvent;

    leftRec.addEventListener (MouseEvent.CLICK, fCircle);
    rightRec.addEventListener (MouseEvent.CLICK, fCircle);

    function fCircle(evt:MouseEvent)
    {
    Circle.x = evt.currentTarget.x;
    Circle.y = evt.currentTarget.y;
    }

    Note: Point for all alignment: Center

  • Need help with understanding PowerCli scripting by LucD

    Hello

    I'll give you the standard statement that I am a noob powercli and don't really know what I'm doing here.  Here's a script that works because it runs without error and gives a report but I need help to understand this under his weight.

    Connect-VIServer '< our vcenter >' - user < user > admin-password < admin-user-pwd >

    $allvms = @)

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    $stats = get-Stat-entity $vms - start $start - Stat $metrics

    $stats | Group-object - property {$_.} Timestamp.Day}, {$_.} @entity.name} | %{

    $vmstat = "" | Select the day, MemAlloc, MemMin, MemMax, MemAvg, VmName

    $vmstat. VmName = $_. Values [1]

    $vmstat. Day = $_. Group [0]. Timestamp.Date

    $mem = $_. Group | where {$_.} MetricId - eq "mem.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    $vmstat. MemMax = [int] $mem. Maximum ##dfsdf

    $vmstat. MemAvg = [int] $mem. Average

    $vmstat. MemMin = [int] $mem. Minimum

    $vmstat. MemAlloc = $_. Group [0]. Entity.MemoryMB

    $allvms += $vmstat

    }

    $allvms |

    Export-Csv "c:\ < folder > \ <>.csv file Destination"-noTypeInformation

    It connects to our server vcenter server and offers two days of data.  Today and yesterday, all with a timestamp of 0:00.  See below for an example of a virtual machine.

    VmNameDayMemAllocMemMaxMemAvgMemMin
    < name VM1 >07/05/2016 0:004096181818
    < name VM1 >06/05/2016 0:0040963612

    8

    The MemMax, the MemAvg and the MemMin are for this day?  Just the max of this period of sampling time 0:00?

    What I'm looking for, it is to find that the use of the maximum memory of virtual machines are for the whole day.  So I hope that I can remove memory of VMs that do not use it.  I was listed on the change $start = (Get-Date). The value of AddDays(-1) to $start = (Get-Date). AddDays(-30) and see what things alike.  I want to be sure however that the value for MemMax is the highest value for a period of 24 hours.  That is to say for the 07/05/2016 the given virtual machine never used a maximum of 18% of his memory attributed the 06/05/2016 the maximum amount of memory used was 36%, and so on that I extend on the date range.

    Kind regards

    Michael

    It then becomes a rather simple Get-Stat script.

    $vms = get - Vm | where {$_.} PowerState - eq "Receptor"}

    $start = (get-Date). AddDays(-1)

    $metrics = "mem.usage.average".

    Get-Stat - entity $vms - start $start - Stat $metrics |

    Select Timestamp,@{N='VM'; E={$_. @entity.name}}, Value |

    Tri-objet-VM property |

    Export-Csv "c:\------.csv '-noTypeInformation

  • Need help with my Toshiba remote control and receiver for Qosmio G30 161

    Hi all

    I have a Toshiba Qosmio G30-161 and with her, I have a Toshiba remote and a Toshiba remote control receiver, this is the first time that I used it (tried of that is), my problem is that the remote control does not work on the computer, when I press keys on the computer program does nothing.

    I installed four new AA batteries and the remote works fine its send signals to the receiver, the receiver of the remote control as a red light detection is displayed whenever you press a button and with regard to the computer, I checked the drivers and the USB is off the hook as a remote E-reception receiver which I checked with Toshiba and which is correct , so overall the remote control works, the receiver is picking up signals and the pc has detected the receiver but nothing works, I have installed remote control manager but was still nothing done to. I talked about support and assistance of Toshiba, and the end result is that they are not sure what is the problem. Can anyone help I need the remote control for the slide shows for clients like ja? m a photographer.

    Also to confirm that I'm under addition of Windows XP MCE.

    Anthony Worlock

    Hello

    This remote will work, if you use it without any special drivers and special software, only in the Media Center.

    But if you install stuff like [WinLirc | winlirc.sourceforge .net] then you should be able to get some functions for your presentation.

    Please try this tool and check if it works.

    By the way: if I were you I would first read the manual and the WinLirc FAQ before you start because it s a little bit tricky to manage the program. :) (Too many parameters: D)

    Welcome them

  • Need help with parallax effect - Adobe MUSE and Safari

    Hey there,

    I need help.

    I did a parallax effect on my www.bloxmix.depage.

    Firefox, Opera and Chrome are working very well.

    Safari works worst.

    Try and see.

    Can someone help to solve my problem?

    Thank you community

    Hi Karl,

    Given that the site works fine at my end, I guess the problem is with your local browser. Could you please try it on another computer and see if it works fine here or not?

    - Abhishek Maurya

  • Need help with coversion date

    Hello

    I have a date format that is varchar2 and value is as on 2009-03 - 31.i need to convert to date and it must be as on 31 March 09

    I get as error 0RA-01981... Please help me in this
    SQL> select to_date('2009-03-31','yyyy-mm-dd') xc from dual ;
    
    XC
    ------------------------------
    31-MAR-09
    

    For your http://ora-01981.ora-code.com/ error

    SS

  • Need help with Windows Live Movie Maker and DVD Maker

    I have worked with Windows Live Movie Maker to cut a continuous piece of video footage into separate clips (these are dance performances by dancers of different about 13)... then once they were divided into 13 clips separated, I then cut them at the beginning and at the end of each clip (performance) and then used legends at the beginning of each clip with name of the dancer.  I also added a title at the beginning of the film page, and I added at the end of the credits.  Then I clicked on save the movie and had to wait an hour or more... Finally, when this was done, I opened Windows DVD Maker and clicked on add items... went to my file and put my film recorded in the creation of DVD.  I used also changed the Menu template to that for shows (it is red and black and has lights and cameras as a staging.  I thought everything was going along fine until I played the disc engraved on my Smart TV DVD player.  For some reason when I click on the stages (or chapters) to see the performance under this button, it starts to play the dvd in a few seconds or a few minutes in some cases in the performance... I've lost countless blank DVDs not to mention hours and hours of time... and I'm so frustrated... I'm ready to SCREEEAAMMM!  Also some of the performances were not even under one of the buttons or frames... in other words you could not use the arrow keys to locate some of them to click it and find out.  Yet, when I went back and pressed the 'Play' button, I could fast forward through the entire movie and find performances that seem to be missing the scenes/buttons.  Any help or advice before I blow a bridge! ???

    Thank you.

    /PR

    I have worked with Windows Live Movie Maker to cut a continuous piece of video footage into separate clips (these are dance performances by dancers of different about 13)... then once they were divided into 13 clips separated, I then cut them at the beginning and at the end of each clip (performance) and then used legends at the beginning of each clip with name of the dancer.  I also added a title at the beginning of the film page, and I added at the end of the credits.  Then I clicked on save the movie and had to wait an hour or more... Finally, when this was done, I opened Windows DVD Maker and clicked on add items... went to my file and put my film recorded in the creation of DVD.  I used also changed the Menu template to that for shows (it is red and black and has lights and cameras as a staging.  I thought everything was going along fine until I played the disc engraved on my Smart TV DVD player.  For some reason when I click on the stages (or chapters) to see the performance under this button, it starts to play the dvd in a few seconds or a few minutes in some cases in the performance... I've lost countless blank DVDs not to mention hours and hours of time... and I'm so frustrated... I'm ready to SCREEEAAMMM!  Also some of the performances were not even under one of the buttons or frames... in other words you could not use the arrow keys to locate some of them to click it and find out.  Yet, when I went back and pressed the 'Play' button, I could fast forward through the entire movie and find performances that seem to be missing the scenes/buttons.  Any help or advice before I blow a bridge! ???

    Thank you.

    /PR

    ===============================================
    First of all a question... did you you save the project in a video such as format
    . WMV or. MP4? Or have you just of WLMP project folder?

    I suspect that DVD Maker is to see your movie in one file
    and he has no idea where are your scenes. More than likely it is
    creation of scenes on his own in arbitrary places.

    In order for DVD Maker correctly, identify individual scenes
    each stage must be registered as an individual video clip, then
    the collection of video clips can be imported and each of them must
    become an individual scene.  DVD Maker is supposed to accept
    up to 18 scenes.

    Just an experience you can import your new original
    video clips in DVD Maker and see if it works properly. If
    It does what you want... change and re-record your clips one video
    both will be the fix.

    Good luck...

  • Need help with substring data

    Having problems reading CLOB data > 32000 and thought that maybe I can load the data into 3 separate columns less than 32000 k each.

    I tried to substring of a part of it first to see if it worked.

    DDL

    CREATE TABLE 'E406702 '. "" DSR3 ".

    (

    "RECORDNO' CHAR (8 BYTES),

    'DOCUMENTUNIVERSALID' CHAR (32 BYTES),

    "CREATIONDATE" TANK (30 BYTES),

    VARCHAR2 (250 BYTE) "ETL_STATUS."

    VARCHAR2 (4000 BYTE) "DSRDESCRIPTION."

    VARCHAR2 (4000 BYTE) "FORM."

    'REQUESTID' VARCHAR2 (4000 BYTE)

    )

    CONTROL FILE

    DOWNLOAD THE DATA

    INFILE 'DSR2DATA.txt' ' str "\r '"

    ADD

    IN THE DSR3 TABLE

    FIELDS TERMINATED BY ' <: s: >.

    (RecordNo CHAR (8),

    DocumentUniversalID TANK (32),

    CreationDate CHAR (30),

    CHAR ETL_STATUS (250).

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32)."

    SHAPE TANK (4000).

    RequestId TANK (4000))

    Doing this, that I was able to load half of my files.

    Check the newspaper and saw


    SQL * Loader: release 11.2.0.1.0 - Production on sea Feb 19 09:40:40 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Control file: c:\mytest7\DSR3CONTROL.txt
    Data file: DSR2DATA.txt
    Chain of the treatment of the files option: ' str "\r '"
    Bad leadership: c:\mytest7\DSR3CONTROL.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table DSR3, loaded from every logical record.
    Insert the option in effect for this table: APPEND

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    RECORDNO FIRST 8 CHARACTERS
    String endpoint of: "<: s: > '"
    DOCUMENTUNIVERSALID THEN 32 CHARACTERS
    String endpoint of: "<: s: > '"
    CREATIONDATE THEN 30 CHARACTERS
    String endpoint of: "<: s: > '"
    ETL_STATUS THEN 250 CHARACTERS
    String endpoint of: "<: s: > '"
    DSRDESCRIPTION CHARACTER THEN 32700
    String endpoint of: "<: s: > '"
    The SQL string for the column: 'substr(:DSRDescription,1,32) '.
    TRAIN THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"
    REQUESTID THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"

    value used for the parameter LINES increased from 64 to 6
    Record 79: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 82: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 94: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Recording 160: Rejected - error on the DSR3 table.

    What is the problem that.   My goal was to make it work and then try to perform the following operations:

    Change the ddl to

    'DSRDESCRIPTION' CLOB,

    'DSRDESCRIPTION1' CLOB,

    'DSRDESCRIPTION2' CLOB,

    Change the control for this file.

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32700)."

    DSRDescription2 TANK (32700) "substr(:DSRDescription,32701,65401)."

    DSRDescription3 TANK (15000) "substr(:DSRDescription,65402,80000)."

    Is - this bad way to go on this subject?

    If you can load data without any problem and read-only is a problem then you can use SUBSTR and concate (|) to read the entire string. Something like this:

    Select substr (DSRDescription, 1, 32000) | substr (DSRDescription, 32001, 64000) | dsr3 substr(DSRDescription,64001);

    or

    with the data as

    (

    Select substr (DSRDescription, 1, 32000) in the DSRDescription of dsr3

    Union of all the

    Select substr (DSRDescription, 32001, 64000) in the DSRDescription1 of dsr3

    Union of all the

    Select substr(DSRDescription,64001) in the DSRDescription2 of dsr3

    )

    Select * from data;

    Onkar

  • Need help with box counting Script

    He had to count the number of boxes checked. I use the script below and its does not work. What I am, I am doing wrong? It drives me crazy.

    /*

    document level function to calculate the sum of the fields named

    Function Sum (aFieldNames) {}

    var sum = 0; sum of values

    Browse fields

    for (var i = 0; i < aFieldNames.length; i ++) {}

    If (!) IsNaN (this.getField(aFieldNames[i]).value))

    sum += Number (this.getField(aFieldNames[i]).value).

    }

    to return the sum;

    } / / end of the sum function

    */

    Bay of somme of domain names

    var aCheckBox = new Array ("check Box5', 'Check Box8', 'Vérifier Box11', 'Check Box16', 'Check Box19', 'Check Box22', 'Check Box25', 'Check Box28', 'Check Box31', 'Check Box34', 'Check Box37', 'Check Box40', 'Check Box43', 'Check Box46', 'Check Box49', 'Check Box52', 'Check Box55', 'Check Box58', 'Check Box61', 'Check Box64', 'Check Box68'");

    sum, named fields

    Event.Value = Sum (aCheckBox);

    Then why you check if they are several using the isNaN function and then try to add this number to the sum variable? Looks like you just copy the code, even if it does not apply to your situation.

    Replace these two lines of code with this:

    If (this.getField(aFieldNames[i]).value! = "Off") sum ++;

  • need help with xml data

    Hi all

    need your spiritual help once more!
    I have a table 'product' as below:

    create table product)
    product_id number (2),
    product_info varchar (4000));

    Select * from product:
    product_id product_info
    1 < ticketing > < product = 'TV' > < productservice = "shipping" > < / productservice > < / product = 'TV' > < / ticket >

    I need to get the column product_info information in a new table with 2 columns product and productservice product_details. as in: -.
    Select * from product_details:
    product_id product productservice
    1 expedition TV

    any suggestions on how to do it.
    PS-> for a product it can be several services and there may be several products for a ticket.

    Your XML file is not well formed at all (so many errors in there).

    However, if you had a valid XML code, you could do something like that...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as product_id, '' as product_info from dual union all
      2             select 2, '' from dual)
      3  --
      4  -- end of test data
      5  --
      6  select t.product_id, x.*
      7  from t
      8      ,xmltable('/ticketing/product'
      9                passing xmltype(t.product_info)
     10                columns product varchar2(10) path '/product/@name'
     11                       ,service varchar2(15) path '/product/productservice/@name'
     12*              ) x
    SQL> /
    
    PRODUCT_ID PRODUCT    SERVICE
    ---------- ---------- ---------------
             1 TV         shipping
             2 VCR        delivered
    
  • Need help with files combining script

    Hey guys, I'm a graphic designer who is really hoping most commonly the code can someone help! I have several hundred images that need to be combined. A client gave me a folder of images and their alpha cards as separate files. I need combine each image and alpha map and export the new image format PNG 24 with transparency. Doing so by hand will take forever, do this with a script is going to be awesome. The script must:

    -Open Filename.png

    -Create a duplicate of the background layer (as background layers may not have masks it seems)

    -Remove the background layer

    -Add a layer mask to the new double layer

    -Open filenamea.png (the alpha cards follow convention assignment of names + a .png file name)

    -Copy filenamea.png into the layer mask to filename.png

    -Save the filename.png for Web and devices such as a PNG 24 with transparency in a folder called converted (to avoid overwriting the old image)

    I'm sure it's more complicated, it seems, but is - someone up to help a poor, illiterate code GD?

    Here's a JavaScript solution only, for the curious. Save it as MergeAlpha.jsx and run it from Photoshop.

    X

    function cTID(s) { return app.charIDToTypeID(s); };
    function sTID(s) { return app.stringIDToTypeID(s); };
    
    function main() {
    
      var folder = Folder.selectDialog();
      if (!folder) {
        return;
      }
    
      var ofolder = new Folder(folder + "/Converted");
      ofolder.create();
    
      var saveOpts = new ExportOptionsSaveForWeb();
      saveOpts.format = SaveDocumentType.PNG;
      saveOpts.PNG8 = false;
      saveOpts.transparency = true;
    
      var pngs = folder.getFiles('*.png');
    
      for (var i = 0; i < pngs.length; i++) {
        var file = pngs[i];
        var afile = new File(folder + '/' + file.name.replace('.png', 'a.png'));
        if (!afile.exists) {
          continue;
        }
    
        var doc = app.open(file);
        doc.activeLayer.isBackgroundLayer = false;
        var adoc = app.open(afile);
        adoc.selection.selectAll();
        adoc.selection.copy();
        adoc.close(SaveOptions.DONOTSAVECHANGES);
    
        createLayerMask();
        selectMaskChannel();
        doc.paste();
    
        var ofile = new File(ofolder + '/' + file.name);
        ofile.remove();
        doc.exportDocument(ofile, ExportType.SAVEFORWEB, saveOpts);
        doc.close(SaveOptions.DONOTSAVECHANGES);
      }
    };
    function createLayerMask() {
        var desc9 = new ActionDescriptor();
        desc9.putClass( cTID('Nw  '), cTID('Chnl') );
            var ref6 = new ActionReference();
            ref6.putEnumerated( cTID('Chnl'), cTID('Chnl'), cTID('Msk ') );
        desc9.putReference( cTID('At  '), ref6 );
        desc9.putEnumerated( cTID('Usng'), cTID('UsrM'), cTID('RvlA') );
        executeAction( cTID('Mk  '), desc9, DialogModes.NO );
    };
    function selectMaskChannel() {
        var desc26 = new ActionDescriptor();
            var ref18 = new ActionReference();
            ref18.putEnumerated( cTID('Chnl'), cTID('Chnl'), cTID('Msk ') );
            ref18.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));
        desc26.putReference( cTID('null'), ref18 );
        desc26.putBoolean( cTID('MkVs'), true );
        executeAction( cTID('slct'), desc26, DialogModes.NO );
    };
    
    main();
    
  • Need help with changing PowerCLI script to get the interface driver NETWORK &amp; firmware version?

    Hi all

    mattboren created the script below for a list of BIOS hardware version and firmware version:

    ## Script function: quickly get BIOS date, Smart Array FW version, and iLO FW version for HP hosts in a given location (folder, cluster, datacenter, etc.)
    ## Author: vNugglets.com -- Sep 2011
    
    ## folder in which hosts in which we are interested reside
    #$strHostsFolderName = "myFolder"
    #Get-View -ViewType HostSystem -Property Name, Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo -SearchRoot (Get-View -ViewType Folder -Property Name -Filter @{"Name" = "^$([RegEx]::escape($strHostsFolderName))$"}).MoRef | %{
    ## cluster in which hosts in which we are interested reside
    
    $strHostsClusterName = "Production"
    Get-View -ViewType HostSystem -Property Name, Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo -SearchRoot (Get-View -ViewType ClusterComputeResource -Property Name -Filter @{"Name" = "^$([RegEx]::escape($strHostsClusterName))$"}).MoRef | %{
        $arrNumericSensorInfo = @($_.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo)
        # HostNumericSensorInfo for BIOS, iLO, array controller
        $nsiBIOS = $arrNumericSensorInfo | ? {$_.Name -like "*System BIOS*"}
        $nsiArrayCtrlr = $arrNumericSensorInfo | ? {$_.Name -like "HP Smart Array Controller*"}
        $nsiILO = $arrNumericSensorInfo | ? {$_.Name -like "Hewlett-Packard BMC Firmware*"}
        $nsiNXdev = $arrNumericSensorInfo | ? {$_.Name -like "nx_nic device*"}
        $nsiNXdrv = $arrNumericSensorInfo | ? {$_.Name -like "nx_nic driver*"}
    
      if ( $nsiNXdev.Count -gt 0 ) {
           $nsiNXdevice = $nsiNXdev[0].Name
      } else {
           $nsiNXdevice = "n/a"
      }
      if ( $nsiNXdrv.Count -gt 0 ) {
           $nsiNXdriver = $nsiNXdrv[0].Name
      } else {
           $nsiNXdriver = "n/a"
      }
    
        New-Object PSObject -Property @{
            VMHost = $_.Name
            "SystemBIOS" = $nsiBIOS.name
            "HPSmartArray" = $nsiArrayCtrlr.Name
            "iLOFirmware" = $nsiILO.Name
            "nx_nic device" = $nsiNXdevice
            "nx_nic driver" = $nsiNXdriver
        } ## end new-object
    } | Export-Csv C:\temp\Production-BLadeG7.csv  ## end Foreach-Object
    
    
    
    
    

    However, I would like to change the driver for the CARD and the version of the firmware but still appear.

    Any kind of help and suggestions would be greatly appreciated.

    Thank you.

    Try like this

    $strHostsClusterName = 'production '.

    Get-view ViewType - HostSystem-Property Name, Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo - SearchRoot (Get-View - Name ClusterComputeResource-property - ViewType filter @{'Name' = ' ^ $([RegEx]: escape ($strHostsClusterName)) $"" "}). MoRef | %{

    $arrNumericSensorInfo = @($_.) Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo)

    # HostNumericSensorInfo for controller table of BIOS, ILO,

    $nsiBIOS = $arrNumericSensorInfo |? {$_. {Name: like "* system BIOS *"}

    $nsiArrayCtrlr = $arrNumericSensorInfo |? {$_. {Name - like "HP Smart Array Controller *"}

    $nsiILO = $arrNumericSensorInfo |? {$_. {Name - like "Hewlett-Packard BMC Firmware *"}

    $esxName = $_. Name

    $esxcli = get-EsxCli - VMHost $_. Name

    $esxcli.network.nic.list () | %{

    $esxcli.network.nic.get ($_.) Name) | %{

    $props [ordered] = @ {}

    VMHost = $esxName

    "SystemBIOS" = $nsiBIOS.name

    "HPSmartArray" = $nsiArrayCtrlr.Name

    "iLOFirmware" = $nsiILO.Name

    "nx_nic device" = $_. Name

    'nx_nic pilot' = $_. DriverInfo.Driver

    "nx_nic driver version" = $_. DriverInfo.Version

    "nx_nic firmware version" = $_. DriverInfo.FirmwareVersion

    } # end new object

    New-object PSObject-property $props

    }

    }

    } | Export-Csv C:\temp\Production-BLadeG7.csv # end Foreach-Object

  • Need help with a FormCalc script...

    I have an auto form certain text fields based on a date field. It works fine, but when I open the form, the fields are already filled with a default date when I actually put "Week start" date, he turns into what I want, I don't want the fields to have something in them when the form is opened.  The FormCalc script that I use is the following

    var dateNum = date2num(form1.Checklist.weekStart.formattedValue,"MMMM DD, YYYY")

    $.rawValue = num2date(dateNum,"MM/DD")

    Here is a link to the file itself

    https://DB.TT/UScOAGZr


    We FormCalc, blocking the right controls the drop-down list of the calendar to make sure that they select a Monday.

    I like to put as much of my code that I can in one place, so it is easier to change things. That is why I proposed to do all of the drop-down list calendar.

    So, you could do something like:

    var selectedDate = Date2Num($,"YYYY-MM-DD")
    var dayOfWeek = Num2Date(selectedDate, "E")
    
    if (dayOfWeek <> 2) then
              xfa.host.messageBox("Week Starting must be a Monday")
              $ = null
              xfa.host.setFocus("$")
    endif
    
    Table1.Row1.dayMonday = num2date(selectedDate, "MM/DD")
    Table1.Row1.dayTuesday = num2date(selectedDate + 1, "MM/DD")
    Table1.Row1.dayWednesday = num2date(selectedDate + 2, "MM/DD")
    Table1.Row1.dayThursday = num2date(selectedDate + 3, "MM/DD")
    Table1.Row1.dayFriday = num2date(selectedDate + 4, "MM/DD")
    Table1.Row1.daySaturday = num2date(selectedDate + 5, "MM/DD")
    Table1.Row1.daySunday = num2date(selectedDate + 6, "MM/DD")
    

    (I dissociated from the first table that it was originally the need to use xfa.resolvenodes.)

  • Need help with custom calculation Script

    Hey everybody.  I'm using Acrobat X Pro and stumbling a bit on the syntax of the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3.  However, the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 &"Cell2".  For example: If the user enters "3" in "Cell3" I need the value returned at 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" in "Cell3" I need the value returned for "Cell3" 9% of the sum of "Cell1 and Cell2" and the end result should be the sum of "Cell1 Cell2 + Cell3.  In more detail:

    If "Cell1" = "Cell2" $ 500 = $500 and "Cell3" = '3' then I need the returned value to be $1030,00.

    I hope this makes sense. Here's what I have so far, but alas, it does not work.  Any help would be GREATLY appreciated.

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;

    Get the value of a field, a number transformation

    var v3 = + getField("Cell3"/100).value;

    Calculate and set the value of this field for the result

    Event.Value = v3 + (v1 + v2);

    Thank you

    Solan

    I have posted a reply, but realized that it wasn't what you wanted. There is some confusion about what you want for Cell3. A hand, you say that the user enter a vaule in the area, but them you say you want its calculated value based on what the user has entered and two other field values. It seems to me Cell3 should be the domain that the user enters the percentage, and the calculated field (Cell4) script could be:

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;// get treatment field value, as a number

    Get the percentage

    var v3 = + getField("Cell3").value;

    Calculate and set the value of this field for the result

    Event.Value = (1 + v3 / 100) * (v1 + v2);

  • Need help with my LAN adapter wireless and cable.

    After I installed Windows 7 I have experienced the following problem, connected my Acer Aspire 4736z laptop to the internet.

    After a long period of maintenance of the computer to be idle, eg.in standby or hybernation. the adapter LAN and Wifi Adapater is unable to detect. So I have to restart the computer to make it work. I tried updating the driver but it says that the system already has the latest software. but this happens every time the the computer to sleep and wakes up.

    the drivers for the hardware istalled are Atheros AR5B91 Wireless Network adapt and Atheros AR8121/AR8113/AR8114 PCI - E Ethernet Controller and Microsoft Virtual Wifi Miniport Adapter.

    Windows Network Diagnostics

    Problem encountered There might be a problem with the driver for the Wireless N...

    Detected configurecomplete wireless network adapter

    The wireless network adapter problemscompleted

    There might be a problem with the driver for the region...

    Detected configure the cable networkover the wired network adapter card problemscompleted

    Problems found

    <>There might be a problem with the driver for the wireless network connection card Windows could not automatically bind the Protocol IP on the network card stack.

    Detected

    Configure the wireless network adapter Configure the network adapter to communicate with the network. This ensures that the Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6) can be used on the network adapter.

    <>There might be a problem with the driver for the connection to the Local network map Windows could not automatically bind the Protocol IP on the network card stack.

    Completed

    Network Diagnostics log file name: E86CD671-170C-42B3-B6F7-7DB88F9B6343. Repair.Admin.3.etl

    The wireless network adapter problems Windows Help and Support can provide more information about the resolution of driver or hardware problems.

    Completed

    Detected

    Set up the wired network adapter Configure the network adapter to communicate with the network. This ensures that the Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6) can be used on the network adapter.

    Completed

    Network Diagnostics log file name: BFE9A7EC-918C-4453-B383-C45DEB6332D6. Repair.Admin.0.etl

    The wired network adapter problems Windows Help and Support can provide more information about the resolution of driver or hardware problems.

    the problem is solved, but I did not try anything. It seems he healed it self, can be via windows update something. Thank you guys

Maybe you are looking for