[c-nsp] IOS XR and Netconf Operational Data

Aaron dudepron at gmail.com
Mon May 2 12:23:24 EDT 2016


There are some changes in the config with 5.3.3.

Try this as a basic setting
control-plane
 management-plane
  out-of-band
   interface MgmtEth0/RSP0/CPU0/0
    allow SSH
    allow SNMP
    allow NETCONF
   !
   interface MgmtEth0/RSP1/CPU0/0
    allow SSH
    allow SNMP
    allow NETCONF
   !
  !
 !
!
ssh server v2
ssh server netconf port 890
ssh server netconf vrf default
netconf agent tty
!
netconf-yang agent ssh

Note: I changed the default netconf port


Then you should be able to access via
 ssh -l <$USER> <$ROUTER> -p 890 -s netconf

testing at lab:~$ ssh -l testing 200.x.x.x: -p 890 -s netconf
testing at 200.x.x.x's password:
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <capabilities>
  <capability>urn:ietf:params:netconf:base:1.1</capability>

<capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring</capability>
  <capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>

<capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
  <capability>urn:ietf:params:netconf:capability:validate:1.1</capability>

<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.1</capability>

This opens an interactive session.


On Mon, May 2, 2016 at 12:09 PM, chip <chip.gwyn at gmail.com> wrote:

> Running 5.3.3 in the lab.
>
> On Mon, May 2, 2016 at 12:08 PM, Mikael Abrahamsson <swmike at swm.pp.se>
> wrote:
>
> > On Mon, 2 May 2016, chip wrote:
> >
> >  Anyone have any example code or pointers to docs that spell this out or
> >> at least point to how to determine the request to make. Bonus if its
> python
> >> or perl.  I've made several tools using NETCONF with the Juniper kit
> but am
> >> having trouble with Cisco.
> >>
> >
> > What version of XR are you trying to do this with?
> >
> > --
> > Mikael Abrahamsson    email: swmike at swm.pp.se
> >
>
>
>
> --
> Just my $.02, your mileage may vary,  batteries not included, etc....
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>


More information about the cisco-nsp mailing list