Help with Host Profiles and necessary PowerCLI

Hello

I have 2 questions about using PowerCLI for edit vSphere Host Profiles:

(1) how can I clone a host profile, using PowerCLI?

(2) how can I change the host profiles, using PowerCLI, update these settings?
(a) name of host - DNS configuration - configuration networking
(b) setting up authentication - setup of Active Directory - domain name


Thank you!

Kind regards
Harold

(1) there, in the current version no cmldets to clone a hostprofile.

But you can use the API. Something like that

$hostProfileName = "MyProfile" $prof = Get-VMHostProfile -Name $hostProfileName 

$profMgr = Get-View HostProfileManager
$spec = New-Object VMware.Vim.HostProfileCompleteConfigSpec $spec.Annotation = $prof.ExtensionData.Config.Annotation$spec.ApplyProfile = $prof.ExtensionData.Config.ApplyProfile$spec.CustomComplyProfile = $prof.ExtensionData.Config.CustomComplyProfile$spec.DisabledExpressionList = $prof.ExtensionData.Config.DisabledExpressionList$spec.Enabled = $prof.ExtensionData.Config.Enabled$spec.Name = $prof.ExtensionData.Config.Name + " - COPY"
$profMgr.CreateProfile($spec)

(2) changing the settings in hostprofiles can be done, but the ILO requires a thorough knowledge of the workings of

See for example my change of the root password in host and profiles of the host .

Tags: VMware

