<?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 Need a little help with PAN::API on Linux in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/need-a-little-help-with-pan-api-on-linux/m-p/16265#M425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just installed the User-ID API PAN::API system on my Linux server to pass wireless syslog information to a Palo Alto User-ID Agent.&amp;nbsp; The problem is the User-ID Agent does see the connection from Linux, but does not post the passed user logon data.&amp;nbsp; The test Perl script is very small;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;/P&gt;&lt;P&gt;use warnings;&lt;/P&gt;&lt;P&gt;use diagnostics;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use PAN::API;&lt;/P&gt;&lt;P&gt;my $uid = PAN::API::UID-&amp;gt;new('10.1x.2xx.1xx');&lt;/P&gt;&lt;P&gt;$uid-&amp;gt;add('logon','DOMAIN\somename', '10.7x.3x.1xx');&lt;/P&gt;&lt;P&gt;$uid-&amp;gt;submit();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "Done\n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the User-ID Agent log shows the connection, but no passed data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | New xml api connection 10.1x.2xx.1xx : 57990: -2068154446&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api thread 0 from 10.1x.2xx.1xx : 57990 is started.&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Event: type="XML API connection" name=" 10.1x.2xx.1xx" status="Connected"&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Device thread 0 send server status 10.1x.2xx.1xx : 57990 Connected (XML API)&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api thread 0 accept finished&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | XML api thread 0 SSL no certificate&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Event: type="XML API connection" name="10.1x.2xx.1xx" status="Disconnected"&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | XML api thread 0 exists&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api connection 10.1x.2xx.1xx : 57990 closed.&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | All XML api connection stopped!&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Device thread 0 send server status 10.1x.2xx.1xx : 57990 Disconnected (XML API)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Perl program throws no errors and everything ~looks~ fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how one would go about troubleshooting thi issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 18:03:26 GMT</pubDate>
    <dc:creator>EdCricket</dc:creator>
    <dc:date>2012-05-24T18:03:26Z</dc:date>
    <item>
      <title>Need a little help with PAN::API on Linux</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/need-a-little-help-with-pan-api-on-linux/m-p/16265#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just installed the User-ID API PAN::API system on my Linux server to pass wireless syslog information to a Palo Alto User-ID Agent.&amp;nbsp; The problem is the User-ID Agent does see the connection from Linux, but does not post the passed user logon data.&amp;nbsp; The test Perl script is very small;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;/P&gt;&lt;P&gt;use warnings;&lt;/P&gt;&lt;P&gt;use diagnostics;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use PAN::API;&lt;/P&gt;&lt;P&gt;my $uid = PAN::API::UID-&amp;gt;new('10.1x.2xx.1xx');&lt;/P&gt;&lt;P&gt;$uid-&amp;gt;add('logon','DOMAIN\somename', '10.7x.3x.1xx');&lt;/P&gt;&lt;P&gt;$uid-&amp;gt;submit();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print "Done\n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the User-ID Agent log shows the connection, but no passed data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | New xml api connection 10.1x.2xx.1xx : 57990: -2068154446&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api thread 0 from 10.1x.2xx.1xx : 57990 is started.&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Event: type="XML API connection" name=" 10.1x.2xx.1xx" status="Connected"&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Device thread 0 send server status 10.1x.2xx.1xx : 57990 Connected (XML API)&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api thread 0 accept finished&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | XML api thread 0 SSL no certificate&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Event: type="XML API connection" name="10.1x.2xx.1xx" status="Disconnected"&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | XML api thread 0 exists&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | XML api connection 10.1x.2xx.1xx : 57990 closed.&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | All XML api connection stopped!&lt;/P&gt;&lt;P&gt;05/25/12&amp;nbsp; 11:46:34&amp;nbsp; |&amp;nbsp; Debug | Device thread 0 send server status 10.1x.2xx.1xx : 57990 Disconnected (XML API)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Perl program throws no errors and everything ~looks~ fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how one would go about troubleshooting thi issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 18:03:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/need-a-little-help-with-pan-api-on-linux/m-p/16265#M425</guid>
      <dc:creator>EdCricket</dc:creator>
      <dc:date>2012-05-24T18:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need a little help with PAN::API on Linux</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/need-a-little-help-with-pan-api-on-linux/m-p/16266#M426</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;there is a mistake in your script:&lt;/P&gt;&lt;P&gt;you write "logon" instead of "login"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;$class-&amp;gt;login($username,$ipaddress);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Arial, Helvetica, sans-serif;"&gt;$class-&amp;gt;add($eventtype,$username,$ipaddress);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; background-color: #ffffff; font-family: Arial, Helvetica, sans-serif;"&gt;the event type can be login or logout, in this doc:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1662" __jive_macro_name="document" class="jive_macro jive_macro_document" href="https://live.paloaltonetworks.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a mistake. try to use -&amp;gt;login() and -&amp;gt;logout() function instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 13:28:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/need-a-little-help-with-pan-api-on-linux/m-p/16266#M426</guid>
      <dc:creator>cviaud</dc:creator>
      <dc:date>2012-11-14T13:28:46Z</dc:date>
    </item>
  </channel>
</rss>

