<?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 User ID Count in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167661#M1399</link>
    <description>&lt;P&gt;Im using this operational command to pull out the number of &lt;SPAN&gt;mapped&lt;/SPAN&gt; users by the user id:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;show&amp;gt;&amp;lt;user&amp;gt;&amp;lt;ip-user-mapping&amp;gt;&amp;lt;all&amp;gt;&amp;lt;option&amp;gt;count&amp;lt;/option&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/ip-user-mapping&amp;gt;&amp;lt;/user&amp;gt;&amp;lt;/show&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was working fine till I upgraded to PAN OS 8.&lt;/P&gt;&lt;P&gt;the operational command&amp;nbsp;&lt;EM&gt;&amp;lt;show&amp;gt;&amp;lt;user&amp;gt;&amp;lt;ip-user-mapping&amp;gt;&amp;lt;all&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/ip-user-mapping&amp;gt;&amp;lt;/user&amp;gt;&amp;lt;/show&amp;gt;&amp;nbsp;&lt;/EM&gt;still give the correct result (i have to strip the count option out) but the output is way to large since it also show all of the users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug, or is there a new way to find only the number of mapped&amp;nbsp;users?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 10:06:42 GMT</pubDate>
    <dc:creator>Sjoerd</dc:creator>
    <dc:date>2017-07-21T10:06:42Z</dc:date>
    <item>
      <title>User ID Count</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167661#M1399</link>
      <description>&lt;P&gt;Im using this operational command to pull out the number of &lt;SPAN&gt;mapped&lt;/SPAN&gt; users by the user id:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;show&amp;gt;&amp;lt;user&amp;gt;&amp;lt;ip-user-mapping&amp;gt;&amp;lt;all&amp;gt;&amp;lt;option&amp;gt;count&amp;lt;/option&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/ip-user-mapping&amp;gt;&amp;lt;/user&amp;gt;&amp;lt;/show&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was working fine till I upgraded to PAN OS 8.&lt;/P&gt;&lt;P&gt;the operational command&amp;nbsp;&lt;EM&gt;&amp;lt;show&amp;gt;&amp;lt;user&amp;gt;&amp;lt;ip-user-mapping&amp;gt;&amp;lt;all&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/ip-user-mapping&amp;gt;&amp;lt;/user&amp;gt;&amp;lt;/show&amp;gt;&amp;nbsp;&lt;/EM&gt;still give the correct result (i have to strip the count option out) but the output is way to large since it also show all of the users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug, or is there a new way to find only the number of mapped&amp;nbsp;users?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 10:06:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167661#M1399</guid>
      <dc:creator>Sjoerd</dc:creator>
      <dc:date>2017-07-21T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: User ID Count</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167727#M1400</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/39365"&gt;@Sjoerd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The count option should still be working perfectly fine in PAN 8 OS 8. I can run it on my PA-200 and PA-220 in my lab and get the user count perfectly fine. You might be running into something on your box that is preventing you from getting the output. If you run it directly from the CLI do you get the proper output?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 16:45:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167727#M1400</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2017-07-21T16:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: User ID Count</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167737#M1401</link>
      <description>&lt;P&gt;I was able to verify this as well ("show user ip-user-mapping all option count" returns nothing for PAN-OS 8.0, but does for PAN-OS 7.1). However, as you said, "show user ip-user-mapping all" does return the count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran both queries against PAN-OS 8.0 100 times (4000+ user mappings on firewall)&lt;/P&gt;&lt;P&gt;"show user ip-user-mapping all option count" averages&amp;nbsp;0.108 seconds&lt;/P&gt;&lt;P&gt;"show user ip-user-mapping all" averages 0.207 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being that the difference is only 0.1 seconds, you should be able to do the same function as before by doing the&amp;nbsp;"show user ip-user-mapping all" by parsing the XML for the count. If you're using Python, the xml.etree.ElementTree native library should take care of this easily.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 16:56:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/user-id-count/m-p/167737#M1401</guid>
      <dc:creator>nigelswift</dc:creator>
      <dc:date>2017-07-21T16:56:37Z</dc:date>
    </item>
  </channel>
</rss>

