<?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: Getting SmartConsole settings via CLI in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215202#M35521</link>
    <description>&lt;P&gt;The properties in the screenshot are not considered "Global Properties" and relate to VPN users.&lt;BR /&gt;The screenshot refers to administrator users, which have different API endpoints and different parameters.&lt;/P&gt;
&lt;P&gt;Note that editing anything related to administrators for SmartConsole must be done in the System Domain.&amp;nbsp;&lt;BR /&gt;This means your login action must specify the system domain as shown in the example:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/login~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/login~v1.9.1%20&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;Then you can use e.g. set administrator to change the relevant settings:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-administrator~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-administrator~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't know if those "global" parameters you show in the screenshot have an API endpoint.&lt;BR /&gt;Tagging&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt; in case he knows.&lt;BR /&gt;You might have to use the generic object API (again, against the System Data domain):&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 17:33:33 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-05-24T17:33:33Z</dc:date>
    <item>
      <title>Getting SmartConsole settings via CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215183#M35518</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I try to get information about account settings (Manage&amp;amp;Settings - Permissions&amp;amp;Administrators - Advanced, screenshot 1) in Smart Console via CLI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And there is API-command '&lt;SPAN&gt;mgmt_cli show global-properties'. The output of this command contains the following lines:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;user-accounts:&lt;BR /&gt;expiration-date-method: "expire at"&lt;BR /&gt;expiration-date:&lt;BR /&gt;posix: 1924894800000&lt;BR /&gt;iso-8601: "2030-12-31T00:00+0300"&lt;BR /&gt;days-until-expiration: 900&lt;BR /&gt;show-accounts-expiration-indication-days-in-advance: true&lt;BR /&gt;days-in-advance-to-show-accounts-expiration-indication: 14&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I don't understand what is this, because I have another values in Smart Console..&amp;nbsp; The guide says about '&lt;SPAN&gt;user-accounts' parameter:&lt;/SPAN&gt; "&lt;SPAN&gt;Set the expiration for a user account and configure "about to expire" warnings." but I think it is not very clear.. So where do these values come from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And did I understand correctly that there is no way to get this via CLI? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 13:50:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215183#M35518</guid>
      <dc:creator>emilli_xill</dc:creator>
      <dc:date>2024-05-24T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting SmartConsole settings via CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215202#M35521</link>
      <description>&lt;P&gt;The properties in the screenshot are not considered "Global Properties" and relate to VPN users.&lt;BR /&gt;The screenshot refers to administrator users, which have different API endpoints and different parameters.&lt;/P&gt;
&lt;P&gt;Note that editing anything related to administrators for SmartConsole must be done in the System Domain.&amp;nbsp;&lt;BR /&gt;This means your login action must specify the system domain as shown in the example:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/login~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/login~v1.9.1%20&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;Then you can use e.g. set administrator to change the relevant settings:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-administrator~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-administrator~v1.9.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't know if those "global" parameters you show in the screenshot have an API endpoint.&lt;BR /&gt;Tagging&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt; in case he knows.&lt;BR /&gt;You might have to use the generic object API (again, against the System Data domain):&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Query-Global-Properties-via-CLI/m-p/3766&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:33:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215202#M35521</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-05-24T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting SmartConsole settings via CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215476#M35581</link>
      <description>&lt;P&gt;&lt;SPAN&gt;These settings do not currently have an API endpoint.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use&amp;nbsp;generic object API:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;mgmt_cli -r true -d "System Data" show generic-objects class-name "com.checkpoint.management.mgmt_blade.objects.AuthenticationFailLockSettings" details-level full&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;mgmt_cli -r true -d "System Data" show generic-objects class-name "com.checkpoint.management.mgmt_blade.objects.IdleLogoutSettings" details-level full&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;mgmt_cli -r true -d "System Data" show generic-objects class-name "com.checkpoint.management.mgmt_blade.objects.PasswordPolicySettings" details-level full&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;mgmt_cli -r true -d "System Data" show generic-objects class-name "com.checkpoint.objects.AdminSettings" details-level full&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 11:20:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Getting-SmartConsole-settings-via-CLI/m-p/215476#M35581</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2024-05-29T11:20:39Z</dc:date>
    </item>
  </channel>
</rss>

