String conversion, need help

I have the String I need to convert a RichTextField

Here is my String

"Hello World.

some text here

I'm new here text here

I really need help

"Help me.

I want to get

Hello world

some text here

I'm new here of the text here

I really need help

Help me

no idea how to do it?

Does that help?

http://supportforums.BlackBerry.com/T5/Java-development/simple-HTMLTextField-implementation/m-p/4543...

Tags: BlackBerry Developers

Similar Questions

  • 2.0 to 3.0 conversion NEED help

    I used Flash Professional with AS 2.0 to create flash banners using the .flv video, banners have a layer of button to click to go to a url. That's all that I'm using Flash Professional, so I don't know anything about Actionscript.

    Now works with Flash Professional CC which supports AS 2.0 is no longer.

    On the line of action to the framework that I defined 1 Action in AS 2.0 as follows:

    button_99.onRelease = function() {}

    getURL ("http://www.vrcworld.com/common/redirc.ashx?0, 0,1226", "_blank");

    };

    I get the following errors when you compile the project:

    Scene 1, Layer 'Actions', frame 1, line 1, column 111119: access of property may be undefined onRelease through a reference with static type flash.display:SimpleButton.
    Scene 1, Layer 'Actions', frame 1, line 2, column 21180: call to a method may be undefined getURL.

    Can someone help me with this problem for AS 3.0?

    Thank you very much

    Pieter

    put that on the first picture of you fla file, where your button is actually on scene:

    import flash.events.MouseEvent;

    import flash.net.URLRequest;

    import flash.net.navigateToURL;

    button_99.addEventListener (MouseEvent.CLICK, _getURL);

    function _getURL(e:MouseEvent):void {}

    navigateToURL (new URLRequest ("http://www.vrcworld.com/common/redirc.ashx?0, 0,1226", "_blank"));

    }

  • BSO in ASO formula Conversion - need help

    ASO is not my forte... I'm trying to get a simple formula to work in cube ASO as part of the OSI - & gt; Conversion of the ASO.

    If this is the entity of level 0, the formula is (last shipped (PU) * Volume of the part)... works very well.
    If its higher level, it should simply add up the values of his children. The OSI equivalent that we use generally is @SUM (@CHILDREN (@CURRMBR("Entity"))).
    I tried the same thing in the ASO MDX script as shown below, it is not giving me good result... of ideas why this is not working?

    Thanks in advance.

    Nima

    Formula Member*.

    BOX WHEN ISLEVEL (Entity.CurrentMember, 0) THEN+.
    Last shipped (PU) Volume of the part x+.
    Else+.
    Sum (Children (Entity.CurrentMember))+.
    END+.

    Published by: Nima.V on November 12, 2008 19:12

    Have you tried to specify how you want the NAP?

    for example

    CASE WHEN ISLEVEL (Entity.CurrentMember, 0) THEN
    Last shipped (PU) x Volume of the part
    ON THE OTHER
    Sum (Children (Entity.CurrentMember), [measures]. [Part Volume])
    END

    also I'm not sure if the SUM is correct. This might work as it certainly specified tuples:

    SUM ({Products.CurrentMember.children}, [Measures]. [Part Volume])

    It will be useful,
    Gee

  • Need help to split a string

    Hello

    IM needing help to cut a string like this... A, B, C, ADV, RAHEEM, MOUSTAFA, Gauthier,... compare letters he's be numbers, but I get by using a string... Need to divide and put each number into a vector, in all positions...

    Can someone help me?  ..

    I'm using labview 6...

    Here is the screenshot of my logic...

    Hi faelnpaiva,

    all you need is 'String of spreadsheet in table' with a ',' as the delimiter.

  • Urgent need help with String Manipulation

    Hello;
    I really need help with strings.

    Let's say I have these channels:
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz

    \\ABC\DEF\GHI\xyz\

    \\ABC\DEF\GHI\xyz\xyz\xyz\

    \\ABC\DEF\GHI

    \\ABC\DEF\GHI\

    ABC/DEF/GHI/xyz/xyz/xyz/xyz

    ABC/DEF/GHI/xyz /.

    ABC/DEF/GHI/xyz/xyz/xyz /.

    ABC/DEF/GHI

    ABC/DEF/GHI.

    I need to convert them using a SQL statement for:
    \\ABC\DEF\GHI\xyz\ or //ABC/DEF/GHI/xyz/ according to the original management / or \. Please note that the "xyz" may be repeated zero or more times. I just need one end with a trailing / or -if she had one first.

    I'm on Oracle 11.1.6 SE. I have a bunch of attempts with instr, substr and replace, but I think that regexp_replace could be better.
    Any help would be GREAT! I have a whole team waiting on me.

    Hello.

    Here is a way.

    -----------------------------------------------------------------------
    with sample_table as
    (
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\xyz' str from dual union all
         select '\\ABC\DEF\GHI\xyz\' from dual union all
         select '\\ABC\DEF\GHI\xyz\xyz\xyz\' from dual union all
         select '\\ABC\DEF\GHI' from dual union all
         select '\\ABC\DEF\GHI\' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/xyz' from dual union all
         select '//ABC/DEF/GHI/xyz/' from dual union all
         select '//ABC/DEF/GHI/xyz/xyz/xyz/' from dual union all
         select '//ABC/DEF/GHI' from dual union all
         select '//ABC/DEF/GHI/' from dual
    )
    select str,
         regexp_replace(str,'(xyz([/\])*)+$','\1') new_str
    from  sample_table;
    
    STR                      NEW_STR
    ------------------------------ ------------------------------
    \\ABC\DEF\GHI\xyz\xyz\xyz\xyz  \\ABC\DEF\GHI\xyz
    \\ABC\DEF\GHI\xyz\            \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI\xyz\xyz\xyz\     \\ABC\DEF\GHI\xyz\
    \\ABC\DEF\GHI                 \\ABC\DEF\GHI
    \\ABC\DEF\GHI\                 \\ABC\DEF\GHI\
    //ABC/DEF/GHI/xyz/xyz/xyz/xyz  //ABC/DEF/GHI/xyz
    //ABC/DEF/GHI/xyz/            //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI/xyz/xyz/xyz/     //ABC/DEF/GHI/xyz/
    //ABC/DEF/GHI                 //ABC/DEF/GHI
    //ABC/DEF/GHI/                 //ABC/DEF/GHI/
    

    Kind regards.

  • Number to String Conversion

    So the question is, which is rounded up my numbers?  Or, more generally, what have I done wrong here?

    The main program this sub.vi works for the needs these numbers as strings, and I think I picked the wrong number to string conversion .vi or missed a configuration somewhere, because the program takes perfectly good number like - 0.340316 and rounded to-0 (zero negative? it's zero, negative).

    The zero negativity hand, the number of decimal string .vi is rounded up my whole numbers.

    The function is supposed to be converted in its entirety. Just go to help > show contextual help and read the description. The desired function is called fractional number of string.

  • HP 15-f209wm with Intel Celero: need help with a unusual amenities. Install windows 7 on a new computer windows 10.

    Hello

    I am really puzzled here and need help you guys!

    A friend of mine, who is not computer savy is used to windows 7 and would like to 'return' in Windows 7 to a windows 10.
    She recently bought a new computer:
    Black HP 15.6 "15-f209wm with Intel Celeron N2840 4 GB memory 500 GB (windows 10)

    And had me working on it to install it as a Windows 7.
    The problem that I didn't forsee is that after I installed wiondows 7 Nothing worked because all the installed drivers were too 'new' for the Windows 7 operating system at least that is what I think the problem is.

    The main thing that doesn't work is the USB ports and Wifi,
    and I cannot find drivers to make this 'connection', this 'bridge' of sorts between Windows 7 operating system and the hardware inside the computer.  And I can't find solutions on the net!

    An idea that I'm trying is to copy and paste drivers from another computer Windows 7 HP, on it. But I don't know if that's going to walk.

    I am really confused with this and need your expertise!

    We thank you in advance.

    * Note *.
    This computer has not been upgraded from a previous version of Windows.
    I tried the Driver Booster to see if it would be the auto scan, detect and install fix it but it didn't.
    I got the Lan/Ethernet is finally working.

    Hello:

    This driver installs usb, not the chipset driver controllers... (the last driver that I posted on my first answer).

    Download, unzip and run the setup.exe file.

    https://Downloadcenter.Intel.com/download/25687/us B-3-0-Intel-USB-3-0-Driver-for-Intel-NUC6i-x-SY

    According to the specifications of product for your laptop, the USB driver above must have worked.

    If the usb driver 3 above fails to install the usb controller...

    Please view the the hardware ID for the USB controller requiring driver.

    To find the hardware ID, go the Device Manager and click on the usb controller requiring driver.

    Then click on the Details tab in the upper part of the window of the USB controller.

    Now you will see a drop-down list of property, and it will be set to the Description of the unit.

    On this list and select the 2nd (Hardware ID).

    After the first string of characters you see in the window.

  • Need help on calculation of complex math in labview

    I need help in being pointed in the right direction.  I have an old piece of lab equipment that I have linked to the labview.  In order to send commands to the hardware, I have to calculate a checksum.  The checksum algorithm requires me to take alphanumeric, convert them to binary, perform a binary addition, perform an Xor, hide some numbers and convert the resulting binary string to an ascii character.  LabVIEW has the capabilities to do it on its own, or should I look for to connect to something like an external dll?

    I have Visual Studio 2008 and some previous experience in VB, so I think I could write a program that would make the calculation, but don't really know exactly what kind of project (dll, etc.) is preferable.  Are there specific for the dll parameters so that labview can use it.  I see an example for C++ to Visual Studio 2005, but that's as close as I can get.  I only know VB, c#, or C++

    Can someone tell me please in the right direction?

    Tron

    You essentially have some quarters of logical work and ANDS.

    Check version 2.

    /Y

  • Need help to remove the zeros on the right

    Hello.

    I need help to replace the zeros in the string.

    I have a string which is the output of the network packet. There are a few trailing zeros in the package.

    I don't see them in normal mode, but the size of the string tells me that it's bigger then it looks like.

    When I pass in hexadecimal mode, you can see zeros.

    I tried to use the find/replace function allows you to search for 0 and replace it with an empty string constant. But, for some reason any, that he took no zeros.

    I need to stop the string that follows * 69.

    Show your code.  You won't find and replace with all zeroes.  These 00 in hex mode they are null characters.  (not printable byte with a value of zero).  You need search and replace on that character.  (replace string should look like 00, when it is set to display the hexadecimal code.

  • Need to view daq reads per second but only to record a reading every 10 minutes. I would also like to record the date and time, at the same pace. Need help

    Need to show daq reads per second, but only to record a reading every 10 minutes, need help

    You are also looking to taste to 1 Hz data acquisition?

    My approach would be to use the DAQ acquisition to time your loop display reading each acquisition, then use the loop counter to control the logic of your writing to file.  For 1 Hz and 10 minutes write I would use 'quotient and remainder' I / 600; If rest = 0, then write the data point.

    For the date and time, under Calendar palette use the time get in seconds food a DateTime Format to a string.

  • Support stand not provided my replacement WRT-ngn350 - need help with Cisco contact

    Hello!

    I'm starting to feel like Michael Douglas in the movie Falling Down and need help.

    History:
    Finally, I sent to my bad WRT-ngn350 router and when I got the replacement of all but the plastic leg support has been included. I want to have my router stand up to save desktop space, but now I have no foot.

    "OK, should not be difficult to get Linksys to send me the missing foot stand" was my thought. Now, I called the online RMA and also emailed them and I get a similar response as Michael Douglas took with a smile

    I hear that I can't get the part because it is not on the list the content of the product. As this is * my * problem. I want the part and do not care if it's on a list or not. It is the part on the router in the image. I even asked the representative of Linksys to Google a little bit WRT-ngn350 and there are foot stands on almost all of the images and it is certainly included in the box. I was told that I could go nowhere elsewhere to help with that. I really some doubt but fail to find a channel of Linksys, which may be able to help.

    If some representative of Linksys sees this please help me!

    Thanks, Niklas

    RMA XXXXX - lack of router support/foot

    (Mod Note: under the guidance of the compliance of the directive.) E-mail deleted conversation.)

    SOLVED!

    The representative of Linksys has managed to dig a booth for me to a warehouse. It is mentioned that it is a unique thing because some parts should be sent. Don't forget to remove the stand and send only: router, power and eventually cable NW.

    Thanks to Linksys representative.

  • Need help importing music mp3 file to my windows movie maker

    I've added music files to my films on windows, Director of music from cd that I ripped to my Windows Media Player, never had any problems.

    Today, I bought several songs from Amazon mp3 in order to add to my Windows Movie maker, and they will not import the Windows Movie Maker program.  They play on my Windows Media Player, however, will not import Windows Movie Maker.  The files say they are mp3 files and Windows Movie Maker says he takes these files, however, I get aRED X and the message 'could not be imported'.  Help!  What can I do to get these files to import to my movie on Windows Movie Maker.

    Thank you...

    I put the questions about music and its forum.  I really need help importing MP3 files that I just bought today from Amazon for the sole purpose to add to my movies in Windows Movie maker.

    In the past I have imported music music files that I ripped to CDs.  Now, today, I tried to import music files MP3 to Windows Movie Maker and it will not import files.  I get a message says"could not be imported" and a RED X.  Window Movie Maker, says it accepts MP3 files, but it does not accept these MP3 files.  Help!

    Thank you...

    ======================================
    Movie Maker may have problems of compatibility with MP3
    files... may be worth a try to convert MP3 files
    to WMA before you import into Movie Maker.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory (the file you want to download is: > FFSetup260.zip
    (FWIW... installation..., you might want to
    Uncheck the box 'all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your MP3 clips on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • NEED HELP USING VISTA TO BURN/COPY AN AUDIO CD EXISTING

    NEED HELP USING VISTA TO COPY/BURN A CD EXISTING ON A VIRGIN CD

    To copy a CD of Vista, you need 3rd Party Software:

    This one is very good:

    http://www.SnapFiles.com/get/burningstudiofree.html

    Ashampoo Burning Studio Free is a full CD/DVD/Blu-Ray suite which allows you to create data disks, music, video and audio burning. You can also create backups that span multiple discs, rip music from an Audio CD and create or burn disc in ISO or BIN/CUE format images. The task-oriented interface makes it easy to get started and will spare you most of the technical details. Other features include the conversion of files to WAV, MP3, FLAC, WMA and Ogg audio automatic, disk copy compressed backup file and restore, erasing the disc, VCD/SVCD, burning project and support more. Free registration required after 10 days.

    See you soon.

    Mick Murphy - Microsoft partner

  • Need help to set up AP 1142 standalone

    Hi all

    Need help. I am trying to configure Cisco Aironet 1142 standalone, this access point has been previously connected to WLC and the previous post, I found that we need to delete and reload the AP

    private-multiple-fs, c1140-k9w8 - mx.124 - 21A .JHA

    Now when I try to configure the IP address for the AP, he is in error:

    Ip address of AP1142 #lwapp ap 10.61.1.151 255.255.255.0
    ERROR! Command is disabled.
    AP1142 #.

    Current flash content:

    AP1142 #dir
    Directory of flash: /.

    2 - rwx 10264 March 1, 2002 01:25:57 + 00:00 private-multiple-fs
    3 - rwx 90396 March 1, 2002 01:18:04 + 00:00 event.log
    drwx-5 128 1 March 2002 00:12:24 + 00:00 c1140-rcvk9w8-mx
    8 - rwx 0 March 1, 2002 01:26:06 + 00:00 config.txt
    9 - rwx 337 March 1, 2002 01:18:04 + 00:00 env_vars

    total 32385024 bytes (30019584 bytes free)
    AP1142 #.

    Please let me know whatelse is required for the configured in stand-alone mode access point.

    Thanks in advance

    The image that is on the device's LWAPP, not the autonomous... If you want to use the AP autonoous mode then the image must be W7... It's...

    C1140-k9w7 - mx.124 - 21A .JHA not c1140-k9w8 - mx.124 - 21A .JHA.

    Please feel free to download any image from the below link and perform the conversion of image LWAPP to stand alone...

    http://tools.cisco.com/support/downloads/go/PlatformList.x?sftType=IOS+Software&mdfid=282439881&treeName=Wireless&mdfLevel=Model&url=null&modelName=Cisco+Aironet+1140+Access+Point&isPlatform=N&treeMdfId=278875243&modifmdfid=null&imname=&hybrid=Y&imst=N

    the methos to convert is...

    Download TFTPd32 of google and install it on your PC... point of the image that you downloaded on the TFTP server.

    Connect a cable ethernet between your notebook and AP... both should be on the same subnet... Connect a cable from the console and access the hyperterminal console with the command...

    AP > en

    AP #debug lwapp console cli or debugging console cli capwap

    T AP #config

    AP (confg) int FA 0

    AP(confg-IF) ip addr (same subnet as the laptop)

    End AP(confg-IF)

    Force - reload DOWNLOAD - AP #archieve sw / overwrite tftp: / /.

    This will solve the problem...

    Concerning

    Surendra

  • Need help to export results to csv format script

    Hi guys,.

    Need help, export results to csv can someone help me. Thank you.

    Connect-VIServer test

    $cluster = 'test '.

    $clustername = get-cluster $cluster

    $Clusters = get-View - ViewType ComputeResource |? Name - as $clustername.name

    $Clusters | % {

    $Cluste = $_

    $VMHostsView = $null

    $VMHostsView = get-view $Cluste.Host - name, Hardware Config, property

    $VMss = $clustername | Get - VM

    $HostCount = ($VMHostsView |) Measure - Object). County

    $VMCount = 0 + ($VMss |) Measure - Object). County

    $VMsPerHost = [math]: round (($VMCount/$HostCount), 1).

    $vCPU = 0 + ($VMss: measure-object-sum - NumCPU property). Sum

    $allocatedram = 0 + ($VMss: measure-object-sum - memorygb property). Sum

    $avgrampervm = [math]: round (($allocatedram/$VMCount), 1).

    $pCPUSocket = ($VMHostsView | % {$_.}) Hardware.CPUInfo.NumCpuPackages} | Measure - Object - sum). Sum

    $TpCPUSocket += $pCPUSocket

    $pCPUCore = ($VMHostsView | % {$_.}) Hardware.CPUInfo.NumCpuCores} | Measure - Object - sum). Sum

    $vCPUPerpCPUCore = [math]: round (($vCPU/$pCPUCore), 1).

    $onenode = [math]: tour ((Get-Cluster $cluster |)) Get-VMHost | Select - 1 first | (measure - object - property memorytotalGB-sum) .sum)

    $twonode = [math]: tour ((Get-Cluster $cluster |)) Get-VMHost | Select - first 2 | (measure - object - property memorytotalGB-sum) .sum)

    $onenodepcpucores = [math]: tour ((Get-Cluster $cluster |)) Get-VMHost | Select - 1 first | (measure - object - property numcpu-sum) .sum)

    $twonodepcpucores = [math]: tour ((Get-Cluster $cluster |)) Get-VMHost | Select - first 2 | (measure - object - property numcpu-sum) .sum)

    $totalclusterpcores_failover1 = $pcpucore - $onenodepcpucores

    $totalclusterpcores_failover2 = $pcpucore - $twonodepcpucores

    $TotalClusterRAMGB = [math]: tour ((Get-cluster $cluster | get-vmhost | % {$_} | mesure-objet-propriété memorytotalGB-somme) .sum)

    $TotalClusterRAMFailoverOne = [math]: round (($TotalClusterRAMGB-$onenode))

    $TotalClusterRAMFailvoerTwo = [math]: round (($TotalClusterRAMGB-$twonode))

    $TotalClusterRAMusageGB = [math]: tour ((Get-cluster $cluster | get-vmhost | % {$_} | mesure-objet-propriété memoryusageGB-somme) .sum)

    $TotalClusterRAMUsagePercent = [math]: round (($TotalClusterRAMusageGB/$TotalClusterRAMGB) * 100)

    $TotalClusterRAMFreeGB = [math]: round (($TotalClusterRAMGB - $TotalClusterRAMUsageGB))

    $TotalClusterRAMReservedGB = [math]: round (($TotalClusterRAMGB/100) * 15)

    $TotalClusterRAMAvailable = [math]: round (($TotalClusterRAMFreeGB - $TotalClusterRAMReservedGB))

    $TotalClusterRAMAvailable_FailoverOne = [math]: round (($TotalClusterRAMAvailable-$onenode))

    $TotalClusterRAMAvailable_failoverTwo = [math]: round (($TotalClusterRAMAvailable-$twonode))

    $TotalClustervcpuperpcore_FailoverOne = [math]: round (($vCPU/$totalclusterpcores_failover1), 2)

    $TotalClustervcpuperpcore_failoverTwo = [math]: round (($vCPU/$totalclusterpcores_failover2), 2)

    $newvmcount = [math]: round (($TotalClusterRAMAvailable/$avgrampervm))

    $newvmcount_failover1 = [math]: round (($TotalClusterRAMAvailable_failoverone/$avgrampervm))

    $newvmcount_failover2 = [math]: round (($TotalClusterRAMAvailable_failovertwo/$avgrampervm))

    $afternewvmvcpu1 = $vcpu + $newvmcount

    $afternewvmvcpu2 = $afternewvmvcpu1 + $newvmcount

    $new1vcpupcpuratio = [math]: round (($afternewvmvcpu1/$pCPUCore), 1).

    $new2vcpupcpuratio = [math]: round (($afternewvmvcpu2/$pCPUCore), 1).

    New-Object PSObject |

    Add-Member-pass NoteProperty 'NOMCLUSTER' $clustername.name |

    Add-Member-pass NoteProperty 'TotalClusterHostCount' $HostCount |

    Add-Member-pass NoteProperty 'TotalClusterVMCount' $VMCount |

    Add-Member-pass NoteProperty "of AverageVM / Host" $VMsPerHost |

    Add-Member-pass NoteProperty 'TotalClusterpCPUSocket' $TpCPUSocket |

    Add-Member-pass NoteProperty 'TotalClusterpCPUCore' $pCPUCore |

    Add-Member-pass NoteProperty 'TotalClustervCPUCount' $VCPU |

    Add-Member-pass NoteProperty ' TotalClustervCPU/pCPUCore' $vcpuperpcpucore |

    Add-Member-pass NoteProperty "TotalClustervCPU/pCPUCore after 1 failover" $TotalClustervcpuperpcore_FailoverOne |

    Add-Member-pass NoteProperty ' TotalClustervCPU/pCPUCore after Failvoer 2' $TotalClustervcpuperpcore_Failovertwo |

    Add-Member-pass NoteProperty 'TotalClusterRAMGB' $TotalClusterRAMGB |

    Add-Member-pass NoteProperty 'TotalClusterRAMGB_Failover1' $TotalClusterRAMFailoverOne |

    Add-Member-pass NoteProperty 'TotalClusterRAMGB_failover2' $TotalClusterRAMFailvoerTwo |

    Add-Member-pass NoteProperty 'TotalClusterRAMUSAGEPercent' $TotalClusterRAMUsagePercent |

    Add-Member-pass NoteProperty 'TotalClusterRAMUsageGB' $TotalClusterRAMusageGB |

    Add-Member-pass NoteProperty 'TotalClusterRAMFreeGB' $TotalClusterRAMfreeGB |

    Add-Member-pass NoteProperty 'TotalClusterRAMReservedGB(15%) '. "$TotalClusterRAMReservedGB |

    Add-Member-pass NoteProperty 'RAM available for NEW virtual machines in GB' $TotalClusterRAMAvailable |

    Add-Member-pass NoteProperty 'RAM available for NEW virtual machines in GB after 1 failover' $TotalClusterRAMAvailable_FailoverOne |

    Add-Member-pass NoteProperty 'RAM available for NEW virtual machines in GB after failover 2' $TotalClusterRAMAvailable_FailoverTwo |

    Add-Member-pass NoteProperty 'Allocated RAM by virtual computer on an average' $avgrampervm |

    Add-Member-pass NoteProperty 'NEW virtual machines that can be configured based on the average of RAM virtual computer' $newvmcount |

    Add-Member-pass NoteProperty 'NEW virtual machines that can be configured based on the average of RAM virtual computer after 1 failover' $newvmcount_failover1 |

    Add-Member-pass NoteProperty 'NEW virtual machine that can be provisioned littleboy average RAM per virtual computer after failover 2' $newvmcount_failover2 |

    Add-Member-pass NoteProperty "vCPU/pCore ratio after new VM provisioning with 1vcpu" $new1vcpupcpuratio |

    Add-Member-pass NoteProperty ' vCPU/pCore ratio after new VM provisioning with 2vcpu' $new2vcpupcpuratio

    }

    Get-cluster $cluster | Get-vmhost | % {

    $vmhost = $_

    $VMHostView = $VMHost | Get-View

    $VMHostModel = ($VMHostsView | % {$_.}) Hardware.SystemInfo} | Model object-group | Sort - down County | Select - 1 first). Name

    $VMs = $VMHost | Get - VM #|? { $_. PowerState - eq "Receptor"}

    $TotalRAMGB = [math]: round ($vmhost. MemoryTotalGB)

    $TotalRAMUsageGB = [math]: round ($vmhost. MemoryUsageGB)

    $TotalRAMfreeGB = [math]: round ($TotalRAMGB - $TotalRAMUsageGB)

    $PercRAMUsed = [math]: round (($TotalRAMUsageGB/$TotalRAMGB) * 100)

    $TotalRAMReservedFree = [math]: round (($TotalRAMGB/100) * 15)

    $TotalRAMAvailable = [math]: round (($TotalRAMfreegb-$totalramreservedfree))

    New-Object PSObject |

    Add-Member-pass NoteProperty 'VMhost' $vmhost. Name |

    Add-Member-pass NoteProperty model $vmhostmodel |

    Add-Member-pass NoteProperty Sockets $VMHostView.Hardware.cpuinfo.NumCPUPackages |

    Add-Member-pass NoteProperty Cores $VMHostView.Hardware.cpuinfo.NumCPUCores |

    Add-Member-pass NoteProperty son $VMHostView.Hardware.cpuinfo.NumCPUThreads |

    Add-Member-pass NoteProperty VMCount (($VMs | mesure-objet).) County) |

    Add-Member-pass NoteProperty vCPU (0 + ($VMs: measure-object-NumCPU of the sum).) Sum).

    Add-Member-pass NoteProperty vCPUperCore ((0 + ($VMs | mesure-objet-NumCPU de la somme).)) Sum)/$VMHostView.hardware.cpuinfo.NumCPUCores) |

    Add-Member-pass NoteProperty 'RAMGB' $TotalRAMGB |

    Add-Member-pass NoteProperty 'RAMUsageGB' $totalramusageGB |

    Add-Member-pass NoteProperty 'RAMFreeGB' $totalramfreeGB |

    Add-Member-pass NoteProperty 'RAMUsage %' $PercRAMused |

    Add-Member-pass NoteProperty 'RAMReservedGB(15%) '. "$totalramreservedfree |

    Add-Member-pass NoteProperty 'RAM available for NEW virtual machines in GB' $totalramavailable

    }| Sort VMhost | FT-auto * | Out-String-width 1024

    See the attached script

Maybe you are looking for

  • I have iphoto 8.1.2 and want to update, what's next?

    I have iphoto 8.1.2 on my Mac and you want to update, what's next? you want to use the picture on my mac also share.

  • Stop Auto-loading that I type in the address bar.

    Today, I realized that if I pasted the text in the location bar, it automatically does a search via Google. I tried to stop this behavior, so I looked into it. I ended up trying to change keyword.enabled from true to false. He did not take what I wan

  • What versions of 32-bit window based on HP G62-144DX laptop

    Hi all I bought the new computer hp laptop g62 and OS is win7 64 bit and RAM is 4 GB. I want to change to 64 bit to 32 bit OS, because an application cannot install to there. for example: I can not install the oracle 10g database. What version of 32-

  • RA Media Server password?

    I tried to download Google Earth and RA Media Server pops up saying that I needed a password.  I've never set up a password for administrative or account.  How do I know what is the password?  I tried to uninstall "Dell remote access" as advised by o

  • Management of e-mail messages

    How can I put a screen that tells me how much space I have left in my Windows mail Inbox?