<?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: sending user-id logon/logoffss to firewall via PAN-perl in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/127941#M1301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not played with the Perl module, but i have just been playing with Python, and using a external DB source to feed into the User-ID login, and logouts.&lt;/P&gt;&lt;P&gt;There are a few examples on GitHub, but they are mainly Python.&lt;/P&gt;&lt;P&gt;In theory you can do it with perl as it is just RestfulAPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming you are OK with getting the API Key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example of the API request format for the login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://192.168.0.200/api/?key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;amp;type=user-id&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message" target="_blank"&gt;https://192.168.0.200/api/?key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;amp;type=user-id&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message&lt;/A&gt;&amp;gt; &amp;lt;type&amp;gt;update&amp;lt;/type&amp;gt; &amp;lt;payload&amp;gt; &amp;lt;login&amp;gt; &amp;lt;entry name="user1" ip="10.0.0.1"/&amp;gt; &amp;lt;entry name="domain\user2" ip="10.0.0.2"/&amp;gt; &amp;lt;/login&amp;gt; &amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 22:07:04 GMT</pubDate>
    <dc:creator>tmakepeace</dc:creator>
    <dc:date>2016-11-21T22:07:04Z</dc:date>
    <item>
      <title>sending user-id logon/logoffss to firewall via PAN-perl</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/126603#M1287</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Can anyone advise how the PAN-Perl module can be used in per scripts to send user-id mappiungs directly to the firewall? In reading the module, &amp;nbsp;the PAN-Perl module (PAN::XAPI) seems to include every restull api type, except user-id and so I don't seem to be able to send an "action='user-id', xpath= ...user-id&amp;nbsp;xml..." it's not listed in the doc, nor the module as far as I can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can use PAN:API to talk to external agent collectors (which I've tested), but there is a 10-15 second polling period before the Firewall is updated which in my scenario is a touch too&amp;nbsp;long, (and &amp;nbsp;doesn't seem to be changable in config).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 02:06:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/126603#M1287</guid>
      <dc:creator>Jason_Rankin</dc:creator>
      <dc:date>2016-11-16T02:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: sending user-id logon/logoffss to firewall via PAN-perl</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/127941#M1301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not played with the Perl module, but i have just been playing with Python, and using a external DB source to feed into the User-ID login, and logouts.&lt;/P&gt;&lt;P&gt;There are a few examples on GitHub, but they are mainly Python.&lt;/P&gt;&lt;P&gt;In theory you can do it with perl as it is just RestfulAPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming you are OK with getting the API Key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example of the API request format for the login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://192.168.0.200/api/?key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;amp;type=user-id&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message" target="_blank"&gt;https://192.168.0.200/api/?key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;amp;type=user-id&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message&lt;/A&gt;&amp;gt; &amp;lt;type&amp;gt;update&amp;lt;/type&amp;gt; &amp;lt;payload&amp;gt; &amp;lt;login&amp;gt; &amp;lt;entry name="user1" ip="10.0.0.1"/&amp;gt; &amp;lt;entry name="domain\user2" ip="10.0.0.2"/&amp;gt; &amp;lt;/login&amp;gt; &amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 22:07:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/127941#M1301</guid>
      <dc:creator>tmakepeace</dc:creator>
      <dc:date>2016-11-21T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: sending user-id logon/logoffss to firewall via PAN-perl</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/128487#M1305</link>
      <description>&lt;P&gt;You would need to have at least this version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2012-08-30

  - PAN::XAPI, bin/panxapi: add support for updating dynamic objects
    in PAN-OS 5.0 (type=user-id).&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2016 16:32:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/128487#M1305</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2016-11-23T16:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: sending user-id logon/logoffss to firewall via PAN-perl</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/128488#M1306</link>
      <description>&lt;P&gt;This may be helpful:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://api-lab.paloaltonetworks.com/user-ip.html" target="_blank"&gt;http://api-lab.paloaltonetworks.com/user-ip.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 16:35:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/128488#M1306</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2016-11-23T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: sending user-id logon/logoffss to firewall via PAN-perl</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/130116#M1311</link>
      <description>&lt;P&gt;Thanks everyone. Rather than doing direct Rest http calls I was hoping to use PAN::XAPI because it had all the underlying http logic and error handling in simple functions, which simplied things and added reliability for my need. I ended up adding a 15 line subroutine that added $api-&amp;gt;userid($cmd) with the same format as the rest of PAN:XAPIs functions, which solved everthing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 03:56:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/sending-user-id-logon-logoffss-to-firewall-via-pan-perl/m-p/130116#M1311</guid>
      <dc:creator>Jason_Rankin</dc:creator>
      <dc:date>2016-12-01T03:56:11Z</dc:date>
    </item>
  </channel>
</rss>

