<?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 Easier way to run cytool in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/easier-way-to-run-cytool/m-p/1230211#M8353</link>
    <description>&lt;P&gt;Hello XDR experts,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We got 300+ linux servers need to run cytool command with the password.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to write a shell/python script with the password to do so?&lt;/P&gt;
&lt;P&gt;thanks a million&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SDG&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 02:01:01 GMT</pubDate>
    <dc:creator>SeanDeHarris</dc:creator>
    <dc:date>2025-05-28T02:01:01Z</dc:date>
    <item>
      <title>Easier way to run cytool</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/easier-way-to-run-cytool/m-p/1230211#M8353</link>
      <description>&lt;P&gt;Hello XDR experts,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We got 300+ linux servers need to run cytool command with the password.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to write a shell/python script with the password to do so?&lt;/P&gt;
&lt;P&gt;thanks a million&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SDG&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 02:01:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/easier-way-to-run-cytool/m-p/1230211#M8353</guid>
      <dc:creator>SeanDeHarris</dc:creator>
      <dc:date>2025-05-28T02:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Easier way to run cytool</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/easier-way-to-run-cytool/m-p/1230675#M8363</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/184443"&gt;@SeanDeHarris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="231"&gt;Yes, it is absolutely possible to write a &lt;STRONG data-start="42" data-end="68"&gt;shell or Python script&lt;/STRONG&gt; to run the &lt;CODE data-start="80" data-end="88"&gt;cytool&lt;/CODE&gt; command with the password across 300+ Linux servers — &lt;STRONG data-start="143" data-end="173"&gt;but with important caveats&lt;/STRONG&gt; regarding security, authentication, and remote execution.&lt;/P&gt;
&lt;P data-start="0" data-end="231"&gt;&lt;STRONG data-start="244" data-end="290"&gt;Important Considerations Before Proceeding&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL data-start="291" data-end="637"&gt;
&lt;LI data-start="291" data-end="385"&gt;
&lt;P data-start="294" data-end="385"&gt;&lt;STRONG data-start="294" data-end="329"&gt;cytool requires root privileges&lt;/STRONG&gt; — ensure the user running the script has &lt;CODE data-start="371" data-end="377"&gt;sudo&lt;/CODE&gt; access.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="386" data-end="574"&gt;
&lt;P data-start="389" data-end="574"&gt;&lt;STRONG data-start="389" data-end="450"&gt;Storing plaintext passwords in scripts is a security risk&lt;/STRONG&gt; — if unavoidable, restrict file permissions (&lt;CODE data-start="496" data-end="507"&gt;chmod 700&lt;/CODE&gt;) and use a secure method (e.g., encrypted vault or runtime input).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="575" data-end="637"&gt;
&lt;P data-start="578" data-end="637"&gt;For remote execution, use &lt;STRONG data-start="604" data-end="611"&gt;SSH&lt;/STRONG&gt; with keys, not passwords.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Or use Ansibe.&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and&amp;nbsp; on "mark this as a Solution". Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 08:09:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/easier-way-to-run-cytool/m-p/1230675#M8363</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-06-02T08:09:12Z</dc:date>
    </item>
  </channel>
</rss>

