<?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 Audit script in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Audit-script/m-p/270886#M1485</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Happy weekend!&lt;/P&gt;
&lt;P&gt;If someone would be willing to try attached script, be free to let me know if results seem accurate or not? I tested in the lab and seemed more less right. It essentially gives clish commands and also audit for the last 30 days. I wont paste all I got, but here is the snipper and then very end.&lt;/P&gt;
&lt;P&gt;Lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./audit-history.sh&lt;BR /&gt;============================================================&lt;BR /&gt;Check Point Gaia - Admin/Audit activity (last 30 days)&lt;BR /&gt;Host: CP-GW&lt;BR /&gt;Generated: Sat Feb 14 13:22:57 EST 2026&lt;BR /&gt;============================================================&lt;/P&gt;
&lt;P&gt;-------------------- CLISH HISTORY -------------------------&lt;BR /&gt;CmdNo Command&lt;BR /&gt;2 show dns primary&lt;BR /&gt;3 show dns secondary&lt;BR /&gt;4 show dns tertiary&lt;BR /&gt;5 show Notes:&lt;BR /&gt;6 show allowed-client all&lt;BR /&gt;7 show version all&lt;BR /&gt;8 show interfaces all&lt;BR /&gt;9 show route&lt;BR /&gt;10 show arp dynamic all&lt;BR /&gt;11 show vpn tunnels&lt;BR /&gt;12 show arp dynamic all&lt;BR /&gt;13 show arp static all&lt;BR /&gt;14 show arp proxy all&lt;BR /&gt;15 show version all&lt;BR /&gt;16 show interfaces&lt;BR /&gt;17 show route&lt;BR /&gt;18 show uptime&lt;BR /&gt;19 show asset all&lt;BR /&gt;20 show snapshots&lt;BR /&gt;21 show backups&lt;BR /&gt;22 show-config state&lt;BR /&gt;23 show version all&lt;BR /&gt;24 show asset all&lt;BR /&gt;25 show asset all&lt;BR /&gt;26 show configuration&lt;BR /&gt;27 show version all&lt;BR /&gt;28 show sysenv all&lt;BR /&gt;29 show sam status&lt;BR /&gt;30 show config-state&lt;BR /&gt;31 show config-state&lt;BR /&gt;32 show installer status&lt;BR /&gt;33 show sam status&lt;BR /&gt;34 show version all&lt;BR /&gt;35 show configuration&lt;BR /&gt;36 show configuration&lt;BR /&gt;37 show configuration&lt;BR /&gt;38 show configuration&lt;BR /&gt;39 show configuration&lt;BR /&gt;40 show configuration&lt;BR /&gt;41 show configuration&lt;BR /&gt;42 show configuration&lt;BR /&gt;43 show configuration&lt;BR /&gt;44 show configuration&lt;BR /&gt;45 show configuration&lt;BR /&gt;46 show configuration&lt;BR /&gt;47 show version all&lt;BR /&gt;48 show password-controls all&lt;BR /&gt;49 show configuration&lt;BR /&gt;50 show password-controls min-password-length&lt;BR /&gt;51 show password-controls all&lt;BR /&gt;52 show configuration&lt;BR /&gt;53 show password-controls min-password-length&lt;BR /&gt;54 show password-controls all&lt;BR /&gt;55 show configuration&lt;BR /&gt;56 show password-controls min-password-length&lt;BR /&gt;57 show password-controls all&lt;BR /&gt;58 show configuration&lt;BR /&gt;59 show password-controls min-password-length&lt;BR /&gt;60 show version all&lt;BR /&gt;61 show ntp active&lt;BR /&gt;62 show ntp servers&lt;BR /&gt;63 show allowed-client all&lt;BR /&gt;64 show ssh server password-authentication&lt;BR /&gt;65 show ssh server permit-root-login&lt;BR /&gt;66 show version all&lt;BR /&gt;67 show version all&lt;BR /&gt;68 show domainname&lt;BR /&gt;69 show dns suffix&lt;BR /&gt;70 show dns primary&lt;BR /&gt;71 show dns secondary&lt;BR /&gt;72 show dns tertiary&lt;BR /&gt;73 show interface erspan0&lt;BR /&gt;74 show interface erspan0&lt;BR /&gt;75 show interface eth0&lt;BR /&gt;76 show interface eth0&lt;BR /&gt;77 show interface eth1&lt;BR /&gt;78 show interface eth1&lt;BR /&gt;79 show interface eth2&lt;BR /&gt;80 show interface eth2&lt;BR /&gt;81 show interface eth2.100&lt;BR /&gt;82 show interface eth2.100&lt;BR /&gt;83 show interface gre0&lt;BR /&gt;84 show interface gre0&lt;BR /&gt;85 show interface gretap0&lt;BR /&gt;86 show interface gretap0&lt;BR /&gt;87 show interfaces&lt;BR /&gt;88 show interfaces&lt;BR /&gt;89 show version all&lt;BR /&gt;90 show asset all&lt;BR /&gt;91 show sysenv all&lt;BR /&gt;92 show version all&lt;BR /&gt;93 show management interface&lt;BR /&gt;94 show interfaces&lt;BR /&gt;95 show dns&lt;BR /&gt;96 show ntp servers&lt;BR /&gt;97 show ntp active&lt;BR /&gt;98 show allowed-client all&lt;BR /&gt;99 exit&lt;BR /&gt;100 history&lt;BR /&gt;101 history&lt;/P&gt;
&lt;P&gt;---------------- SYSTEM/AUDIT LOG HITS ---------------------&lt;BR /&gt;Files scanned (recently modified):&lt;BR /&gt;- /var/log/messages&lt;BR /&gt;- /var/log/messages.1&lt;BR /&gt;- /var/log/messages.2&lt;BR /&gt;- /var/log/messages.3&lt;BR /&gt;- /var/log/messages.4&lt;BR /&gt;- /var/log/messages.5&lt;BR /&gt;- /var/log/messages.6&lt;BR /&gt;- /var/log/messages.7&lt;BR /&gt;- /var/log/secure&lt;/P&gt;
&lt;P&gt;Matches (filtered by last 30 days + regex: (audit|Audit|clish|gclish|WebUI|syslog|sudo|COMMAND=|sshd|login|logged in|logout|cpconfig|cpstop|cpstart|installer|expert|dbedit|mgmt_cli|api|policy|install)):&lt;/P&gt;
&lt;P&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 91%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 92%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 93%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 94%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 95%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 96%&lt;BR /&gt;Feb 14 11:48:49 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 97%&lt;BR /&gt;Feb 14 11:48:51 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 98%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 0%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 2%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 3%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: adm&lt;/P&gt;
&lt;P&gt;Notes:&lt;BR /&gt;- Gaia 'Audit' syslog category covers admin operations from WebUI and Gaia Clish. [1](&lt;A href="https://sc1.checkpoint.com/documents/Appliances/Quantum_Spark_R82.00.X/AdminGuides_Locally_Managed/EN/Content/Topics/Viewing-System-Logs.htm" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/Appliances/Quantum_Spark_R82.00.X/AdminGuides_Locally_Managed/EN/Content/Topics/Viewing-System-Logs.htm&lt;/A&gt;)&lt;BR /&gt;- If your appliance rotated/purged logs earlier, older entries may be missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Feb 2026 18:28:13 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2026-02-14T18:28:13Z</dc:date>
    <item>
      <title>Audit script</title>
      <link>https://community.checkpoint.com/t5/Scripts/Audit-script/m-p/270886#M1485</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Happy weekend!&lt;/P&gt;
