<?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: OneAgent Custom Host Properties in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117429#M1286</link>
    <description>&lt;P&gt;If you don't have Puppet or Ansible You can use a CSV template that lists the host name, then you can set the custom meta data via the columns. Say Row One has the following columns, Host | Environment | Team | Application. &lt;/P&gt;&lt;P&gt;Then Row two you put in the data so HOST 1 | PROD | WebDev | Easy Travel &lt;/P&gt;&lt;P&gt;And Row 3 for your other hosts : HOST 2 | DR | AppDev | Easier Travel&lt;/P&gt;&lt;P&gt;And so on for your X amount of hosts. &lt;/P&gt;&lt;P&gt;And then within your script, upon install the CSV gets uploaded and as it deploys to Host 1, it looks at the settings and applies the metadata. &lt;/P&gt;&lt;P&gt;Once that is all said and done, you can then create auto tagging rules that looks at that data and list the values as tags for better sorting and rule capabilities. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 13:05:09 GMT</pubDate>
    <dc:creator>ChadTurner</dc:creator>
    <dc:date>2020-10-02T13:05:09Z</dc:date>
    <item>
      <title>OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117423#M1280</link>
      <description>&lt;P&gt;I have to set a custom property on 5000+ hosts, rather than manually setting the property in hostcustomproperties.conf or executing --set-host-property on each host, is there a way to automate it across all hosts ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 05:52:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117423#M1280</guid>
      <dc:creator>leon_vanzyl</dc:creator>
      <dc:date>2020-10-02T05:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117424#M1281</link>
      <description>&lt;P&gt;As far as I know, only tags can be applied to entities via Environment APIs, not properties.  &lt;BR /&gt;&lt;BR /&gt;Other solution I think would be to deploy a OneAgent extension (but this still requires pushing the extension to the host by yourself) that will set properties for entities, either host or processes.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 06:42:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117424#M1281</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-10-02T06:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117425#M1282</link>
      <description>&lt;P&gt;Yeah, this was the other option I considered, but the effort would be more than just executing it on every host...&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 06:47:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117425#M1282</guid>
      <dc:creator>leon_vanzyl</dc:creator>
      <dc:date>2020-10-02T06:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117426#M1283</link>
      <description>&lt;P&gt;Agreed.  If you don't want to use tags instead of properties, then the only way is to execute something on the hosts via other means. With 5000 hosts I assume you already have some configuration management tools in place and it should not be that hard.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 06:53:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117426#M1283</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-10-02T06:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117427#M1284</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/33542/view.html" nodeid="33542"&gt;@Leon Van Z.&lt;/A&gt; do you have any other system/config management tools in place to manage these hosts? e.g. Ansible or Puppet?&lt;BR /&gt;When I manage custom properties I used to generate the hostcustomproperties.conf via puppet, based on config settings made in puppet facts. Similar to what you could do with Ansible (e.g. execute oneagentctl).&lt;/P&gt;&lt;P&gt;The oneAgent on a host API unfortunately doesn't allow to set properties &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 06:59:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117427#M1284</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2020-10-02T06:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117428#M1285</link>
      <description>&lt;P&gt;Yup it can be done with Ansible , but is there a plan to do it via the API?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 10:02:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117428#M1285</guid>
      <dc:creator>leon_vanzyl</dc:creator>
      <dc:date>2020-10-02T10:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117429#M1286</link>
      <description>&lt;P&gt;If you don't have Puppet or Ansible You can use a CSV template that lists the host name, then you can set the custom meta data via the columns. Say Row One has the following columns, Host | Environment | Team | Application. &lt;/P&gt;&lt;P&gt;Then Row two you put in the data so HOST 1 | PROD | WebDev | Easy Travel &lt;/P&gt;&lt;P&gt;And Row 3 for your other hosts : HOST 2 | DR | AppDev | Easier Travel&lt;/P&gt;&lt;P&gt;And so on for your X amount of hosts. &lt;/P&gt;&lt;P&gt;And then within your script, upon install the CSV gets uploaded and as it deploys to Host 1, it looks at the settings and applies the metadata. &lt;/P&gt;&lt;P&gt;Once that is all said and done, you can then create auto tagging rules that looks at that data and list the values as tags for better sorting and rule capabilities. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:05:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/117429#M1286</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2020-10-02T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: OneAgent Custom Host Properties</title>
      <link>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/256500#M1790</link>
      <description>&lt;P&gt;Looks like this is doable now: (you;ll have to replace with your values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;in API Explorer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "entities": [
    "HOST-REDACTED"
  ],
  "operations": [
    {
      "attribute": "hostProperty",
      "operation": "set",
      "value": "test=test1"
    }
  ]
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;curl -X 'POST' \ 'https://%URL%/e/%ENVIRONMENT_ID%/api/v2/oneagents/remoteConfigurationManagement?restart=false' \ -H 'accept: application/json; charset=utf-8' \ -H 'Authorization: Api-Token %TOKEN%' \ -H 'Content-Type: application/json; charset=utf-8' \ -d '{ "entities": [ "HOST-%ID%" ], "operations": [ { "attribute": "hostProperty", "operation": "set", "value": "test=test1" } ] }'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 16:11:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/OneAgent-Custom-Host-Properties/m-p/256500#M1790</guid>
      <dc:creator>GilesDay</dc:creator>
      <dc:date>2024-09-19T16:11:26Z</dc:date>
    </item>
  </channel>
</rss>

