<?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 Invoke ISE RestAPI example through Linux cURL in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595986#M526280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;Hi ISE Experts,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;Can anybody show me an example of using Linux cURL to invoke ISE “Authenticated Sessions List” RESTAPI?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;One of my customer wants to retrieve a list of all currently active authenticated sessions using ISE “Authenticated Sessions List” REST API. Since they’re operating this action in a 3&lt;SUP&gt;rd&lt;/SUP&gt; party device based on Linux, one of the workaround is to use &lt;STRONG&gt;cURL&lt;/STRONG&gt;. We find no examples to show what is the correct Curl format so we just try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;$curl &lt;A href="https://acme123/admin/API/mnt/Session/AuthList/null/null" style="color: #954f72;"&gt;https://acme123/admin/API/mnt/Session/AuthList/null/null&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;And following error messages show:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;* Closing connection #0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Is this format incorrect or I need to enable RestAPI function in ISE or I need to add some parameters to curl command? How can I add authentication username/password to curl command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Lei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2018 08:33:48 GMT</pubDate>
    <dc:creator>leis2</dc:creator>
    <dc:date>2018-01-25T08:33:48Z</dc:date>
    <item>
      <title>Invoke ISE RestAPI example through Linux cURL</title>
      <link>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595986#M526280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;Hi ISE Experts,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;STRONG style="font-size: 11pt;"&gt;Can anybody show me an example of using Linux cURL to invoke ISE “Authenticated Sessions List” RESTAPI?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;One of my customer wants to retrieve a list of all currently active authenticated sessions using ISE “Authenticated Sessions List” REST API. Since they’re operating this action in a 3&lt;SUP&gt;rd&lt;/SUP&gt; party device based on Linux, one of the workaround is to use &lt;STRONG&gt;cURL&lt;/STRONG&gt;. We find no examples to show what is the correct Curl format so we just try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;$curl &lt;A href="https://acme123/admin/API/mnt/Session/AuthList/null/null" style="color: #954f72;"&gt;https://acme123/admin/API/mnt/Session/AuthList/null/null&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;And following error messages show:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;* Closing connection #0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Is this format incorrect or I need to enable RestAPI function in ISE or I need to add some parameters to curl command? How can I add authentication username/password to curl command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;Lei&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 08:33:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595986#M526280</guid>
      <dc:creator>leis2</dc:creator>
      <dc:date>2018-01-25T08:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke ISE RestAPI example through Linux cURL</title>
      <link>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595987#M526281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to ensure that the certs are trusted and signed.&amp;nbsp; In my less secure example, I am bypassing the cert validation via -k.&amp;nbsp; There are additional curl options for setting TLS and other values as needed.&amp;nbsp; This worked in my lab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# curl -k -u admin:password &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mnt&amp;gt;/admin/API/mnt/Session/AuthList/null/null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also had to escape special characters in my password by preceding them with "\".&amp;nbsp; There are other more secure ways to embed the credentials with curl, such as retrieving them from a file so not exposing them in the script or CLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2018 14:20:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595987#M526281</guid>
      <dc:creator>Craig Hyps</dc:creator>
      <dc:date>2018-01-25T14:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke ISE RestAPI example through Linux cURL</title>
      <link>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595988#M526282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks Craig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let customer try this and feedback later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 00:56:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595988#M526282</guid>
      <dc:creator>leis2</dc:creator>
      <dc:date>2018-01-26T00:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke ISE RestAPI example through Linux cURL</title>
      <link>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595989#M526284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The protocol error indicated your cURL client defaulted to SSLv2 or v3. You might need to upgrade your cURL. More recent ISE releases accept only TLS 1.1 and 1.2 and the cURL options for those are (per curl man page):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --tlsv1.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TLS) Forces curl to use TLS version 1.1 when connecting to a remote TLS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Added in 7.34.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --tlsv1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TLS) Forces curl to use TLS version 1.2 when connecting to a remote TLS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Added in 7.34.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:09:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/invoke-ise-restapi-example-through-linux-curl/m-p/3595989#M526284</guid>
      <dc:creator>hslai</dc:creator>
      <dc:date>2018-01-26T01:09:27Z</dc:date>
    </item>
  </channel>
</rss>

