05-07-2017 09:38 PM
Hi ,
I find it quite difficult to find any yang module related to particular operation.I would like to know if there is any simple way to get a yang module based on a particular cli command.
Ex: How do i get the output using yang module based on below cli command?
Cli-->
RP/0/RP0/CPU0:Router#dir harddisk:
Mon May 8 00:10:28.134 EDT
Directory of harddisk:
20 drwxr-xr-x 2 4096 Jul 1 2016 dumper
17 drwxrwxrwx 5 4096 May 3 20:12 cisco_support
16 drwxr-xr-x 2 4096 Jul 1 2016 ipodwdm_log
173 -rwxr--r-- 1 19950459 Mar 9 14:29 aib_pd_all.txt
129025 drwxr-xr-x 2 4096 Aug 14 2016 ncs5500-r611104I
108 -rwx------ 1 57865 Feb 8 13:21 dedsdf1103jl1-02082017
170 -rw-r--r-- 1 82771 Mar 2 19:08 show_watchdog_trace_23691.by.11.20170302-190838.xr-vm_node0_RP0_CPU0.ce860.core.txt
33 -rwxr--r-- 1 63670 May 7 03:12 Certlab-dedsdf1011jl1-2017-05-07_03-11.bak
39 -rwxr--r-- 1 497 Mar 19 10:09 CTS-dedsdf1103jl1-2017-03-19_14-04.ver
38 -rwxr--r-- 1 1384618 Apr 19 18:27 cleaf1_show_logging.c2
129675 drwxr-xr-x 2 4096 Apr 17 21:03 showtech-bgp-2017-Apr-17.210314.EDT
129533 drw-r--r-- 2 4096 Mar 10 12:16 ATTip41875
11 drwx------ 2 16384 Jul 1 2016 lost+found
110 -rwx------ 1 57091 Feb 6 08:23 dedsdf1103jl1_Feb62017
129486 drwxr-xr-x 3 4096 Sep 25 2016 var
55 -rw-r--r-- 1 117127 Apr 19 18:33 cleaf1_show_tech_arp.c2.tgz
57 -rw-r--r-- 1 83445 Apr 19 18:34 cleaf1_show_tech_spp.c2.tgz
52 -rwxr--r-- 1 679137 Apr 19 19:15 netio_trace.c1
12 drwxr-xr-x 2 4096 Jul 1 2016 tftpboot
107 -rwx------ 1 61169 Mar 1 13:17 dedsdf1003jl1-sh-run-03012017
60 -rw-r--r-- 1 68443 Apr 19 18:38 cleaf1_show_tech_spio.c2.tgz
104 -rwx------ 1 57202 Jan 30 11:47 dedsdf1103jl1-013017
59 -rw-r--r-- 1 1585250 Apr 19 18:37 cleaf1_show_tech_support_cef.c2.tgz
42 -rwxr--r-- 1 497 Mar 20 09:32 CTS-dedsdf1013jl1-2017-03-20_13-28.ver
40 -rwxr--r-- 1 21001 Mar 19 10:09 CTS-dedsdf1103jl1-2017-03-19_14-04.txt
31 -rwxr--r-- 1 20068 May 7 07:08 CTS-dedsdf1011jl1-2017-05-07_11-04.txt
51 -rw-r--r-- 1 285261 Apr 19 17:59 show_tech_support_routing_bgp_c1.tgz
75 drwxr-xr-x 11 4096 Apr 20 11:04 showtech
28 -rwxr--r-- 1 63670 May 7 07:08 CTS-dedsdf1011jl1-2017-05-07_11-04.bak
111 -rwx------ 1 57091 Feb 6 08:24 dedsdf1103jl1-sh-run-02062017
56 -rw-r--r-- 1 774115 Mar 27 17:20 sh-tech-lpts-032717.tgz
54 -rw-r--r-- 1 305774 Apr 19 18:32 cleaf1_show_tech_bgp.c2.tgz
45 -rw-r--r-- 1 92160 May 7 03:13 Certlab-dedsdf1011jl1-2017-05-07_03-12.tar
14 drwxr-xr-x 2 4096 Jul 1 2016 shutdown
174 -rwxr--r-- 1 1916414 Mar 9 14:29 show_log.txt
26 -rwx------ 1 64830 Apr 19 13:53 04192017
58 -rw-r--r-- 1 2253950 Apr 19 18:36 cleaf1_show_tech_l2vpn_platform.c2.tgz
96 -rw-r--r-- 1 674323 Jan 30 10:47 showtech-lpts-2017-Jan-30.104517.EST.tgz
43 -rwxr--r-- 1 21001 Mar 20 09:33 CTS-dedsdf1013jl1-2017-03-20_13-28.txt
44 -rwxr--r-- 1 20068 May 7 03:12 Certlab-dedsdf1011jl1-2017-05-07_03-11.txt
32 -rwxr--r-- 1 1152808960 Apr 19 13:55 6131_13i.tar
53 -rw-r--r-- 1 528006 Apr 19 18:28 cleaf1_show_tech_evpn.c2.tgz
162 -rwx------ 1 59988 Mar 2 15:40 dedsdf1103jl1-03022017
13 drwxr-xr-x 2 4096 Jul 1 2016 nvram
30 -rwxr--r-- 1 501 May 7 07:08 CTS-dedsdf1011jl1-2017-05-07_11-04.ver
61 -rw-r--r-- 1 612865 Apr 19 18:40 cleaf1_show_tech_l2vpn.c2.tgz
15 -rw-r--r-- 1 132 Apr 19 19:22 oor_aware_process
177 -rwxr--r-- 1 145701 Mar 9 14:29 ppinfo_consumer.txt
41 -rwxr--r-- 1 58035 Mar 20 09:32 CTS-dedsdf1013jl1-2017-03-20_13-28.bak
63 -rwxr--r-- 1 320625 Apr 19 19:22 l2vpn_trace.txt
37 -rwxr--r-- 1 17551360 Apr 19 14:07 6131_13i-smuv2.tar
35 -rwxr--r-- 1 57859 Mar 19 10:09 CTS-dedsdf1103jl1-2017-03-19_14-04.bak
36 -rwxr--r-- 1 500 May 7 03:12 Certlab-dedsdf1011jl1-2017-05-07_03-11.ver
5831720 kbytes total (3941356 kbytes free)
RP/0/RP0/CPU0:Router#
Thank you,
Nithin
Solved! Go to Solution.
05-17-2017 09:03 AM
Operational models provide a super set of the collective information provided by all show commands for a given software component. In some cases, I agree the amount of information may feel overwhelming. In many cases, locating the operational data is pretty straight forward. Here are some examples that look to replication show commands using YDK. You may find them useful.
I have some additional examples for LDP, RIB and BGP that I hope to post in a few weeks. HTH.
05-17-2017 09:03 AM
Operational models provide a super set of the collective information provided by all show commands for a given software component. In some cases, I agree the amount of information may feel overwhelming. In many cases, locating the operational data is pretty straight forward. Here are some examples that look to replication show commands using YDK. You may find them useful.
I have some additional examples for LDP, RIB and BGP that I hope to post in a few weeks. HTH.
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