<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can we automate the CLI commands? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4636419#M1071</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1348786"&gt;@hrmt92&lt;/a&gt;&amp;nbsp;you can use this just revert the command to shutdown instead of no shutddown&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;URL:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://vmanage-ip:port/dataservice/template/device/cli/" target="_blank" rel="nofollow noopener"&gt;https://vmanage-ip:port/dataservice/template/device/cli/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Method:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;POST&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST Request Parameters:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "templateName": "",
  "templateDescription": "",
  "deviceType": "",
  "templateConfiguration": "",
  "factoryDefault": false,
  "configType": "file"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JSON Payload&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "templateName": "br2_vedge1",
  "templateDescription": "br2_vedge1",
  "deviceType": "vedge-cloud",
  "templateConfiguration": "system\r\n host-name               vedge\r\n admin-tech-on-failure\r\n no route-consistency-check\r\n vbond ztp.viptela.com\r\n aaa\r\n  auth-order local radius tacacs\r\n  usergroup basic\r\n   task system read write\r\n   task interface read write\r\n  !\r\n  usergroup netadmin\r\n  !\r\n  usergroup operator\r\n   task system read\r\n   task interface read\r\n   task policy read\r\n   task routing read\r\n   task security read\r\n  !\r\n  user admin\r\n   password &amp;lt;password-value&amp;gt;\r\n  !\r\n !\r\n logging\r\n  disk\r\n   enable\r\n  !\r\n !\r\n!\r\nomp\r\n no shutdown\r\n graceful-restart\r\n advertise connected\r\n advertise static\r\n!\r\nsecurity\r\n ipsec\r\n  authentication-type ah-sha1-hmac sha1-hmac\r\n !\r\n!\r\nvpn 0\r\n interface ge0/0\r\n  ip dhcp-client\r\n  ipv6 dhcp-client\r\n  tunnel-interface\r\n   encapsulation ipsec\r\n   no allow-service bgp\r\n   allow-service dhcp\r\n   allow-service dns\r\n   allow-service icmp\r\n   no allow-service sshd\r\n   no allow-service netconf\r\n   no allow-service ntp\r\n   no allow-service ospf\r\n   no allow-service stun\r\n   allow-service https\r\n  !\r\n  no shutdown\r\n !\r\n!\r\nvpn 512\r\n interface eth0\r\n  ip address &amp;lt;ip-address/subnet-mask&amp;gt;\r\n  no shutdown\r\n !\r\n ip route 0.0.0.0/0 &amp;lt;ip-address&amp;gt;\r\n!\r\n",
  "factoryDefault": false,
  "configType": "file"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 09:53:12 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2022-06-22T09:53:12Z</dc:date>
    <item>
      <title>Can we automate the CLI commands?</title>
      <link>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4603140#M1068</link>
      <description>&lt;P&gt;I want to automate the process where I have to &lt;STRONG&gt;shut down&lt;/STRONG&gt; a particular interface of vEdge whenever needed using python code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible at all, because I was searching for it in the API documentation and not sure it is there?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 05:37:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4603140#M1068</guid>
      <dc:creator>hrmt92</dc:creator>
      <dc:date>2022-05-02T05:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automate the CLI commands?</title>
      <link>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4603242#M1069</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1348786"&gt;@hrmt92&lt;/a&gt;&amp;nbsp;there isn't a single API if this is what you are looking for. With SD-WAN you would need to attach (POST) a device template, you could use the following API call&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; https://vmanage-ip:port/dataservice/template/device/cli/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample JSON Payload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  "templateName": "br2_vedge1",
  "templateDescription": "br2_vedge1",
  "deviceType": "vedge-cloud",
  "templateConfiguration": "system\r\n host-name               vedge\r\n admin-tech-on-failure\r\n no route-consistency-check\r\n vbond ztp.viptela.com\r\n aaa\r\n  auth-order local radius tacacs\r\n  usergroup basic\r\n   task system read write\r\n   task interface read write\r\n  !\r\n  usergroup netadmin\r\n  !\r\n  usergroup operator\r\n   task system read\r\n   task interface read\r\n   task policy read\r\n   task routing read\r\n   task security read\r\n  !\r\n  user admin\r\n   password &amp;lt;password-value&amp;gt;\r\n  !\r\n !\r\n logging\r\n  disk\r\n   enable\r\n  !\r\n !\r\n!\r\nomp\r\n no shutdown\r\n graceful-restart\r\n advertise connected\r\n advertise static\r\n!\r\nsecurity\r\n ipsec\r\n  authentication-type ah-sha1-hmac sha1-hmac\r\n !\r\n!\r\nvpn 0\r\n interface ge0/0\r\n  ip dhcp-client\r\n  ipv6 dhcp-client\r\n  tunnel-interface\r\n   encapsulation ipsec\r\n   no allow-service bgp\r\n   allow-service dhcp\r\n   allow-service dns\r\n   allow-service icmp\r\n   no allow-service sshd\r\n   no allow-service netconf\r\n   no allow-service ntp\r\n   no allow-service ospf\r\n   no allow-service stun\r\n   allow-service https\r\n  !\r\n  no shutdown\r\n !\r\n!\r\nvpn 512\r\n interface eth0\r\n  ip address &amp;lt;ip-address/subnet-mask&amp;gt;\r\n  no shutdown\r\n !\r\n ip route 0.0.0.0/0 &amp;lt;ip-address&amp;gt;\r\n!\r\n",
  "factoryDefault": false,
  "configType": "file"
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2022 12:38:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4603242#M1069</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-05-02T12:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automate the CLI commands?</title>
      <link>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4636313#M1070</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/352839"&gt;@bigevilbeard&lt;/a&gt;, i did see this previously but wasn't sure how to use this. If i just want to shut a certain interface, what all should i send in the payload?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 05:18:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4636313#M1070</guid>
      <dc:creator>hrmt92</dc:creator>
      <dc:date>2022-06-22T05:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automate the CLI commands?</title>
      <link>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4636419#M1071</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1348786"&gt;@hrmt92&lt;/a&gt;&amp;nbsp;you can use this just revert the command to shutdown instead of no shutddown&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;URL:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://vmanage-ip:port/dataservice/template/device/cli/" target="_blank" rel="nofollow noopener"&gt;https://vmanage-ip:port/dataservice/template/device/cli/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Method:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;POST&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST Request Parameters:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "templateName": "",
  "templateDescription": "",
  "deviceType": "",
  "templateConfiguration": "",
  "factoryDefault": false,
  "configType": "file"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JSON Payload&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "templateName": "br2_vedge1",
  "templateDescription": "br2_vedge1",
  "deviceType": "vedge-cloud",
  "templateConfiguration": "system\r\n host-name               vedge\r\n admin-tech-on-failure\r\n no route-consistency-check\r\n vbond ztp.viptela.com\r\n aaa\r\n  auth-order local radius tacacs\r\n  usergroup basic\r\n   task system read write\r\n   task interface read write\r\n  !\r\n  usergroup netadmin\r\n  !\r\n  usergroup operator\r\n   task system read\r\n   task interface read\r\n   task policy read\r\n   task routing read\r\n   task security read\r\n  !\r\n  user admin\r\n   password &amp;lt;password-value&amp;gt;\r\n  !\r\n !\r\n logging\r\n  disk\r\n   enable\r\n  !\r\n !\r\n!\r\nomp\r\n no shutdown\r\n graceful-restart\r\n advertise connected\r\n advertise static\r\n!\r\nsecurity\r\n ipsec\r\n  authentication-type ah-sha1-hmac sha1-hmac\r\n !\r\n!\r\nvpn 0\r\n interface ge0/0\r\n  ip dhcp-client\r\n  ipv6 dhcp-client\r\n  tunnel-interface\r\n   encapsulation ipsec\r\n   no allow-service bgp\r\n   allow-service dhcp\r\n   allow-service dns\r\n   allow-service icmp\r\n   no allow-service sshd\r\n   no allow-service netconf\r\n   no allow-service ntp\r\n   no allow-service ospf\r\n   no allow-service stun\r\n   allow-service https\r\n  !\r\n  no shutdown\r\n !\r\n!\r\nvpn 512\r\n interface eth0\r\n  ip address &amp;lt;ip-address/subnet-mask&amp;gt;\r\n  no shutdown\r\n !\r\n ip route 0.0.0.0/0 &amp;lt;ip-address&amp;gt;\r\n!\r\n",
  "factoryDefault": false,
  "configType": "file"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 09:53:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/can-we-automate-the-cli-commands/m-p/4636419#M1071</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-06-22T09:53:12Z</dc:date>
    </item>
  </channel>
</rss>