&lt;P&gt;If someone would be willing to try attached script, be free to let me know if results seem accurate or not? I tested in the lab and seemed more less right. It essentially gives clish commands and also audit for the last 30 days. I wont paste all I got, but here is the snipper and then very end.&lt;/P&gt;
&lt;P&gt;Lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./audit-history.sh&lt;BR /&gt;============================================================&lt;BR /&gt;Check Point Gaia - Admin/Audit activity (last 30 days)&lt;BR /&gt;Host: CP-GW&lt;BR /&gt;Generated: Sat Feb 14 13:22:57 EST 2026&lt;BR /&gt;============================================================&lt;/P&gt;
&lt;P&gt;-------------------- CLISH HISTORY -------------------------&lt;BR /&gt;CmdNo Command&lt;BR /&gt;2 show dns primary&lt;BR /&gt;3 show dns secondary&lt;BR /&gt;4 show dns tertiary&lt;BR /&gt;5 show Notes:&lt;BR /&gt;6 show allowed-client all&lt;BR /&gt;7 show version all&lt;BR /&gt;8 show interfaces all&lt;BR /&gt;9 show route&lt;BR /&gt;10 show arp dynamic all&lt;BR /&gt;11 show vpn tunnels&lt;BR /&gt;12 show arp dynamic all&lt;BR /&gt;13 show arp static all&lt;BR /&gt;14 show arp proxy all&lt;BR /&gt;15 show version all&lt;BR /&gt;16 show interfaces&lt;BR /&gt;17 show route&lt;BR /&gt;18 show uptime&lt;BR /&gt;19 show asset all&lt;BR /&gt;20 show snapshots&lt;BR /&gt;21 show backups&lt;BR /&gt;22 show-config state&lt;BR /&gt;23 show version all&lt;BR /&gt;24 show asset all&lt;BR /&gt;25 show asset all&lt;BR /&gt;26 show configuration&lt;BR /&gt;27 show version all&lt;BR /&gt;28 show sysenv all&lt;BR /&gt;29 show sam status&lt;BR /&gt;30 show config-state&lt;BR /&gt;31 show config-state&lt;BR /&gt;32 show installer status&lt;BR /&gt;33 show sam status&lt;BR /&gt;34 show version all&lt;BR /&gt;35 show configuration&lt;BR /&gt;36 show configuration&lt;BR /&gt;37 show configuration&lt;BR /&gt;38 show configuration&lt;BR /&gt;39 show configuration&lt;BR /&gt;40 show configuration&lt;BR /&gt;41 show configuration&lt;BR /&gt;42 show configuration&lt;BR /&gt;43 show configuration&lt;BR /&gt;44 show configuration&lt;BR /&gt;45 show configuration&lt;BR /&gt;46 show configuration&lt;BR /&gt;47 show version all&lt;BR /&gt;48 show password-controls all&lt;BR /&gt;49 show configuration&lt;BR /&gt;50 show password-controls min-password-length&lt;BR /&gt;51 show password-controls all&lt;BR /&gt;52 show configuration&lt;BR /&gt;53 show password-controls min-password-length&lt;BR /&gt;54 show password-controls all&lt;BR /&gt;55 show configuration&lt;BR /&gt;56 show password-controls min-password-length&lt;BR /&gt;57 show password-controls all&lt;BR /&gt;58 show configuration&lt;BR /&gt;59 show password-controls min-password-length&lt;BR /&gt;60 show version all&lt;BR /&gt;61 show ntp active&lt;BR /&gt;62 show ntp servers&lt;BR /&gt;63 show allowed-client all&lt;BR /&gt;64 show ssh server password-authentication&lt;BR /&gt;65 show ssh server permit-root-login&lt;BR /&gt;66 show version all&lt;BR /&gt;67 show version all&lt;BR /&gt;68 show domainname&lt;BR /&gt;69 show dns suffix&lt;BR /&gt;70 show dns primary&lt;BR /&gt;71 show dns secondary&lt;BR /&gt;72 show dns tertiary&lt;BR /&gt;73 show interface erspan0&lt;BR /&gt;74 show interface erspan0&lt;BR /&gt;75 show interface eth0&lt;BR /&gt;76 show interface eth0&lt;BR /&gt;77 show interface eth1&lt;BR /&gt;78 show interface eth1&lt;BR /&gt;79 show interface eth2&lt;BR /&gt;80 show interface eth2&lt;BR /&gt;81 show interface eth2.100&lt;BR /&gt;82 show interface eth2.100&lt;BR /&gt;83 show interface gre0&lt;BR /&gt;84 show interface gre0&lt;BR /&gt;85 show interface gretap0&lt;BR /&gt;86 show interface gretap0&lt;BR /&gt;87 show interfaces&lt;BR /&gt;88 show interfaces&lt;BR /&gt;89 show version all&lt;BR /&gt;90 show asset all&lt;BR /&gt;91 show sysenv all&lt;BR /&gt;92 show version all&lt;BR /&gt;93 show management interface&lt;BR /&gt;94 show interfaces&lt;BR /&gt;95 show dns&lt;BR /&gt;96 show ntp servers&lt;BR /&gt;97 show ntp active&lt;BR /&gt;98 show allowed-client all&lt;BR /&gt;99 exit&lt;BR /&gt;100 history&lt;BR /&gt;101 history&lt;/P&gt;
&lt;P&gt;---------------- SYSTEM/AUDIT LOG HITS ---------------------&lt;BR /&gt;Files scanned (recently modified):&lt;BR /&gt;- /var/log/messages&lt;BR /&gt;- /var/log/messages.1&lt;BR /&gt;- /var/log/messages.2&lt;BR /&gt;- /var/log/messages.3&lt;BR /&gt;- /var/log/messages.4&lt;BR /&gt;- /var/log/messages.5&lt;BR /&gt;- /var/log/messages.6&lt;BR /&gt;- /var/log/messages.7&lt;BR /&gt;- /var/log/secure&lt;/P&gt;
&lt;P&gt;Matches (filtered by last 30 days + regex: (audit|Audit|clish|gclish|WebUI|syslog|sudo|COMMAND=|sshd|login|logged in|logout|cpconfig|cpstop|cpstart|installer|expert|dbedit|mgmt_cli|api|policy|install)):&lt;/P&gt;
&lt;P&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 91%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 92%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 93%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 94%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 95%&lt;BR /&gt;Feb 14 11:48:48 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 96%&lt;BR /&gt;Feb 14 11:48:49 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 97%&lt;BR /&gt;Feb 14 11:48:51 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Validating candidates 98%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 0%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 2%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: admin localhost t +installer:update_status_message Processing candidates 3%&lt;BR /&gt;Feb 14 11:48:52 2026 CP-GW xpand[10825]: adm&lt;/P&gt;
&lt;P&gt;Notes:&lt;BR /&gt;- Gaia 'Audit' syslog category covers admin operations from WebUI and Gaia Clish. [1](&lt;A href="https://sc1.checkpoint.com/documents/Appliances/Quantum_Spark_R82.00.X/AdminGuides_Locally_Managed/EN/Content/Topics/Viewing-System-Logs.htm" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/Appliances/Quantum_Spark_R82.00.X/AdminGuides_Locally_Managed/EN/Content/Topics/Viewing-System-Logs.htm&lt;/A&gt;)&lt;BR /&gt;- If your appliance rotated/purged logs earlier, older entries may be missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Feb 2026 18:28:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Audit-script/m-p/270886#M1485</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-14T18:28:13Z</dc:date>
    </item>
  </channel>
</rss>

