<?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: Delete user out of the user agent via API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3087#M2302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, below I attached an example of vbs script I used in order to obtain explicit login/logout from the network client, try to see if they work for you. Simply modify USER-ID agent address+ port. Once launched&amp;nbsp; the script is able to grab domain\user from the local machine ad set the PA login, or the logout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://www.dropbox.com/s/4y2i52ggwd1wmqn/Login-Logout-API.zip" title="https://www.dropbox.com/s/4y2i52ggwd1wmqn/Login-Logout-API.zip"&gt;Dropbox - Login-Logout-API.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also use similar login\logout script integrated with 802.1X wifi enterpirse (Aerohive vendor), if the user is still preset there is surely something tha keeps alive the use connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also with an 5.0.x infrastrucutre you can talk to the PANOS directy using URL like this, without the USER-ID agent broker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;Firewall-IPaddress&amp;gt;/api/?type=user-id&amp;amp;key=&amp;lt;Key Value&amp;gt;&amp;amp;action=set&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message&amp;gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&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="pan\sam1" ip="&amp;lt;Client-IPaddress&amp;gt;"/&amp;gt;&amp;lt;/login&amp;gt;&amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 15:02:10 GMT</pubDate>
    <dc:creator>NGS_SOC</dc:creator>
    <dc:date>2013-05-17T15:02:10Z</dc:date>
    <item>
      <title>Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3084#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I would like to delete a specific user out of the user agent cache via the XML API. Is it possible to do this when the ip user mapping was done by the agent itself (get the user via DC or exchange login). I enabled the user id XML API on the agent and send them this string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;uid-message&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;type&amp;gt;update&amp;lt;/type&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;payload&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;logout&amp;gt;&amp;lt;entry ip="x.x.x.x" name="domainY\userZ"&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/logout&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/payload&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/uid-message&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the response (looks good):&lt;/P&gt;&lt;P&gt;&amp;lt;uid-response&amp;gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;&amp;lt;message&amp;gt;ok&amp;lt;/message&amp;gt;&amp;lt;/uid-response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the log of the user agent I found this entry and the user is still in the user agent and also in the firewall user cache.&lt;/P&gt;&lt;P&gt;05/16/13 10:04:20:787[Debug&amp;nbsp; 374]: XML API IP x.x.x.x(name domainY\userZ) logoff but entry not existed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show user ip-user-mapping ip x.x.x.x&lt;/P&gt;&lt;P&gt;IP address:&amp;nbsp; x.x.x.x (vsys1)&lt;/P&gt;&lt;P&gt;User:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domainY\userZ&lt;/P&gt;&lt;P&gt;From:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIA&lt;/P&gt;&lt;P&gt;Idle Timeout: 2658s&lt;/P&gt;&lt;P&gt;Max. TTL:&amp;nbsp;&amp;nbsp;&amp;nbsp; 2658s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has a hint what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 08:29:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3084#M2299</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-16T08:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3085#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script looks fine, I have an explicit logoff like this in place with 4.1.x and 5.0.x. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The only difference I have is in ip &amp;amp; name order, in mine script is exchanged,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;&amp;lt;logout&amp;gt;&amp;lt;entry name="domainY\user" &lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;ip="x.x.x.x"&lt;/SPAN&gt;&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/logout&amp;gt;&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;&lt;BR /&gt;&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;If you still have user in "show user ip-user-mapping all" list this means that the user still present somewhere and the userid, please verify the user-id logs when loggin off you should have logs like these, where X.X.X. are private ips,&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New xml api connection X.X.X.X : 56522:2010737129.&lt;/P&gt;&lt;P&gt;XML api thread 0 from X.X.X.X : 56522 is started.&lt;/P&gt;&lt;P&gt;Event: type="XML API connection" name="X.X.X.X" status="Connected"&lt;/P&gt;&lt;P&gt;Device thread 0 send server status X.X.X.X : 56522 Connected (XML API)&lt;/P&gt;&lt;P&gt;XML api thread 0 accept finished&lt;/P&gt;&lt;P&gt;XML api thread 0 SSL no certificate&lt;/P&gt;&lt;P&gt;Reading 2 security logs takes 0 ms for DC domain.local.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;XML API IP 192.168.1.11(name DOMAIN\user) logoff.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event: type="XML API connection" name="X.X.X.X" status="Disconnected"&lt;/P&gt;&lt;P&gt;XML api thread 0 exits.&lt;/P&gt;&lt;P&gt;XML api connection X.X.X.X : 56522 closed.&lt;/P&gt;&lt;P&gt;All XML api connection stopped!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:52:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3085#M2300</guid>
      <dc:creator>NGS_SOC</dc:creator>
      <dc:date>2013-05-17T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3086#M2301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NGS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it with switched order of the name and ip already, but without any success. The user agent has the version 5.0.4-5 and the firewall is running on PAN-OS 5.0.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:35:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3086#M2301</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-17T12:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3087#M2302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, below I attached an example of vbs script I used in order to obtain explicit login/logout from the network client, try to see if they work for you. Simply modify USER-ID agent address+ port. Once launched&amp;nbsp; the script is able to grab domain\user from the local machine ad set the PA login, or the logout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://www.dropbox.com/s/4y2i52ggwd1wmqn/Login-Logout-API.zip" title="https://www.dropbox.com/s/4y2i52ggwd1wmqn/Login-Logout-API.zip"&gt;Dropbox - Login-Logout-API.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also use similar login\logout script integrated with 802.1X wifi enterpirse (Aerohive vendor), if the user is still preset there is surely something tha keeps alive the use connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also with an 5.0.x infrastrucutre you can talk to the PANOS directy using URL like this, without the USER-ID agent broker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;Firewall-IPaddress&amp;gt;/api/?type=user-id&amp;amp;key=&amp;lt;Key Value&amp;gt;&amp;amp;action=set&amp;amp;vsys=vsys1&amp;amp;cmd=&amp;lt;uid-message&amp;gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&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="pan\sam1" ip="&amp;lt;Client-IPaddress&amp;gt;"/&amp;gt;&amp;lt;/login&amp;gt;&amp;lt;/payload&amp;gt;&amp;lt;/uid-message&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 15:02:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3087#M2302</guid>
      <dc:creator>NGS_SOC</dc:creator>
      <dc:date>2013-05-17T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3088#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NGS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much. I will try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 06:43:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3088#M2303</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-21T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3089#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NGS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to test your srcipt (good job by the way). But also with your script I did not work. I get the same error in the user agent log.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;[Debug&amp;nbsp; 374]: XML API IP x.x.x.x(name domainY\userZ) logoff but entry not existed.&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: #f8f8f8;"&gt;&lt;BR /&gt;&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: #f8f8f8;"&gt;Regards, Markus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:29:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3089#M2304</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-22T09:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3090#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;[Debug&amp;nbsp; 374]: XML API IP x.x.x.x(name domainY\userZ) logoff but entry not existed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;It seems that &lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;domainY\userZ&lt;/SPAN&gt; was not previously inserted, maybe not in that form. Via show user ip-user-mapping all are you sure to see &lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;domainY\userZ&lt;/SPAN&gt; ? Maybe is like &lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f8f8f8;"&gt;domainY.com\userZ and this is a different string causing me in the past some troubles. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 19:26:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3090#M2305</guid>
      <dc:creator>NGS_SOC</dc:creator>
      <dc:date>2013-05-22T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3091#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this is not the problem. It looks like the problem is that the information is collected via the user agent itself and not the via xml api.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 08:53:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3091#M2306</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-23T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete user out of the user agent via API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3092#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to overwrite the ip-user-mapping collected by the user agent via the xml-api?&lt;/P&gt;&lt;P&gt;It looks like that it is not possible to logout the user via the xml-api when the information is collected by the user agent. When I send a login via the xml-api before the logout it seem to be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 15:23:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/delete-user-out-of-the-user-agent-via-api/m-p/3092#M2307</guid>
      <dc:creator>markuskohlmeier</dc:creator>
      <dc:date>2013-05-27T15:23:43Z</dc:date>
    </item>
  </channel>
</rss>

