06-22-2021 02:41 AM
Hi Team,
I am using a virtual router using Cisco ISO image (c8000v-universalk9.17.05.01a) deployed on a VM. The version information on the virtual router is as below -
#show version
Cisco IOS XE Software, Version 17.05.01a
Cisco IOS Software [Bengaluru], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.5.1a, RELEASE SOFTWARE (fc3)
I created a few Telemetry subscriptions on it following the steps from the Cisco document
#enable #conf t Enter configuration commands, one per line. End with CNTL/Z. (config)#telemetry ietf subscription 201 (config-mdt-subs)#stream yang-push (config-mdt-subs)#filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds (config-mdt-subs)#update-policy periodic 2000 (config-mdt-subs)#encoding encode-kvgpb (config-mdt-subs)#source-address xx.xx.xx.xx (config-mdt-subs)#receiver ip address xx.xx.xx.xx 57500 protocol grpc-tcp (config-mdt-subs)#end
Unfortunately, the state for all subscriptions appear as Invalid
#show telemetry ietf subscription all Telemetry subscription brief ID Type State Filter type -------------------------------------------------------- 101 Configured Invalid xpath 201 Configured Invalid xpath 301 Configured Invalid xpath
When I list subscription detail for anyone, it has Notes saying "Schema currently not available:" for the sensor path (xpath).
#show telemetry ietf subscription 201 detail Telemetry subscription detail: Subscription ID: 201 Type: Configured State: Invalid Stream: yang-push Filter: Filter type: xpath XPath: /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds Update policy: Update Trigger: periodic Period: 2000 Encoding: encode-kvgpb Source VRF: Source Address: xx.xx.xx.xx Notes: Schema currently not available: '/process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds'. Legacy Receivers: Address Port Protocol Protocol Profile ----------------------------------------------------------------------------------------- xx.xx.xx.xx 57500 grpc-tcp
Any idea/input on what is going wrong here?
Thanks,
Deepak Ladha
Solved! Go to Solution.
06-22-2021 12:14 PM
@Deepak Ladha20 never seen this note error before. Is netconf-yang CLI enabled?
Show run | I netconf or con t > netconf-yang ?
06-22-2021 12:14 PM
@Deepak Ladha20 never seen this note error before. Is netconf-yang CLI enabled?
Show run | I netconf or con t > netconf-yang ?
06-22-2021 06:48 PM
Thanks @bigevilbeard
netconf-yang was not enabled and so I enabled it. Saved the configuration and created a new subscription but the result is the same. State is still Invalid.
I am just wondering if these schemas have any issue if run on virtual routers?
06-23-2021 04:53 AM
I gave it some time after enabling netconf-yang, and then it worked.
Not sure why it needed extra time though
06-23-2021 04:55 AM
@Deepak Ladha20 thanks for the update - I have seen some delays in tear down and re-enabling this. Glad this is now working for you!
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