<?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: logged in admin count Panorama in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1258#M970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RESTAPI.&amp;nbsp; Here is one method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The username and password for this firewall is 'admin'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, get an API key:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl --insecure &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.30.1.131/api/?type=keygen\&amp;amp;user='admin'\&amp;amp;password='admin"&gt;https://10.30.1.131/api/?type=keygen\&amp;amp;user='admin'\&amp;amp;password='admin&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which returns:&lt;/P&gt;&lt;P&gt;&amp;lt;response status = 'success'&amp;gt;&amp;lt;result&amp;gt;&amp;lt;key&amp;gt;LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;lt;/key&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, take the key and use it in the following query:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl --insecure &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.30.1.131/api/?type=op\&amp;amp;key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09\&amp;amp;cmd="&gt;https://10.30.1.131/api/?type=op\&amp;amp;key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09\&amp;amp;cmd=&lt;/A&gt;&lt;SPAN&gt;'&amp;lt;show&amp;gt;&amp;lt;admins&amp;gt;&amp;lt;/admins&amp;gt;&amp;lt;/show&amp;gt;' | sed 's/&amp;lt;entry&amp;gt;/\'$'\n/g' | wc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the number of admins currently logged in.&amp;nbsp; The sed command is just looking for the "&amp;lt;entry&amp;gt;" tag and replacing it with a new line so we can then pipe the output to 'wc' (counts lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently there is no way to just get a count from the GUI or command line.&amp;nbsp; You can use the API from a web browser too, I just chose the use curl in this example so I could manipulate the output for a simple count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-chadd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 23:40:08 GMT</pubDate>
    <dc:creator>cchristiansen</dc:creator>
    <dc:date>2013-07-17T23:40:08Z</dc:date>
    <item>
      <title>logged in admin count Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1257#M969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how can we see the admins already logged in to Panorama&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we use show admins or Dahsboard it is hard to count.There are many admins we just need number of admins logged in realtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 22:21:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1257#M969</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2013-07-17T22:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: logged in admin count Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1258#M970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RESTAPI.&amp;nbsp; Here is one method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The username and password for this firewall is 'admin'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, get an API key:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl --insecure &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.30.1.131/api/?type=keygen\&amp;amp;user='admin'\&amp;amp;password='admin"&gt;https://10.30.1.131/api/?type=keygen\&amp;amp;user='admin'\&amp;amp;password='admin&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which returns:&lt;/P&gt;&lt;P&gt;&amp;lt;response status = 'success'&amp;gt;&amp;lt;result&amp;gt;&amp;lt;key&amp;gt;LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09&amp;lt;/key&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, take the key and use it in the following query:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl --insecure &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.30.1.131/api/?type=op\&amp;amp;key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09\&amp;amp;cmd="&gt;https://10.30.1.131/api/?type=op\&amp;amp;key=LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09\&amp;amp;cmd=&lt;/A&gt;&lt;SPAN&gt;'&amp;lt;show&amp;gt;&amp;lt;admins&amp;gt;&amp;lt;/admins&amp;gt;&amp;lt;/show&amp;gt;' | sed 's/&amp;lt;entry&amp;gt;/\'$'\n/g' | wc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the number of admins currently logged in.&amp;nbsp; The sed command is just looking for the "&amp;lt;entry&amp;gt;" tag and replacing it with a new line so we can then pipe the output to 'wc' (counts lines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently there is no way to just get a count from the GUI or command line.&amp;nbsp; You can use the API from a web browser too, I just chose the use curl in this example so I could manipulate the output for a simple count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-chadd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 23:40:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1258#M970</guid>
      <dc:creator>cchristiansen</dc:creator>
      <dc:date>2013-07-17T23:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: logged in admin count Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1259#M971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;P&gt;can we use sed 's/&amp;lt;entry&amp;gt;/\'$'\n/g' | wc&amp;nbsp; also with web browser API, I tried the link it did now work firs but&amp;nbsp; after I have to clear some " \" to see the logged in admins.it worked.&lt;/P&gt;&lt;P&gt;for the count maybe I have to edit that somehow....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 16:01:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/logged-in-admin-count-panorama/m-p/1259#M971</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2013-07-18T16:01:47Z</dc:date>
    </item>
  </channel>
</rss>

