<?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 Debugging ISE ERS errors in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3336343#M553020</link>
    <description>&lt;P&gt;I'm trying to use the ISE ERS to create a networkdevice (ISE 2.2). &amp;nbsp;Any hints debugging a "&lt;SPAN&gt;405 Method Not Allowed" response? &amp;nbsp;I'm guessing my JSON data is bad, but a pointer to what is wrong would be very helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 18:46:32 GMT</pubDate>
    <dc:creator>kevink707</dc:creator>
    <dc:date>2020-02-21T18:46:32Z</dc:date>
    <item>
      <title>Debugging ISE ERS errors</title>
      <link>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3336343#M553020</link>
      <description>&lt;P&gt;I'm trying to use the ISE ERS to create a networkdevice (ISE 2.2). &amp;nbsp;Any hints debugging a "&lt;SPAN&gt;405 Method Not Allowed" response? &amp;nbsp;I'm guessing my JSON data is bad, but a pointer to what is wrong would be very helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:46:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3336343#M553020</guid>
      <dc:creator>kevink707</dc:creator>
      <dc:date>2020-02-21T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging ISE ERS errors</title>
      <link>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3336712#M553042</link>
      <description>&lt;P&gt;Reading through the error details:&lt;/P&gt;
&lt;H3&gt;10.4.6 405 Method Not Allowed&lt;/H3&gt;
&lt;P&gt;The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an Allow header containing a list of valid methods for the requested resource.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd suggest you to match your ERS query with this document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.network-node.com/blog/2016/4/19/ise-rest-api-goodbye-click-click-click-click-part-2" target="_blank"&gt;https://www.network-node.com/blog/2016/4/19/ise-rest-api-goodbye-click-click-click-click-part-2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:30:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3336712#M553042</guid>
      <dc:creator>Jatin Katyal</dc:creator>
      <dc:date>2018-02-23T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging ISE ERS errors</title>
      <link>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3337005#M553060</link>
      <description>&lt;P&gt;I tried the create network device group example in &lt;A href="https://www.network-node.com/blog/2016/4/19/ise-rest-api-goodbye-click-click-click-click-part-2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.network-node.com/blog/2016/4/19/ise-rest-api-goodbye-click-click-click-click-part-2&lt;/A&gt;&amp;nbsp;and still get a 405 Method Not Allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my script:&lt;/P&gt;
&lt;PRE&gt;#! /usr/bin/perl

# Create a network device group in Cisco ISE

use warnings;
use strict;
use LWP::UserAgent;
use Data::Dumper;

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; # Do not check SSL certs

my $myname = $0;
$myname =~ s/.*\///;

my $username = shift;
my $password = shift;
my $hostname = shift;
die "Usage: $myname username password hostname" unless ($username &amp;amp;&amp;amp; $password &amp;amp;&amp;amp; $hostname);

my $url = "https://${username}:${password}\@${hostname}:9060/ers/config/networkdevicegroup";

my $group_xml = '
    &amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
    &amp;lt;ns4:networkdevicegroup 
        description="Campus Switches" 
        id="000000011" 
        name="Device Type#All Device Types#Switches" 
        xmlns:ers="ers.ise.cisco.com" 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        xmlns:ns4="network.ers.ise.cisco.com"&amp;gt;
    &amp;lt;type&amp;gt;Device Type&amp;lt;/type&amp;gt;
    &amp;lt;/ns4:networkdevicegroup&amp;gt;
';

my $ua = LWP::UserAgent-&amp;gt;new;
$ua-&amp;gt;agent("$myname/1.0 ");
$ua-&amp;gt;default_header('Accept' =&amp;gt; 'application/xml');
$ua-&amp;gt;default_header('Content-Type' =&amp;gt; 'application/vnd.com.cisco.ise.identity.internaluser.1.0+xml;charset=UTF-8');

my $res = $ua-&amp;gt;put($url,Content =&amp;gt; $group_xml);
if (!$res-&amp;gt;is_success) {
    die "Update using $url failed with: ".$res-&amp;gt;status_line;
}

print Dumper($res-&amp;gt;content);
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 00:05:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/debugging-ise-ers-errors/m-p/3337005#M553060</guid>
      <dc:creator>kevink707</dc:creator>
      <dc:date>2018-02-24T00:05:47Z</dc:date>
    </item>
  </channel>
</rss>