Similar Questions

  • Auto Deploy, host profile and answer files

    Hello

    I'm busy trying to learn a little more about Auto deploy. I'm trying to figure out what is the best practice when it comes to the part host profiles of the automatic process of deploy. The way I see there are two ways to use host profiles.

    (1) for each host, I create a separate host profile and create necessary deployment rules, one rule per host.

    (2) I create a host profile and only one rule of deployment and then use the response file option to create the unique settings of the host.

    I've set up two option, option 2 seems less reliable while option 1 works every time. So my main question is what is the recommended method to use profiles to host with Auto deploy.

    Thank you

    Hello

    It is usually done through your supplied option 2.

    Create a profile from a host of reference and apply this profile to a host or a cluster.  Usually a cluster or however you define your deployment rules.  Update of the personalization of the host, then remove it from maintenance mode.

    Documentation on the profiles of the host.

    Here a documentation to Auto deploy

    I am a big fan or Pluralsight and Nash did a great job in this series.

    Training, Pluralsight

    Course: VMware vSphere Optimize & scale series

    Part 3: Monitoring & Automation

    Section: Self help to deploy for the deployment of ESXi

    So, that is the 'best practice' or ' recommended?  Good question.  Which is usually answered by - what is best for you!

    I hope this helps a little.

  • Help with check boxes and actions

    Hello

    I just downloaded a trial version of LiveCycle Designer ES2 to see if this program works for the company that I work for. I need to create order forms for our products that our customers can fill out online and then send an e-mail to our sales department.

    I have imported our current order form to LiveCycle as a work of art and have inserted check boxes on the form. I want the form to automatically add the price of the option they checked off the retail price of total at the bottom of the form. Do you have any suggestions for me?

    Thank you!

    Stefan

    Hello Stefan,

    LC Designer is a very powerful application. While you can drag and drop objects on the form, for things really move you need to put a script in objects. This allows to control the way in which the form will be according to the users actions.

    To begin with there is help. If you have a look at the Action Builder in the Tools menu, you can select an object, then use the plain instructions accumulates the desired interaction. When you click OK, LC Designer will insert the necessary script.

    Therefore, there may be a steep learning curve, so it depends on how comfortable you are to roll up your sleeves and do some scripts.

    First, you must configure your workspace. This tends to be a personal preference, but here's a basic layout.

    It is a bit small, because of the scale, but you get the idea. At any time, you should be able to see the page, the hierarchy and the script editor. The object library and the range of the object and other palette must be close to hand as well.

    I am NOT inclined to import the form existing as work. This can limit the built-in options in LC Designer later. You can save your form existing in JPEG format and then in a new form to use the image object (value size full page) to display the image of the existing form.

    [ALTERNATIVE: you can also add fields to a PDF in Acrobat].

    Regarding scripting, the following JavaScript code should work in the click event of the checkbox (on the ground that the other field is named totalPrice).

    If (this.rawValue == 1)

    {

    totalPrice.rawValue = totalPrice.rawValue + 10;

    }

    on the other

    {

    totalPrice.rawValue = totalPrice.rawValue - 10;

    }

    This should take into account if the user changes of opinion and unticks the box.

    One thing to keep in mind about forms developed in the LC Designer, it is only the functions that will be available in the form (such as submit by e-mail in PDF format) will depend on whether the user has Acrobat or Reader, and also on whether the form has been active player (and how it has been activated). There is more information here: http://assure.ly/gYyYc2.

    I highly recommend JP Terry on LC Designer which is excellent - book "create dynamic with Adobe LiveCycle Designer Forms. It starts at the beginning and clearly sets out the key learning points. In the end, there are a few good examples that you can copy anywhere in your forms.

    We have solutions and blog posts on our website http://www.assuredynamics.com.

    There are also a range of online resources. You can find these resources useful:

    http://www.Adobe.com/go/learn_lc_scriptingBasics

    http://www.Adobe.com/go/learn_lc_scriptingReference

    http://www.Adobe.com/go/learn_lc_formCalc

    http://www.Adobe.com/devnet/LiveCycle/articles/Adobe_XML_Form_Object_M odel_Refer ence.pdf

    http://www.Adobe.com/devnet/Acrobat/PDFs/lc_migrating_acrobat_xmlform. PDF

    And a very convenient resource (and even if it's for version 6, it is still very good because of the way it is presented):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf

    The HelpFile in the LC designer can also help with the syntax and LC designer itself comes with some great models and examples.

    Finally, discover the network of the developer on http://www.adobe.com/devnet/livecycle/

    A book that does not deal with the scripts at all, but is very good on the formatting is also ""does this work " by Caroline Jarrett and Gerry Gaffney."

    The Adobe "PDF forms Bible" is OK, but focuses mainly on AcroForms.

    WindJack Solutions have a service on subscription for the scripts and solutions tohttp://www.pdfscripting.com. There a lot of AcroForm script which can be modified according to LC designer and a growing library of LC Designer solutions.

    I hope this helps,

    Niall

  • Need help with an order line shaped PowerCLI to follow development snapshots

    Hello

    I use Vshpere 5.1 and I need help to use PowerCLI out of information to audit some VM backups.

    My ultimate goal is to be able to verify which machines are being backed up.  Our backup tool uses instant VMware to run incremental backups so if we can follow what made instant due VM / deleted then we can better verify backups.

    I decided my inexperience with PowerCLI that it would be preferable for me to try a few small orders to see if I could get some decent results.

    The line of code I'm starting with is Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} FullFormattedMessage - eq "task: Remove Instant"} ".

    Most of the time this script works however the output is interesting for me.

    Info: VMware.Vim.TaskInfo

    Key: 5360442

    ChainId: 5360442

    Createduserid: 2014/06/20 22:32:31

    Username: JJarvis

    Data Center: VMware.Vim.DatacenterEventArgument

    ComputeResource: VMware.Vim.ComputeResourceEventArgument

    Host: VMware.Vim.HostEventArgument

    VM: VMware.Vim.VmEventArgument

    Ds                   :

    Net                  :

    Dvs                  :

    FullFormattedMessage: Task: Remove Instant

    ChangeTag:

    DynamicType:

    DynamicProperty:

    Frankly, I was glad I was able to sign anything, but I'm confused as to why under "VM: 'told'"Vm: VMware.Vim.VmEventArgument"instead of the actual name of the VM."

    If I can find it to output the actual name of the Virtual Machine, so I can start to play with the formatting and obtained Export CSV files.  Any help you can offer would be much appreciated.

    Thank you

    I suspect a calculated property might be the way to go.

    Something like that

    Get - VM * | Get-VIEvent - MaxSamples 20 | Where-Object {$_.} {FullFormattedMessage - eq ' task: Remove Instant "} |

    Select @{N = 'The virtual computer name'; E={$_. Vm.Name}}

    You can of course view other properties of events returned to the Select-Object cmdlet even.

  • How to get help with Add ons and extensions that stop working

    I have saved passwords and it has stopped working. It's so hard to get help with Moxilla

    rosemarybales said

    I still don't know why the extension button passwords saved with the key icon has stopped working.

    This button displays the saved passwords in Firefox's built-in password manager, is no separate passwords that record you in Dashlane. Can you save passwords in both places? (Well, I guess you do.)

    I have a guess on why it has stopped working. Firefox 40 has some changes to how extensions can work with the user interface, so quite a few extensions that have been more than one year must be updated for Firefox 40. It has been updated on January 10, 2012.

    Anyway, the way of 'long' to display the passwords saved in Firefox is through the Options page, the Security Panel, the saved passwords button.

  • Photosmart: Called tech support for help with my printer and got a sales pitch

    I called HP customer service today to get help with my wireless printer because it won't print wireless. What I got was a sales pitch to buy a value of $450 of virus protection! So very disappointed!

    Hello

    Thank you for using the HP forum.

    How can we help with your wireless?

    Have you tried the following:

    Please download and run the HP Print and Scan Doctor (PSDR) tool to diagnose and solve your problem

    http://h20180.www2.HP.com/apps/NAV?h_pagetype=s-926 & h_lang = on & h_client = s-h-E016-1 & h_keyword = DG - PDU

    Hope that helps.

  • Need help with the formatting and reinstalling windows

    Hi, I have a Compaq Presario C700 p/n GR598EA #ABU I got to work about 3 years ago.

    Recently, it does not load windows, even in safe mode and I can't get back either.

    I used a disc to boot from linux to access and backup of all my important files and now I want to reformat the hard drive, resintall windows and start over (or try something else which will fix it)

    The laptop has been pre-installed with Windows Vista and HP stuff had already installed on it.  I don't have a Windows disc or discs of driver with the laptop.

    How can I format and reinstall windows and drivers, if I don't have records?

    Help, please.

    Thank you.

    Hello:

    You can order a Vista recovery disk set for your laptop if they are still available. See the instructions below:

    http://support.HP.com/US-en/document/c00810334=

    If you live not in the US or the Canada, you can contact HP Support worldwide for the country you live and ask recovery disks command to your laptop

    The link to the assistance of HP WW is below:

    http://welcome.HP.com/country/us/en/wwcontact_us.html

    Paul

  • Helps with the rv180w and the Shrew soft vpn

    Hi, I'm trying to establish a vpn connection by using soft shrew for the cisco rv180w router.

    I watch and read everything I could find, but the connection drops during the opening of the tunnel.

    There were a few tuttorial here in the forum, but the links are down.

    I want Edifier is to establish communication and to be able to access my domain on the network.

    Any help with the settings would be greatly apeciated. I am new to vpn.

    Thanks in advance.

    Federico,

    Try to access the following link. It has good instructions for a similar model. The main difference is that the SA500 has double-WAN and the RV180W does not work.

    https://supportforums.Cisco.com/docs/doc-9378#comment-7216

    Here's another tutorial for the RVS4000 that can help:

    https://supportforums.Cisco.com/docs/doc-18443

    Check out the last post in the following thread, which received instructions for the RV220W (should be exactly the same as RV180W)

    https://supportforums.Cisco.com/message/4165652#4165652

    -Marty

  • Help with Hard Drive and registry

    Hey, it kinda turns out to be a long and difficult history, but I recently had a small problem that spread to a problem much bigger (and catastrophic).

    I had a problem with freezxing on my laptop (HP Pavilion Dv5 with the 64-bit version of Vista I think). I've tried a few things m ais it froze just in case. Finally I found someone who said they ran a registry cleaning program and that did the trick. I tried and I had no more freezing. Unfortunately, I connected an external hard drive and all hell broke loose. It froze and I turned off the laptop. I have it turned on and was greeted with this message:

    STOP: c000021a {Fatal System Error}
    The Session Manager failed to create protected prefixes system process terminate
    d unexpectedly with a status of 0x000003a (0x00000000 0x00000000).
    The system has been shut down.
    

    I tried to boot in safe mode and found:

    STOP: c0000218 {Registry File Failure}
    The registry cannot load the hive (file):\SystemRoot\system32\config\SOFTWARE or its log alternative.
    It is corrupt, absent, or not writable.
    

    Then, she went and made the collection of data, and that was all. After that, I tried the boot recovery option and that never worked. I searched internet and found a few people with similar, but never the same questions. Someone, somewhere, says something about execution of system restore after having access to the menu by pressing F8 at startup. I tried. It did not work. I pressed F8 at startup upward and chose the first option. It has established a list of things to try. System Restore (and other options such as checking memory and bring up the command prompt) did not work because the C drive has been used. Large. I tried to use the disks that came with my laptop and I never once found while they were actually useful because I could never the laptop to run.

    Now, I wanted to try to use the command prompt. Never really had a chance. Now, when I start the computer I'm greeted by the inspiring message of hard drive are not.

    Sweet. Now, I'm a little stuck on what to try. I tried to reset the BIOS defaults and nada. I have no idea what it must try now and would love to help anyone.

    I would be very happy and I thank you for your time.

    It depends on how much you have to pay to get the new hard drive installed and running. Get a quote for a computer shop trust you.  So I think that if the computer has been done what you wanted to do before he went wrong.  If it was enough for you and the price of the repair is not too high (maybe less), I would. If the price is more than $ 200, I would start thinking about applying your money towards a new laptop computer, but that cheaper isn't always the best deal.  Do some research and try some mobile friends to see if it is fast enough for you and you enjoy the feeling. Stop in some stores that display laptops and taste. Laptops with dedicated video card memory will do better with the games.  If the games are starting to become important to you, consider a desktop computer instead of a laptop where you can buy a killer video card. I like the new Ivy bridge to intel for laptops so look for it.  This is the new family of Intel processors. I7 Ivy bridge is the finest, then the i5, then the i3.  You really need to sit with someone who knows computers and discuss your needs for the future and how you want to use your computer.

  • Need help with repository profile

    Hi all

    I need to change the length of the columns first_name, last_name from 100 to 255.

    At the level of the repository, I did this in the custom_dps_user table and DPS_CONTACT_INFO table already has these columns.

    So I also need to create a custom as CUSTOM_DPS_CONTACT_INFO.

    I do following changes-

    < table name = "CUSTOM_DPS_CONTACT_INFO" type = "auxiliary" id-column-name = "id" >

    < property name = "FirstName" xml - combine = "remove" / >

    < property name = "lastName" xml - combine = "remove" / >

    < /table >

    But do not know what to do next here.

    Can someone please help with this?

    Hello

    It seems that you try to change the lengths of the ootb properties in your custom tables.

    In order to follow the steps below: -.

    First use code below in table-dps_contact_info

           

    Add the code below in your table - CUSTOM_DPS_CONTACT_INFO

     

     

     

    In the next step only, run the following commands in DB-

    ALTER TABLE CUSTOM_DPS_USER CHANGE (LAST_NAME, VARCHAR2 (255));

    ALTER TABLE CUSTOM_DPS_USER CHANGE (FIRST NAME VARCHAR2 (255));

    ALTER TABLE CUSTOM_DPS_CONTACT_INFO ADD (NAME VARCHAR2 (255));

    ALTER TABLE CUSTOM_DPS_CONTACT_INFO ADD (LAST_NAME, VARCHAR2 (255));

    I hope this will help!

    Prateek Gupta

  • Help with conditional display and Validation

    Version 4.1.1.00.23

    Hello

    I'm having a difficult time with a conditional display and validation, I hope someone can help with.

    Requirements:

    When (Datepicker) Start Date or the end Date (Datepicker) change can display the reason for change (select list) and change Description (Textbox)
    If the page is saved without entering a reason change display an error message of validation that the reason for the change cannot be empty (NULL)

    What I tried

    Create a dynamic Action on the Start Date

    Event: Change

    Selection type: Article (s)

    Items (s): P51_START_DATE

    Condition: no

    Real Action Section:

    Action: Show

    Fire on Page load: Checked

    Display all the elements of the page on the same line: NO.

    Section of the elements concerned:

    Selection type: Article (s)

    Product (s): P51_CHANGE_REASON, P51_CHANGE_DESC

    I also created a dynamic Action with similar settings for the P51_END_DATE.

    I created a Validation for the P51_CHANGE_REASON as a function return error text:

    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    
    
    

    The question

    I tried to create another dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields during the loading of the page, but when the date fields are changed and the validation is fired the P51_CHANGE_REASON and the P51_CHANGE_DESC are hidden again.

    There are two buttons to send the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will present the page and creates a branch to the previous page (which is a relationship with the EDIT buttons to change recording).

    I can not loading the dynamic Action page for fires DO NOT when validation is triggered.

    I hope it is clear and if not what information can I provide?

    Thank you

    Joe

    Which the condition is failing and what browser? I tested it in Firefox and it works as it should. Can you confirm that?

  • Help with sum multiline and formatting «,»

    Hey guys, I need help with a question that I am struggling to solve...

    I have a multiline field in which I paste information from an excel spreadsheet. This information is in a format 1.234,56.

    I was able to have the numbers stuck on the ground in another area, by removing the ',': something like this:

    var withcoma = this.getField("Input_1").value; This is my multi-line field used to paste data from excel

    nocoma = withcoma.replace(/\,/g, ".");

    the var values = nocoma.split("\r");

    var total = 0;

    for (var i in values) total += Number(values[i]);

    this.getField("Total").value = total;


    The point is that I have to be able to change the numbers that I have to format to the format 1,234.56 1.234,56 if I choose to use a different currency than my original and also wear numbers in the field "Total" correctly updated.

    Could someone point me in the right direction?

    Thank you very much!!!

    The solution was to add another line of code to remove the periods used so that thousands separators in numbers.

  • Need help with network inside and outside Transmittion script

    Hi, I have a problem in my script. I would get Vm net.received.average and net.transmitted.average. Somewhere, it displays the empty output for me, can I have a sample of script on obtaining transmittion of network for 7 days

    My script:

    $report = @ (get - Vm = $vms). where {$_.} PowerState - eq "Receptor"} $lastWeek = (get-date). AddDays(-7) foreach ($vm in $vms) {$vmNet = "" |} Select VmName, NetworkReceive, NetworkTransmit $statReceive is Get-Stat-entity ($vm) - start $lastWeek - finishing (Get-Date) - MaxSamples 1 - net.received.average stat. Group-object - property Instance $statTrans = Get-Stat-entity ($vm) - start $lastWeek - finishing (Get-Date) - MaxSamples 1 - net.transmitted.average stat. {Group-object - property Forum $vmNet.VmName = $vm.name $vmNet.NetworkReceive = "{0: F2}" f $statReceive.value $vmNet.NetworkTransmit = "{0: F2}" f $statTrans.value $report += $vmNet} $report | Select VmName, NetworkReceive, NetworkTransmit | Export-csv "c:\q33.csv".
    Thank you

    Both are related to the use of aggregation running on your vCenter

    Historical data interval 4 are grouped once a day, and on your vCenter this SQL task seems to be planned at 08:00.

    That is why the time stamp.

    Statistical data are aggregated to one historical interval to another.

    Since ask us the historical interval 4 (with the IntervalMins parameter), the aggregagtion to this historical interval is not yet made.

    This is why the last day 2 are not present in the report.

    You can play with the - Start and - finishing settings to have a period of 7 days which is at least two days yet at the time.

    $report = @()
    $metrics = "net.received.average","net.transmitted.average"
    $vms = Get-Vm | where {$_.PowerState -eq "PoweredOn"}
    $start = (get-date).AddDays(-7)
    $finish = $start.AddDays(7)
    
    Get-Stat -IntervalMins 1440 -Entity ($vms) -start $start -finish $finish -stat $metrics -Instance "" | `  Group-Object -Property Timestamp,EntityId | %{
        $vmNet = ""| Select VmName, Timestamp, NetworkReceive, NetworkTransmit
        $vmNet.VmName = $_.Group[0].Entity.Name
        $vmNet.Timestamp = $_.Group[0].Timestamp
        $vmNet.NetworkReceive = "{0:f2}" -f (($_.Group | where {$_.MetricId -eq "net.received.average"} | Measure-Object -Property Value -Sum).Sum)
        $vmNet.NetworkTransmit = "{0:f2}" -f (($_.Group | where {$_.MetricId -eq "net.transmitted.average"} | Measure-Object -Property Value -Sum).Sum)
        $report += $vmNet}
    $report | Export-csv "c:\q33.csv" -NoTypeInformation -UseCulture
    
  • the host profiles and CVS?

    We have hosted 5300/5400 severa intels in a cluster of evc.  We did a profile of the host of one of these servers.  Then we added a new server intel 5600 to VC, but not in the evc cluster. We then applied the restarted host profile. We were surprised to see that vmware allowed us to vmotion virtual machine to a host in the evc cluster to 5600 host without complaining.

    My question is the hsot profiles modify the host server to match the settings of evc also?

    VCA is not included in the profile of the host. VCA is actually CPUID masking at the virtual machine level. If it is not a surprise that you can VMotion VM of EVC cluster to more recent host.

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

  • Help with GREP search and replace

    I've never used grep before and I'm stumped.  I have a document that lists the times for different classes.  Times are variously listed as 9-10, 9-10, 9-10 or 9-10, to get examples.  The problem is that there may be no space or a space on the left or the right of the hyphen.  I want it all the time as 10:30 - 11:30, for example.  In other words, the link must have a space on each side of it.  I think that this could be accomplished with GREP search and replace, but I don't understand the syntax well enough to make it work.

    Can someone tell me how to write the search and replace expressions?  (Of course the real time could be any hours).

    Thank you!

    It is tempting to add spaces of * all numbers separated by a dash. If you don't know all time have some minutes, then it is safer to use this:

    (?<=:\d\d)>

    .. Replace with space hyphen space.

    He seeks the "settler, any digit, any digit" (which is * found * not * included *), followed by 'optional of a space, a hyphen, optional space' and must be followed by 'any number' (again, not counting this one). Since the figures before and after are * found * not * included *-which is due to the (? xxx) syntax - all that needs to be replaced is the dashboard itself. Making the space before and after the optional dashboard (using a single "?" immediately after each), no matter if it * is * a space or not, all the combinations will be found and replaced.

Maybe you are looking for

  • Why 10.01 are my alpha songs sorted by the artist instead of alpha by song title?

    How can I get my alpha songs sorted by title instead of alpha by artist 10.01

  • AirPort utility

    I just added two AirPort Express units to my Time Capsule to expand my network.  Only one of the AirPort Express units appear in Airport utility, but both have the green light.  How can I find the 2nd Airport Express AirPort Utility?

  • Support for 64-bit driver for Windows 7 for Deskjet 6540 and Colorsmart D5360

    Or 64-bit Windows 7 drivers for the Deskjet 6540 nor the Photosmart 5360 supports the maintenance function is now impossible to clean the print heads. Two of these printers worked fine when they were connected to my XP machine. At HP dumbed down thes

  • Impossible to uninstall Uninstall

    I have a software game that will not uninstall. Uninstall gives shield the message "... the log file is not valid or that the data has been corrupted." Uninstallation will not continue. "What else can I do to get this software on my hard drive?

  • Windows 7 Bluetooth audio switching

    I always have problems with audio switching to Bluetooth speakers. Is there a simple method? Sometimes it works to start, other times it becomes disconnected and I can't do it reconnected.