<?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: How to delete a specific entry from Gaia's Clish history? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/176712#M7584</link>
    <description>&lt;P&gt;Yes, history is written on logout. I made a &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Clishtory/m-p/164323#M7333" target="_blank" rel="noopener"&gt;simple tool&lt;/A&gt; a while ago to check all histories to see now and then if people didn't put sensitive stuff in environments with a lot of users. Clish commands are also logged in /var/log/messages so could benefit from a syslog export and analysis tool.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 09:52:51 GMT</pubDate>
    <dc:creator>Alex-</dc:creator>
    <dc:date>2023-03-30T09:52:51Z</dc:date>
    <item>
      <title>How to delete a specific entry from Gaia's Clish history?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/149606#M6830</link>
      <description>&lt;P&gt;I'd like a delete a specific entry from Gaia's Clish history (&lt;EM&gt;it's a password&lt;/EM&gt;) without deleting the other entries.&lt;BR /&gt;What's the correct procedure for this?&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/Command-History.htm" target="_self"&gt;Gaia command history&lt;/A&gt; didn't provide a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 10:22:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/149606#M6830</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2022-05-27T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a specific entry from Gaia's Clish history?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/149637#M6834</link>
      <description>&lt;P&gt;The clish history is recorded in&amp;nbsp;&lt;FONT face="courier new,courier"&gt;~/.clish_history&lt;/FONT&gt; that you can access from Expert mode.&lt;/P&gt;&lt;P&gt;From there, edit the file or script something to your liking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:26:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/149637#M6834</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2022-05-27T15:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a specific entry from Gaia's Clish history?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/176700#M7583</link>
      <description>&lt;P&gt;Even after deleting the entry from &lt;FONT face="courier new,courier"&gt;~/.clish_history&lt;/FONT&gt;, then logging out and in again to the system then the unwanted clish entry is still there and also appears back again in &lt;FONT face="courier new,courier"&gt;~/.clish_history&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;What is the reason Check Point stores failed non-command entries into clish history?&lt;BR /&gt;Most of us use password systems these days, so it happens sometimes that we copy&amp;amp;paste a password into the clish and hit enter to realize only afterwards that there was no expert prompt waiting for password entry.&lt;/P&gt;
&lt;P&gt;I figured out that when I login with another admin account and delete the entry from the unwanted clish history entry of the first admin account it finally works. Looks like Gaia caches the clish history of a logged in admin and stores it into &lt;FONT face="courier new,courier"&gt;~/.clish_history&lt;/FONT&gt;&amp;nbsp;on logout. So editing &lt;FONT face="courier new,courier"&gt;~/.clish_history&lt;/FONT&gt; with the same admin account is not working (&lt;EM&gt;or probably working only by temp. changing the CLI to /bin/bash to login without loading the Clish environment, thus make the edit of the Clish history effective&lt;/EM&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:43:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/176700#M7583</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-03-30T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a specific entry from Gaia's Clish history?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/176712#M7584</link>
      <description>&lt;P&gt;Yes, history is written on logout. I made a &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Clishtory/m-p/164323#M7333" target="_blank" rel="noopener"&gt;simple tool&lt;/A&gt; a while ago to check all histories to see now and then if people didn't put sensitive stuff in environments with a lot of users. Clish commands are also logged in /var/log/messages so could benefit from a syslog export and analysis tool.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 09:52:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-delete-a-specific-entry-from-Gaia-s-Clish-history/m-p/176712#M7584</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2023-03-30T09:52:51Z</dc:date>
    </item>
  </channel>
</rss>

