{"id":520,"date":"2024-10-16T06:12:26","date_gmt":"2024-10-16T06:12:26","guid":{"rendered":"https:\/\/blog.devops955.com\/swain\/?p=520"},"modified":"2024-10-16T06:12:34","modified_gmt":"2024-10-16T06:12:34","slug":"ccnp-encor-350-401-part6","status":"publish","type":"post","link":"https:\/\/blog.devops955.com\/swain\/zh\/2024\/10\/16\/ccnp-encor-350-401-part6\/","title":{"rendered":"CCNP ENCOR 350-401 \u2013 Part 6"},"content":{"rendered":"<blockquote>\n<p>\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4: 6\u5206\u949f<\/p>\n<\/blockquote>\n<h1><strong>Automation\uff0815%\uff09<\/strong><\/h1>\n<h2>Interpret basic Python components and scripts<\/h2>\n<h3><strong>\u57fa\u672cPython\u7ec4\u4ef6<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u6570\u636e\u7c7b\u578b<\/strong>\uff1a\u4e86\u89e3\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5982\u6574\u6570\uff08int\uff09\u3001\u6d6e\u70b9\u6570\uff08float\uff09\u3001\u5b57\u7b26\u4e32\uff08str\uff09\u3001\u5217\u8868\uff08list\uff09\u3001\u5b57\u5178\uff08dict\uff09\u7b49\u3002<\/li>\n<li><strong>\u63a7\u5236\u7ed3\u6784<\/strong>\uff1a\u638c\u63e1\u6761\u4ef6\u8bed\u53e5\uff08if-else\uff09\u3001\u5faa\u73af\uff08for\u3001while\uff09\u7b49\u57fa\u672c\u63a7\u5236\u7ed3\u6784\u3002<\/li>\n<li><strong>\u51fd\u6570<\/strong>\uff1a\u5b66\u4e60\u5b9a\u4e49\u548c\u8c03\u7528\u51fd\u6570\uff0c\u7406\u89e3\u53c2\u6570\u548c\u8fd4\u56de\u503c\u7684\u4f7f\u7528\u3002<\/li>\n<li><strong>\u6a21\u5757\u548c\u5305<\/strong>\uff1a\u4e86\u89e3\u5982\u4f55\u5bfc\u5165\u548c\u4f7f\u7528Python\u7684\u5185\u7f6e\u6a21\u5757\u548c\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982<code>os<\/code>\u3001<code>sys<\/code>\u3001<code>json<\/code>\u7b49\u3002<\/li>\n<\/ul>\n<h3><strong>\u811a\u672c\u89e3\u91ca<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u6ce8\u91ca<\/strong>\uff1a\u7406\u89e3\u811a\u672c\u4e2d\u7684\u6ce8\u91ca\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/li>\n<li><strong>\u53d8\u91cf<\/strong>\uff1a\u8bc6\u522b\u548c\u7406\u89e3\u811a\u672c\u4e2d\u53d8\u91cf\u7684\u5b9a\u4e49\u548c\u4f7f\u7528\u3002<\/li>\n<li><strong>\u5f02\u5e38\u5904\u7406<\/strong>\uff1a\u4e86\u89e3\u57fa\u672c\u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08try-except\uff09\u3002<\/li>\n<\/ul>\n<h2>Construct valid JSON-encoded files<\/h2>\n<h3><strong>JSON\u57fa\u672c\u6982\u5ff5<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u5b9a\u4e49<\/strong>\uff1a\u7406\u89e3JSON\uff08JavaScript Object Notation\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u6613\u4e8e\u4eba\u9605\u8bfb\u548c\u7f16\u5199\uff0c\u540c\u65f6\u6613\u4e8e\u673a\u5668\u89e3\u6790\u548c\u751f\u6210\u3002<\/li>\n<li><strong>\u6570\u636e\u7ed3\u6784<\/strong>\uff1a\u4e86\u89e3JSON\u7684\u57fa\u672c\u6570\u636e\u7ed3\u6784\uff0c\u5305\u62ec\u5bf9\u8c61\uff08key-value\u5bf9\uff09\u548c\u6570\u7ec4\uff08\u5217\u8868\uff09\u3002<\/li>\n<\/ul>\n<h3><strong>\u6784\u5efa\u6709\u6548\u7684JSON\u6587\u4ef6<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u8bed\u6cd5<\/strong>\uff1a\u719f\u6089JSON\u7684\u8bed\u6cd5\u89c4\u5219\uff0c\u5982\u53cc\u5f15\u53f7\u3001\u9017\u53f7\u5206\u9694\u7b49\u3002<\/li>\n<li><strong>\u9a8c\u8bc1\u5de5\u5177<\/strong>\uff1a\u4f7f\u7528\u5728\u7ebf\u5de5\u5177\u6216Python\u5e93\uff08\u5982<code>json<\/code>\uff09\u9a8c\u8bc1JSON\u6587\u4ef6\u7684\u6b63\u786e\u6027\u3002<\/li>\n<\/ul>\n<h2>Describe the high-level principles and benefits of a data modeling language, such as YANG<\/h2>\n<h3><strong>\u6570\u636e\u5efa\u6a21\u8bed\u8a00<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u5b9a\u4e49<\/strong>\uff1a\u7406\u89e3\u6570\u636e\u5efa\u6a21\u8bed\u8a00\uff08\u5982YANG\uff0cYet Another Next Generation\uff09\u7528\u4e8e\u5b9a\u4e49\u7f51\u7edc\u8bbe\u5907\u548c\u670d\u52a1\u7684\u914d\u7f6e\u548c\u72b6\u6001\u6570\u636e\u6a21\u578b\u3002<\/li>\n<li><strong>\u57fa\u672c\u6982\u5ff5<\/strong>\uff1a\u4e86\u89e3YANG\u6a21\u5757\u3001\u53f6\u5b50\u8282\u70b9\u3001\u5bb9\u5668\u3001\u5217\u8868\u7b49\u57fa\u672c\u6982\u5ff5\u3002<\/li>\n<\/ul>\n<h3><strong>\u9ad8\u5c42\u539f\u5219\u548c\u4f18\u52bf<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u4e00\u81f4\u6027<\/strong>\uff1a\u63d0\u4f9b\u4e00\u79cd\u6807\u51c6\u5316\u7684\u65b9\u5f0f\u6765\u63cf\u8ff0\u8bbe\u5907\u914d\u7f6e\u548c\u72b6\u6001\uff0c\u786e\u4fdd\u8de8\u8bbe\u5907\u548c\u4f9b\u5e94\u5546\u7684\u4e00\u81f4\u6027\u3002<\/li>\n<li><strong>\u53ef\u6269\u5c55\u6027<\/strong>\uff1a\u901a\u8fc7\u6a21\u5757\u5316\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6269\u5c55\u6570\u636e\u6a21\u578b\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5316<\/strong>\uff1a\u652f\u6301\u81ea\u52a8\u5316\u5de5\u5177\u548c\u534f\u8bae\uff08\u5982NETCONF\u3001RESTCONF\uff09\u7684\u4f7f\u7528\uff0c\u7b80\u5316\u914d\u7f6e\u548c\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<h2>Describe APIs for Cisco DNA Center and vManage<\/h2>\n<h3><strong>Cisco DNA Center API<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u4e86\u89e3Cisco DNA Center\u63d0\u4f9b\u7684API\uff0c\u53ef\u4ee5\u7528\u4e8e\u8bbe\u5907\u914d\u7f6e\u3001\u76d1\u63a7\u3001\u6545\u969c\u6392\u9664\u3001\u8f6f\u4ef6\u5347\u7ea7\u7b49\u4efb\u52a1\u3002<\/li>\n<li><strong>\u63a5\u53e3\u7c7b\u578b<\/strong>\uff1a\u719f\u6089REST API\u548cWebSocket API\u7684\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<h3><strong>vManage API<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u7406\u89e3Cisco vManage\u63d0\u4f9b\u7684API\uff0c\u7528\u4e8e\u7ba1\u7406\u548c\u914d\u7f6eSD-WAN\u73af\u5883\uff0c\u5305\u62ec\u8bbe\u5907\u7ba1\u7406\u3001\u6a21\u677f\u914d\u7f6e\u3001\u7b56\u7565\u5e94\u7528\u7b49\u3002<\/li>\n<li><strong>\u63a5\u53e3\u7c7b\u578b<\/strong>\uff1a\u719f\u6089REST API\u7684\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<h2>Interpret REST API response codes and results in payload using Cisco DNA Center and RESTCONF<\/h2>\n<h3><strong>REST API\u54cd\u5e94\u4ee3\u7801<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>HTTP\u72b6\u6001\u7801<\/strong>\uff1a\u719f\u6089\u5e38\u89c1\u7684HTTP\u72b6\u6001\u7801\u53ca\u5176\u542b\u4e49\uff0c\u5982200\uff08OK\uff09\u3001201\uff08Created\uff09\u3001400\uff08Bad Request\uff09\u3001401\uff08Unauthorized\uff09\u3001404\uff08Not Found\uff09\u3001500\uff08Internal Server Error\uff09\u7b49\u3002<\/li>\n<\/ul>\n<h3><strong>\u89e3\u6790\u54cd\u5e94\u8d1f\u8f7d<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>JSON\u683c\u5f0f<\/strong>\uff1a\u4e86\u89e3REST API\u54cd\u5e94\u901a\u5e38\u4f7f\u7528JSON\u683c\u5f0f\uff0c\u80fd\u591f\u89e3\u6790\u548c\u7406\u89e3JSON\u8d1f\u8f7d\u4e2d\u7684\u6570\u636e\u3002<\/li>\n<\/ul>\n<h2>Construct an EEM applet to automate configuration, troubleshooting, or data collection<\/h2>\n<h3><strong>EEM\uff08Embedded Event Manager\uff09<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u57fa\u672c\u6982\u5ff5<\/strong>\uff1a\u4e86\u89e3EEM\u662fCisco\u8bbe\u5907\u4e0a\u7684\u4e00\u9879\u7279\u6027\uff0c\u7528\u4e8e\u5728\u8bbe\u5907\u4e0a\u81ea\u52a8\u6267\u884c\u9884\u5b9a\u4e49\u7684\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u7ec4\u4ef6<\/strong>\uff1a\u638c\u63e1EEM\u811a\u672c\u7684\u57fa\u672c\u7ec4\u6210\u90e8\u5206\uff0c\u5305\u62ec\u4e8b\u4ef6\u68c0\u6d4b\u3001\u64cd\u4f5c\u548c\u52a8\u4f5c\u3002<\/li>\n<\/ul>\n<h3><strong>\u914d\u7f6e\u548c\u793a\u4f8b<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u4e8b\u4ef6\u68c0\u6d4b<\/strong>\uff1a\u914d\u7f6eEEM\u4ee5\u76d1\u63a7\u7279\u5b9a\u4e8b\u4ef6\uff08\u5982\u63a5\u53e3\u72b6\u6001\u53d8\u5316\u3001\u65e5\u5fd7\u6d88\u606f\u7b49\uff09\u3002<\/li>\n<li><strong>\u52a8\u4f5c<\/strong>\uff1a\u5b9a\u4e49EEM\u5728\u68c0\u6d4b\u5230\u4e8b\u4ef6\u540e\u6267\u884c\u7684\u52a8\u4f5c\uff08\u5982\u53d1\u9001\u901a\u77e5\u3001\u6536\u96c6\u6570\u636e\u3001\u6267\u884c\u914d\u7f6e\u66f4\u6539\u7b49\uff09\u3002<\/li>\n<\/ul>\n<h2>Compare agent vs. agentless orchestration tools, such as Chef, Puppet, Ansible, and SaltStack<\/h2>\n<h3><strong>\u57fa\u672c\u6982\u5ff5<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u6709\u4ee3\u7406\uff08Agent-based\uff09\u5de5\u5177<\/strong>\uff1a\u5982Chef\u548cPuppet\uff0c\u9700\u8981\u5728\u88ab\u7ba1\u7406\u7684\u8282\u70b9\u4e0a\u5b89\u88c5\u4ee3\u7406\u8f6f\u4ef6\u3002<\/li>\n<li><strong>\u65e0\u4ee3\u7406\uff08Agentless\uff09\u5de5\u5177<\/strong>\uff1a\u5982Ansible\u548cSaltStack\uff0c\u4e0d\u9700\u8981\u5728\u88ab\u7ba1\u7406\u7684\u8282\u70b9\u4e0a\u5b89\u88c5\u4ee3\u7406\u8f6f\u4ef6\uff0c\u901a\u5e38\u901a\u8fc7SSH\u6216\u5176\u4ed6\u534f\u8bae\u76f4\u63a5\u8fdb\u884c\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<h3><strong>\u6bd4\u8f83<\/strong>\uff1a<\/h3>\n<ul>\n<li><strong>\u90e8\u7f72\u590d\u6742\u6027<\/strong>\uff1a\u65e0\u4ee3\u7406\u5de5\u5177\u901a\u5e38\u66f4\u6613\u4e8e\u90e8\u7f72\u548c\u7ef4\u62a4\uff0c\u56e0\u4e3a\u4e0d\u9700\u8981\u5728\u6bcf\u4e2a\u8282\u70b9\u4e0a\u5b89\u88c5\u548c\u7ba1\u7406\u4ee3\u7406\u3002<\/li>\n<li><strong>\u5b9e\u65f6\u6027<\/strong>\uff1a\u6709\u4ee3\u7406\u5de5\u5177\u53ef\u80fd\u63d0\u4f9b\u66f4\u5b9e\u65f6\u7684\u7ba1\u7406\u548c\u76d1\u63a7\u529f\u80fd\uff0c\u56e0\u4e3a\u4ee3\u7406\u53ef\u4ee5\u6301\u7eed\u8fd0\u884c\u548c\u62a5\u544a\u72b6\u6001\u3002<\/li>\n<li><strong>\u6027\u80fd\u548c\u6269\u5c55\u6027<\/strong>\uff1a\u8003\u8651\u5404\u5de5\u5177\u5728\u5927\u89c4\u6a21\u73af\u5883\u4e2d\u7684\u6027\u80fd\u548c\u6269\u5c55\u6027\uff0c\u4ee5\u53ca\u5bf9\u4e0d\u540c\u5e73\u53f0\u548c\u73af\u5883\u7684\u652f\u6301\u3002<\/li>\n<\/ul>\n<h3>\u793a\u4f8b\u5bf9\u6bd4<\/h3>\n<ul>\n<li>\n<p><strong>Chef<\/strong>\uff1a<\/p>\n<ul>\n<li>\u6709\u4ee3\u7406\uff0c\u9700\u8981\u5728\u6bcf\u4e2a\u88ab\u7ba1\u7406\u8282\u70b9\u4e0a\u5b89\u88c5Chef\u5ba2\u6237\u7aef\u3002<\/li>\n<li>\u9002\u7528\u4e8e\u590d\u6742\u7684\u914d\u7f6e\u7ba1\u7406\u548c\u81ea\u52a8\u5316\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Puppet<\/strong>\uff1a<\/p>\n<ul>\n<li>\u6709\u4ee3\u7406\uff0c\u9700\u8981\u5728\u6bcf\u4e2a\u88ab\u7ba1\u7406\u8282\u70b9\u4e0a\u5b89\u88c5Puppet\u4ee3\u7406\u3002<\/li>\n<li>\u63d0\u4f9b\u4e30\u5bcc\u7684\u914d\u7f6e\u7ba1\u7406\u529f\u80fd\u548c\u6a21\u5757\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Ansible<\/strong>\uff1a<\/p>\n<ul>\n<li>\u65e0\u4ee3\u7406\uff0c\u901a\u8fc7SSH\u8fdb\u884c\u7ba1\u7406\u3002<\/li>\n<li>\u6613\u4e8e\u90e8\u7f72\uff0c\u9002\u7528\u4e8e\u5feb\u901f\u914d\u7f6e\u548c\u4e34\u65f6\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>SaltStack<\/strong>\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u6709\u4ee3\u7406\u548c\u65e0\u4ee3\u7406\u4e24\u79cd\u6a21\u5f0f\u3002<\/li>\n<li>\u63d0\u4f9b\u7075\u6d3b\u7684\u914d\u7f6e\u548c\u7ba1\u7406\u9009\u9879\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<br \/>\n<a href=\"https:\/\/www.cisco.com\/c\/en\/us\/products\/ios-nx-os-software\/ios-embedded-event-manager-eem\/index.html\">https:\/\/www.cisco.com\/c\/en\/us\/products\/ios-nx-os-software\/ios-embedded-event-manager-eem\/index.html<\/a><br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\">https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u4e86 CCNP ENCOR 305-401 \u81ea\u52a8\u5316\u90e8\u5206\uff0c\u5305\u62ec\u57fa\u672c\u7684 Python \u7ec4\u4ef6\u3001\u6784\u5efa\u6709\u6548\u7684 JSON \u6587\u4ef6\u4ee5\u53ca\u7528\u4e8e\u7f51\u7edc\u81ea\u52a8\u5316\u7684 YANG \u6570\u636e\u5efa\u6a21\u3002\u5b83\u89e3\u91ca\u4e86 Cisco DNA Center \u548c vManage API\u3001REST API \u54cd\u5e94\u4ee3\u7801\u4ee5\u53ca\u4f7f\u7528 EEM \u5c0f\u7a0b\u5e8f\u81ea\u52a8\u6267\u884c\u7f51\u7edc\u4efb\u52a1\u3002\u672c\u6587\u8fd8\u6bd4\u8f83\u4e86 Chef\u3001Puppet\u3001Ansible \u548c SaltStack \u7b49\u57fa\u4e8e\u4ee3\u7406\u548c\u65e0\u4ee3\u7406\u7684\u7f16\u6392\u5de5\u5177\uff0c\u6982\u8ff0\u4e86\u5b83\u4eec\u7684\u90e8\u7f72\u548c\u529f\u80fd\u5dee\u5f02\u3002<\/p>\n","protected":false},"author":3,"featured_media":447,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[29],"tags":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.devops955.com\/swain\/wp-content\/uploads\/sites\/2\/2024\/04\/cisco-1.png","_links":{"self":[{"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/posts\/520"}],"collection":[{"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":4,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/posts\/520\/revisions\/528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/media\/447"}],"wp:attachment":[{"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/media?parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/categories?post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.devops955.com\/swain\/wp-json\/wp\/v2\/tags?post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}