12-05-2018 03:18 PM
Hi,
I've been trying to get Netconf-yang up and running on some 3850 switches - running XE16.6.4.
The setup instructions at https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/configuring_yang_datamodel.html up to Configuring NETCONF-YANG step 3 work (ie.
(config)# netconf-yang
work, and after also enabling the http-server, I get all the processes going:
#show platform software yang-management process confd : Running nesd : Running syncfd : Running ncsshd : Running dmiauthd : Running vtyserverutild : Running opdatamgrd : Running nginx : Running ndbmand : Running pubd : Running
but after that, none of the other commands appear to work:
(config)#netconf-yang feature candidate-datastore ^ % Invalid input detected at '^' marker.
I can connect via ssh to port 830 and get a long list of capabilities, but when I try a simple rpc command, it bombs out:
$ ssh -p 830 -s user@switch netconf user@switch's password: <?xml version="1.0" encoding="UTF-8"?> <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <capabilities> <capability>urn:ietf:params:netconf:base:1.0</capability> <capability>urn:ietf:params:netconf:base:1.1</capability> <capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability> <capability>urn:ietf:params:netconf:capability:xpath:1.0</capability> ... 331 capabilities deleted ... <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&revision=2011-06-01</capability> <capability> urn:ietf:params:netconf:capability:notification:1.1 </capability> </capabilities> <session-id>16722</session-id></hello>]]>]]><?xml version="1.0" encoding="utf-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <cisco-ia:save-config xmlns:cisco-ia="http://cisco.com/yang/cisco-ia"/> </rpc> <!-- Error: bad element: /rpc (closing session) -->
$
The same occurs with many other rpc code examples in the cisco docs.
I also tried yang-explorer but it too returns little or no data from the platform. Looks like the same thing is going on under the hood there.
Is netconf-yang fully supported on this platform and IOS combination? The documents are a bit vague, but since all the processes seem to be running one would think at least some configuration and operation data would be accessible.
Or have I missed an important configuration step?
Thanks,
Daniel
09-18-2019 06:48 AM
I am running on IOS 16.6.1 in 3850-24T series . When I configured the netconf-yang model in the switch I still see the process are not running. Any help is much appreciated.
confd : Not Running
nesd : Not Running
syncfd : Not Running
ncsshd : Not Running
dmiauthd : Not Running
vtyserverutild : Not Running
opdatamgrd : Not Running
nginx : Running
ndbmand : Not Running
pubd : Not Running
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide