Тёмный

Enable and Verify RESTCONF with the CLI and Postman. 

Keith Barker - The OG of IT
Подписаться 185 тыс.
Просмотров 27 тыс.
50% 1

Join Keith as he demonstrates enabling and verifying RESTCONF from the CLI and Postman.
Previous 8 Minute Video 👉 • What is a REST-based A...
CURL or even better Postman.
Router config:
conf t
username admin priv 15 secret Cisco!23
ip http secure-server
ip http authentication local
restconf
int gig 1
ip add 192.168.1.56 255.255.255.0
no shut
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
ip route 0.0.0.0 0.0.0.0 192.168.1.1
router eigrp 1
net 0.0.0.0
end
debug ip http ssl error
remember authentication/authorization
-user "admin:Cisco!23"
remember header:
Content-Type:application/yang-data+json
See the video for the details.
GET:
192.168.1.56/restconf/
192.168.1.56/restconf/data/netconf-state/capabilities
{{host}}/restconf/data/netconf-state/capabilities
192.168.1.56/restconf/data/Cisco-IOS-XE-native:native/
192.168.1.56/restconf/data/Cisco-IOS-XE-native:native/router/
192.168.1.56/restconf/data/Cisco-IOS-XE-native:native/router/router-ospf
192.168.1.56/restconf/data/Cisco-IOS-XE-native:native/interface/
192.168.1.56/restconf/data/Cisco-IOS-XE-native:native/interface/
192.168.1.56/restconf/data/ietf-interfaces:interfaces
192.168.1.56/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces
192.168.1.56/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface=GigabitEthernet1
192.168.1.56/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface=Loopback0
POST:
192.168.1.56/restconf/data/ietf-interfaces:interfaces
Body:
{
"ietf-interfaces:interface": {
"name": "Loopback99",
"type": "iana-if-type:softwareLoopback",
"enabled": true,
"ietf-ip:ipv4": {
"address": [
{
"ip": "99.99.99.99",
"netmask": "255.255.255.255"
}
]
}
}
}
Enjoy, Like, and Subscribe. 😃
Free RU-vid Playlists from Keith:
▶ Master Playlist for Cisco CCNA 200-301 ogit.online/sloth
🔐 Cisco CCNA 200-301 Security ogit.online/20...
💻 Cisco CCNA 200-301 IPv4 Subnetting ogit.online/su...
💬 Join our Discord server (free) ogit.online/Jo...
🏪 Keith Barker Amazon Affiliate Store www.amazon.com...
And…
🏫 Keith’s Content at CBT Nuggets ogit.online/Ke...
#KeithBarker #CCNA #200-301

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 109   
@saumitrakulkarni583
@saumitrakulkarni583 Год назад
I started watching your videos in 2021 to get into networking.. Now I am a cisco trainer at a learning partner organisation.. Everytime prior to my training I see your tutorials 😊❤️ And also copy your teaching style sometimes.. 😁 Thank you Keith.. You've helped alot.. ❤❤
@KeithBarker
@KeithBarker Год назад
Fantastic! Thank you Saumitra kulkarni!
@kalebtheclguy5135
@kalebtheclguy5135 Год назад
​@@KeithBarker😮moo
@Udanoob
@Udanoob 6 месяцев назад
Keith you are THE MAN. I'm currently going through Knox Hutchinson's CBT Nuggets Encor DNA Center workflows and I'm using a Windows 10 VM to communicate with a CSR8000v router in GNS3 using RESTCONF and because of this video I can save the lab and practice myself using Postman and follow along doing it instead of just watching Hutch. This is a game changer! Thanks to you, Jeremy, Knox, and all the guys at CBT Nuggets for all you guys do for the community.
@KeithBarker
@KeithBarker 6 месяцев назад
Thank you @user-rr3fo6hy9q!
@danhorr
@danhorr 2 года назад
Keith Barker - Thank you! This video has provided me with an eureka moment (this time for api, xml & json) similar to the one I had 19 years ago when I finally understood binary and subnet masks. Why I have waited so long is beyond me, but your video just got me enthused and ready to pick up my CCNA DevNet study again!
@KeithBarker
@KeithBarker 2 года назад
Thank you Dan Horridge!
@Sachin-AB
@Sachin-AB 4 года назад
No one can teach better than you .. following since CCNA, CCIP and love the way you explain .. thank you so much for taking time and putting all the information at one place
@KeithBarker
@KeithBarker 4 года назад
Thanks and welcome
@cowboyspace1
@cowboyspace1 Год назад
This guy is the BEST of the BEST. This is great for my ENCOR studies!
@KeithBarker
@KeithBarker Год назад
Thank you cowboyspace1!
@itsAnaMC
@itsAnaMC 3 года назад
Thank you, Keith! I was having trouble, but after watching this I can finally put together POST and PUT requests that actually work. :)
@MuhammadKhan-yl7mt
@MuhammadKhan-yl7mt 4 года назад
Automation is similar to example here. Don't know about other countries, but anyways in UK.. If you have Manual category driving licence, you can drive both manual and automatic cars. But if you got Automatic, you can't drive manual cars. So this give us info, which Keith beautifully explained, when automation breaks, then manual know how is Must. Good to see you Keith, years have gone by, you have the same energy level :) in your style.
@KeithBarker
@KeithBarker 4 года назад
Thank you Muhammad Khan
@sirmontecristo2808
@sirmontecristo2808 4 года назад
Ever since I saw the first Meraki interface, I was fascinated by it and always wandered why Cisco didn't use a web interface to configure their gear. Yes, here comes DNA, for a whopping $70000. So, with our new gear with IOS XE, I have been training to automate networks my self instead of the new CCNP. Don't ask me why.
@KeithBarker
@KeithBarker 4 года назад
Thank you SirMontecristo, sounds amazing. Enjoy the automation journey!
@bakaryk2435
@bakaryk2435 3 года назад
Thanks for the explanation! I had a hard time picturing how an API work from just the CCNA automation course
@KeithBarker
@KeithBarker 3 года назад
Glad it was helpful!
@carlosrr1238
@carlosrr1238 3 года назад
Awesome as always, you're still my hero
@giuseppecarmineilliano8064
@giuseppecarmineilliano8064 5 месяцев назад
Hello Keith, thanks for the video. I belive you should consider making series for the devnet associate exam. There is nobody right now that explains it without asking you to have some programming skills background. I am sure, you can do it.
@jairusan
@jairusan 3 года назад
Thank you very much Keith, super fun, put together the CSR1000v, curl, and postman, really awesome. Automation is here, just need to catch up, Looking forward to continuing learning and soon putting it into practice for real-world daily infrastructure maintenance.
@KeithBarker
@KeithBarker 3 года назад
Nice work!
@peter9591
@peter9591 4 года назад
Love this stuff after spending years doing Cisco routing and switching. So much to learn. Thanks for the Tutorial.
@KeithBarker
@KeithBarker 4 года назад
Very welcome!
@smmstech
@smmstech 3 года назад
These is absolutely amazing and broaden my understanding about REST API
@KeithBarker
@KeithBarker 3 года назад
Thank you Sammie Jnr!
@ssiomos
@ssiomos 4 года назад
Looks like an old dog can learn new tricks! Thanks Keith, you are great with these new tools as always...
@KeithBarker
@KeithBarker 4 года назад
Thanks 👍
@techgeek6773
@techgeek6773 3 года назад
KEITH your are a great man, I like your teaching method.
@KeithBarker
@KeithBarker 3 года назад
I appreciate that!
@fabrice9848
@fabrice9848 3 года назад
Thaaaaaaaaanks a lot sir Keith for sharing such valuable knowledge and doing it in joy and funnyness.
@KeithBarker
@KeithBarker 2 года назад
Glad you enjoyed it
@chrisg1548
@chrisg1548 4 года назад
This class was awesome Keith! Came just in time for my ENCOR studies.
@KeithBarker
@KeithBarker 4 года назад
Thank you, happy studies!
@rudydd5277
@rudydd5277 4 года назад
Amazing GUi. Will be using this when available. Cli still rocks. Thanks
@KeithBarker
@KeithBarker 4 года назад
Enjoy!
@laurentespert1205
@laurentespert1205 9 месяцев назад
Keith, again a big big THANK YOU ! I love your vids Keith. how could an API be of interest ? watch Keith's vids ! again, thank you btw, where is your famous "I hope this has been informative and I'd like to thank you for watching..." ? I'use it sometimes in video calls at work, and when I say that, I know from the smiles I'm seeing that you are well known and appreciated and this is well deserved !
@KeithBarker
@KeithBarker 7 месяцев назад
Thank you @laurentespert1205!
@grahammccann8554
@grahammccann8554 2 года назад
Hi Keith, Great video. Easy to follow thank you for making it.
@KeithBarker
@KeithBarker 2 года назад
Glad it was helpful!
@networkingwithh4716
@networkingwithh4716 4 года назад
Thanks for sharing Keith...
@KeithBarker
@KeithBarker 4 года назад
You are very welcome
@aungkhantmoe6604
@aungkhantmoe6604 3 года назад
Thanks for the video Keith !!!
@GavinTruong
@GavinTruong Год назад
OMG this is the BEST!!!!!!!!!!!!!!!!!!!!!!!!!!!
@KeithBarker
@KeithBarker Год назад
Thank you Gavin T!
@oluolu9699
@oluolu9699 4 года назад
No worries Keith I got it working.
@lancemkhokhelidube6076
@lancemkhokhelidube6076 3 года назад
Thanks man you are clear and accurate...
@KeithBarker
@KeithBarker 3 года назад
Happy to do it, thanks for the feedback Lance Mkhokheli Dube.
@ThePumbaadk
@ThePumbaadk 4 года назад
Thank for a great video, it looks like a “new” way/version of SNMP request
@KeithBarker
@KeithBarker 4 года назад
Glad you liked it!
@Private-GtngxNMBKvYzXyPq
@Private-GtngxNMBKvYzXyPq 3 года назад
Very useful. Thank you.
@KeithBarker
@KeithBarker 3 года назад
Glad it was helpful!
@toshihirokondo8603
@toshihirokondo8603 3 года назад
Than you for a great video!!!
@KeithBarker
@KeithBarker 3 года назад
You are so welcome!
@keithsmith2272
@keithsmith2272 4 года назад
Nice class, thank you.
@KeithBarker
@KeithBarker 4 года назад
Thank you Keith Smith !
@keitharaneta3465
@keitharaneta3465 11 месяцев назад
Hi Keith Great video as always! QUESTION: Can I use RESTCONF either POSTMAN or PYTHON to simulate the application entering the ENABLE SECRET password? looking everywhere could not find how to do it on RESTCONF
@Arayankodesouth
@Arayankodesouth 4 года назад
awesome...great!!! thankyou!!
@KeithBarker
@KeithBarker 4 года назад
You are welcome!
@numantec
@numantec 6 месяцев назад
Hello Thank you so much for this training session , how many Cisco IOS versions series support Rest API/Restconf ?
@khalidansari547
@khalidansari547 4 года назад
thanks keith... very very helpful.... can u define a way from whre i can do hands on automation... for GNS 3 also, from where i can get the IOS for the same.??
@DillyDogSays
@DillyDogSays 2 года назад
How do I understand the get-config replay using Postman and Yang?
@lucas93177
@lucas93177 3 года назад
I hate Cisco for not sharing images for us, the only CSR1000v that's available for download does not suppport it!
@kimasum
@kimasum 4 года назад
Thanks Keith, maybe it’s not a right video to ask such a q but i think i can get your attention while the vid is still warm ;) So .. after my ccna i wanna jump on straight to ccnp enterprise encor and what concentration part I should go with automation or advanced r/s or else ? Thanks again
@kimasum
@kimasum 4 года назад
I mean What the industries are looking for from a fresher ?
@KeithBarker
@KeithBarker 4 года назад
Thank you for the question Bulllet Maz. I would start with the professional level with advanced RS. ENCOR, then ENARSI. Would also encourage you to get some experience after your CCNA, and BEFORE you finish your CCNP. With a little experience, and the CCNP, you will be head and shoulders among most of the entry level technicians. Happy studies, and continued success!
@mikeleggiero
@mikeleggiero 4 года назад
Hi Keith, Great intro to postman. If you had to run the same command to two routers simultaneously, would you create a variable to include both routers or create two individual requests? Thanks
@KeithBarker
@KeithBarker 4 года назад
Thank you for the question Mike Leggiero. I know two separate requests would work, but not sure about the variable option. I am sort of on the beginning stages with my knowledge of APIs and postman.
@jayeshchaudhari5045
@jayeshchaudhari5045 3 года назад
JSON-java script object notation
@madetotravel2022
@madetotravel2022 4 года назад
Hi Keith, thanks for this amazing video. Just one question, How are we going to do it if we want to run these on multiple cisco devices at once? 🙂 Looking forward to your reply!
@KeithBarker
@KeithBarker 4 года назад
Thank you for the question Eliasan Sta. Ana. To apply this to multiple devices, we could use tools such as ansible, that can interact with our devices API(s).
@madetotravel2022
@madetotravel2022 4 года назад
Keith Barker thanks for that information. I’m trying to find any documentation/blog explaining that concept but I didn’t find any. Do you have any resources/blog that you have for ansible + REST CONF automation? Thanks
@kjakobsen
@kjakobsen 3 года назад
Cool technology. Al though my equipment, is not new and or expensive enough to support it. :( Ansible over SSH it is.
@KeithBarker
@KeithBarker 3 года назад
Thank you kjakobsen
@arielsoler8196
@arielsoler8196 3 года назад
Thanks for this video Keith. How can I use Restconf with SSH instead of HTTP?
@hfritz8589
@hfritz8589 2 года назад
anything REST based is, by nature, HTTP protocol, not ssh.
@lancemkhokhelidube6076
@lancemkhokhelidube6076 3 года назад
I feel like you told me what to study but you cant deny or confirm that lol
@pcbona
@pcbona 3 года назад
Cisco really needs to provide a API browser that lets you look up the detailed syntax for all commands. Especially for PUT configuration to the device. Trila and error is just a very shitty way for cisco to deal with these APIs. Its like they would not document any CLI commands and ask you to use the question mark to search for your desired commands.
@KeithBarker
@KeithBarker 3 года назад
Thank you Mario Jost!
@oluolu9699
@oluolu9699 4 года назад
Hi Keith, thanks for this insightful video. I set up this lab, test connection from cmd it work fine, when I tried it from postman I "self signed certificate" error. I have turn on debug i generating any output. What else needs to be look into to get this issue resolved? Thanks
@KeithBarker
@KeithBarker 4 года назад
Thank you for the question Olu. The first time I connected, it saw the error and asked if I wanted to turn off SSL verification. To manually do that in postman, go to settings > General > and set "SSL certificate verification" to off.
@oluolu9699
@oluolu9699 4 года назад
Thanks Keith. I got it figured out. Cheers.
@hectortakami757
@hectortakami757 4 года назад
Hi Keith! I´m new in your channel and I don´t know how to set up a CSR1000 image into EVE-NG. Do you have any videos to do so? Thank you for your help and great video! Greetings from Cisco Mexico :D
@KeithBarker
@KeithBarker 4 года назад
Thank you Hector Takami, here is a link that can walk you through it www.eve-ng.net/index.php/documentation/howtos/howto-add-cisco-csrv1000-16-x-denali-everest-fuji/
@danielwang1201
@danielwang1201 4 года назад
Hi I just want to know if these configurations will be included in CCNA test? How will this part be tested? How to prepare for this part in the test?
@KeithBarker
@KeithBarker 4 года назад
Thank you for the question Daniel Wang. CLI and RESTCONF commands are above the scope of the CCNA, but the concepts shown in section 6 of the blueprint include describing and recognizing some of these tools, and their characteristics.
@danielwang1201
@danielwang1201 4 года назад
@@KeithBarkerThanks for you reply ing. I am currently preparing for the CCNA test and found that it requires a lot efforts in memorizing those concepts or even output of some command. How do you handle this issue ?
@RaulEduardoFloresNajera
@RaulEduardoFloresNajera 4 года назад
hello Keith i have one question for you, my question is I have use POSTMAN application for get some configuration in a test router with Resconf activate, my question is how do you get specific value inside a list in the API key, show the follow example Example API Restconf Path Call: Method: GET {{IP}}:{RESTCONF-PORT}}/restconf/data/Cisco-IOS-XE-native:native/router/router-ospf/ospf/process-id=1/network/ example output in postman: { "Cisco-IOS-XE-ospf:network": [ { "ip": "2.2.2.2", "wildcard": "0.0.0.0", "area": 0 }, { "ip": "3.3.3.3", "wildcard": "0.0.0.0", "area": 0 } ] } I need to return only the ID 3.3.3.3 in the postman output is the second object in that list, (Im need only see the following output... (ip:3.3.3.3)) is it possible or the API depth level does not allow it anymore, I have tried different ways but it always returns the complete list, I only want one item from that list, that is my question for you, I hope I have made myself understood well. thanks for you help, and thanks for the video.
@KeithBarker
@KeithBarker 4 года назад
From Knox: I don’t know the EXACT answer but you can use query strings or go deeper in the URL specifying the exact thing you want Like this "{router['ip']}:{router['port']}/restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface=GigabitEthernet1” So that returns just interface details about Gig1
@RaulEduardoFloresNajera
@RaulEduardoFloresNajera 4 года назад
@@KeithBarker Correct try to do exactly that type of query but inside a list (leaf list in yang) it does not work for me, I already checked the possible filters in the rfc of restconf and I did not find one that works for me to make that filter, I leave that challenge To you and Knox to see if they find how to make that filter directly from the verb http, for the moment I will do it using python, but the challenge is to filter directly from the path in the api, greetings and thanks
@jeffreyoneil7724
@jeffreyoneil7724 3 года назад
drawback is curl works, but Postman states 'Could not get response'
@fabrice9848
@fabrice9848 3 года назад
Can I purchase a shirt with "YG of IT" written on it ?
@ShivaShankar-uu6tq
@ShivaShankar-uu6tq 4 года назад
Hi , i am using ietf-interfaces:interface , is there any way to retrieve a single interface ?
@KeithBarker
@KeithBarker 4 года назад
Not sure, I would have to look that up.
@smmstech
@smmstech 3 года назад
I kept getting SSLv3 failed despite the fact I disabled SSL authentication and also created a self signed certificate
@lestermarcos03
@lestermarcos03 3 года назад
Same with me when i tried to access my restconf enabled CSR on GNS3 via postman and curl. Have you got this working already?
@nicksgarage8295
@nicksgarage8295 4 года назад
thanksa bunch keith. what is your github so we can pull the code!!!!
@KeithBarker
@KeithBarker 4 года назад
github.com/Keith-OGIT/FirstSteps
@stephenmoon2767
@stephenmoon2767 4 года назад
Hi Keith, thanks for this video and the previous intro one, it's taken a lot of the "mystery" out of automation which was making me avoid looking into it!! Only problem now is I've tried to follow your steps and I've hit a hurdle. So I'm using a virtual CSR1000v running on VMware Workstation 15, installed onto a Windows 10 PC and have got it working fine on my home network, can SSH into the CSR from my PC. I've added the config you gave but when I add "ip http secure-server", I get the warning of a temporary certificate being generated on the CSR and when I then try to run a "curl" command 'curl -k 192.168.1.240/restconf/ -u "steve:Cisco!23" ' from my PC I get the following - curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) - This error usually occurs when a fatal SSL/TLS alert is received (e.g. handshake failed). More detail may be available in the Windows System event log. Not much on Google for this error other than manually entering a certificate, which I tried with no joy. So any ideas ?
@KeithBarker
@KeithBarker 4 года назад
Thank you Stephen Moon. I found this, let me know if it was useful: community.letsencrypt.org/t/schannel-failed-to-receive-handshake-need-more-data/99400
@juliojmz82
@juliojmz82 3 года назад
I had the same error, using GNS3, CSRV1000, VMware 16, Windows 10 PC.
@leogp1979
@leogp1979 Год назад
I have the same error, I cannot get information from CSRv1000 , I tested with 2 version of this router, but nothing... do anyone find a solution for it?? or it´s problem of CSRv1000 image???
@fabrice9848
@fabrice9848 3 года назад
Stop saying "whack" for slashes. Whack is for backslashes. Just kidding, please don't change anything.
@javedqwert
@javedqwert 2 года назад
HELP... when i run ip http secure-server i get below error , please help how can we fix the .....CRYPTO_PKI: setting trustpoint policy for TP-self-signed-670387664 to specify TP-self-signed-670387664 keypair usageFailed to generate persistent self-signed certificate. Secure server will use temporary self-signed certificate
@michaelanderson7902
@michaelanderson7902 4 года назад
Thanks for the video Keith.
@KeithBarker
@KeithBarker 4 года назад
Happy to do it, thanks for the feedback Michael
Далее
YANG Explained and Explored | Pyang | DevNet | CCNP
13:36
Harley Quinn is amazing.  #cosplay #joker#Harriet Quinn
00:11
Cisco SD WAN REST APIs Basics
46:55
Просмотров 1,7 тыс.
18 Weird and Wonderful ways I use Docker
26:18
Просмотров 253 тыс.
Getting Started with NETCONF
17:36
Просмотров 56 тыс.
The Problem With Microservices
17:47
Просмотров 434 тыс.
Harley Quinn is amazing.  #cosplay #joker#Harriet Quinn
00:11