<?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: Manage policies using CLI from a computer in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29944#M21878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello IKT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer bellow CLI guide, it has all required configuration command.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/docs/DOC-6601" style="font-size: 10pt; line-height: 1.5em;" title="https://live.paloaltonetworks.com/docs/DOC-6601"&gt;https://live.paloaltonetworks.com/docs/DOC-6601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know for additional queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hardik Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 14:49:35 GMT</pubDate>
    <dc:creator>hshah</dc:creator>
    <dc:date>2014-09-26T14:49:35Z</dc:date>
    <item>
      <title>Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29940#M21874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to programmatically toggle our PA500's&amp;nbsp; GUI setting "Policies / Captive Portal / My_CP_Policy / Action" between "no-captive-portal" and "web-form" from a windows server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that this is possible using CLI remotely, but where can I find documentation how to setup everything for a task like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for help on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Tor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:12:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29940#M21874</guid>
      <dc:creator>LCMember4427</dc:creator>
      <dc:date>2014-09-26T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29941#M21875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could accomplish this with an API or an expect script, but would you mind elaborating on why you need to toggle the setting for a single policy, maybe there's a different way to achieve what you need &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/docs/DOC-3117"&gt;Finding API Commands&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:38:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29941#M21875</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2014-09-26T09:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29942#M21876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is for a high school environment.&amp;nbsp; We switch on user auth for network access when some classes are having tests or exams.&amp;nbsp; Memberships in certain AD user groups govern the network access (intranet only, LMS site on internet etc) according to policies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I don't want to bug my users with the CP login dialog unless some class is really needing to restrict access.&amp;nbsp; That's why I need to switch the CP policy action between web form and none.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 10:04:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29942#M21876</guid>
      <dc:creator>LCMember4427</dc:creator>
      <dc:date>2014-09-26T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29943#M21877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're just going to do it manually from the CLI, you can just go to configure mode and use the following command "&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;set rulebase captive-portal rules MY_CP_Policy action no-captive-portal" (command will vary a bit if you have enabled vsys on your device).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then trigger a commit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are going to use the API, you could easily find the restapi url using the API-browser at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://firewallIIP/api" rel="nofollow"&gt;https://firewallIIP/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It will be somehting like this: &lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif';"&gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/captive-portal/rules/entry[@name='MY_CP_Policy']/action/member[@name='no-captive-portal']&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 12:26:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29943#M21877</guid>
      <dc:creator>torm</dc:creator>
      <dc:date>2014-09-26T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29944#M21878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello IKT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer bellow CLI guide, it has all required configuration command.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/docs/DOC-6601" style="font-size: 10pt; line-height: 1.5em;" title="https://live.paloaltonetworks.com/docs/DOC-6601"&gt;https://live.paloaltonetworks.com/docs/DOC-6601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know for additional queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hardik Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:49:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29944#M21878</guid>
      <dc:creator>hshah</dc:creator>
      <dc:date>2014-09-26T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Manage policies using CLI from a computer</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29945#M21879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think API will be the best solution for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:15:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/manage-policies-using-cli-from-a-computer/m-p/29945#M21879</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2014-09-26T15:15:11Z</dc:date>
    </item>
  </channel>
</rss>

