cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1383
Views
0
Helpful
0
Replies

Configure Authentication Banner through NETCONF message on CSR v1000

ahooper239
Level 1
Level 1

I have a Cisco CSR v1000 that I'm pushing configuration changes to through a NETCONF shell.  The one configuration that I cannot seem to get to work is to apply an authentication banner.  When I open a normal SSH shell, I can execute the following commands:

aaa new-model

aaa authentication banner * THIS IS A BANNER *

 

The following also works:
banner login *THIS IS A BANNER*

 

However, when sending those same commands over a NETCONF shell, the router does not even acknowledge that I sent a message.  Here is what I tried:

 
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="MSG-1553525397987">
  <edit-config>
    <target>
      <running />
    </target>
    <config>
      <cli-config-data>
        <cmd>aaa new-model</cmd>
        <cmd>aaa authentication banner *THIS IS A BANNER *</cmd>
      </cli-config-data>
    </config>
  </edit-config>
</rpc>]]>]]

And this: 

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="MSG-1553525397987">
  <edit-config>
    <target>
      <running />
    </target>
    <config>
      <cli-config-data>
        <cmd>login banner *THIS IS BRUCE BANNER*</cmd>
      </cli-config-data>
    </config>
  </edit-config>
</rpc>]]>]]

Am I missing something here?

0 Replies 0