<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: remidiate Host Profiles in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220334#M18643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share part of your code for what you did to edit the answer file? I've managed to pick the profile I want, apply it to the host and do the remediation (with the help of your code above) but the trying to feed in all the answers are giving me a little trouble. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything you can share would be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Oct 2019 17:16:57 GMT</pubDate>
    <dc:creator>aslk5</dc:creator>
    <dc:date>2019-10-04T17:16:57Z</dc:date>
    <item>
      <title>remidiate Host Profiles</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220332#M18641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I been hammering away at this but I'm having trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System:&lt;/STRONG&gt; vCenter 6.7, vRO&amp;nbsp; 7.6&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective: &lt;/STRONG&gt;remediate (apply host profile) to esxi after changing some content of the Answer file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I have: &lt;/STRONG&gt;I have added a host profile to the Cluster, added a new ESXi, changed the answer file content &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I cant figure out: &lt;/STRONG&gt;How to apply the host profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API tells me to use: VcHostProfileManager.applyHostConfig_Task() however it requires VcHostConfigSpec and I cant find to get them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:20:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220332#M18641</guid>
      <dc:creator>Windspirit</dc:creator>
      <dc:date>2019-08-26T06:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: remidiate Host Profiles</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220333#M18642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh well...&lt;/P&gt;&lt;P&gt;Sometimes it helps just to step away...&lt;/P&gt;&lt;P&gt;here the answer:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_15668009458168893 jive_macro_code jive_text_macro" data-renderedposition="70_8_1156_80" jivemacro_uid="_15668009458168893"&gt;&lt;P&gt;profile=hostProfileManager.findAssociatedProfile(host)[0];&lt;/P&gt;&lt;P&gt;exec=profile.executeHostProfile(host);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;taskID=hostProfileManager.applyHostConfig_Task(host,exec.configSpec);&lt;/P&gt;&lt;P&gt;stuff=System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(taskID,false,2);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was that I didn't realize that the type &lt;STRONG&gt;vc:Profile&lt;/STRONG&gt; is the same as the type &lt;STRONG&gt;vc:HostProfile&lt;/STRONG&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;---------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Was it helpful? &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Let us know by completing &lt;/SPAN&gt;&lt;A href="https://insights.vmware.com/cgi-bin/qwebcorporate.dll?idx=4RA39B&amp;amp;source=vRealize"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #2989c5;"&gt;this short survey here&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 06:31:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220333#M18642</guid>
      <dc:creator>Windspirit</dc:creator>
      <dc:date>2019-08-26T06:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: remidiate Host Profiles</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220334#M18643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share part of your code for what you did to edit the answer file? I've managed to pick the profile I want, apply it to the host and do the remediation (with the help of your code above) but the trying to feed in all the answers are giving me a little trouble. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything you can share would be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 17:16:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/remidiate-Host-Profiles/m-p/2220334#M18643</guid>
      <dc:creator>aslk5</dc:creator>
      <dc:date>2019-10-04T17:16:57Z</dc:date>
    </item>
  </channel>
</rss>

