show otv commands

show otv

show otv

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""site-id"": ""0000.0000.00ee"",
  ""encapsulation-format"": ""ip - gre"",
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""overlay-if"": ""Overlay1"",
      ""vpn-name"": ""Overlay1"",
      ""vpn-state"": ""UP"",
      ""extended-vlans"": ""1-9 (Total:9/1)"",
      ""control-group"": ""239.1.1.1"",
      ""TABLE_dgroup-range"": {
        ""ROW_dgroup-range"": {
          ""data-group-range"": ""232.1.1.0/28""
        }
      },
      ""broadcast-group"": ""239.1.1.1"",
      ""join-if"": ""Eth1/2"",
      ""join-if-addr"": ""192.1.1.1"",
      ""site-vlan"": 10,
      ""site-vlan-state"": ""up"",
      ""aed-capable"": ""Yes"",
      ""capability"": ""Multicast-Reachable""
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <__readonly__>
     <site-id>0000.0000.00ee</site-id>
     <encapsulation-format>ip - gre</encapsulation-format>
     <TABLE_overlay>
      <ROW_overlay>
       <overlay-if>Overlay1</overlay-if>
       <vpn-name>Overlay1</vpn-name>
       <vpn-state>UP</vpn-state>
       <extended-vlans>1-9 (Total:9/1)</extended-vlans>
       <control-group>239.1.1.1</control-group>
       <TABLE_dgroup-range>
        <ROW_dgroup-range>
         <data-group-range>232.1.1.0/28</data-group-range>
        </ROW_dgroup-range>
       </TABLE_dgroup-range>
       <broadcast-group>239.1.1.1</broadcast-group>
       <join-if>Eth1/2</join-if>
       <join-if-addr>192.1.1.1</join-if-addr>
       <site-vlan>10</site-vlan>
       <site-vlan-state>up</site-vlan-state>
       <aed-capable>Yes</aed-capable>
       <capability>Multicast-Reachable</capability>
      </ROW_overlay>
     </TABLE_overlay>
    </__readonly__>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display information about the Overlay Transport Virtualization (OTV) information, use the show otv command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv**

OTV Overlay Information
Site Identifier 0000.0000.00ee
Encapsulation-Format ip - gre

Overlay interface Overlay1

VPN name : Overlay1 VPN state : UP Extended vlans : 1-9 (Total:9/1) Control group : 239.1.1.1 Data group range(s) : 232.1.1.0/28 Broadcast group : 239.1.1.1 Join interface(s) : Eth1/2 (192.1.1.1) Site vlan : 10 (up) AED-Capable : Yes Capability : Multicast-Reachable

show otv adjacency

show otv adjacency

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv adjacency",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""overlay-if"": ""Overlay1"",
      ""TABLE_adjacency"": {
        ""ROW_adjacency"": {
          ""hostname"": ""7700-3-otvA1"",
          ""system-id"": ""8c60.4fe7.b6c2"",
          ""destination-addr"": ""192.1.1.2"",
          ""up-time"": ""2d21h"",
          ""state"": ""UP""
        }
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <adjacency>
     <__readonly__>
      <TABLE_overlay>
       <ROW_overlay>
        <overlay-if>Overlay1</overlay-if>
        <TABLE_adjacency>
         <ROW_adjacency>
          <hostname>7700-3-otvA1</hostname>
          <system-id>8c60.4fe7.b6c2</system-id>
          <destination-addr>192.1.1.2</destination-addr>
          <up-time>2d21h</up-time>
          <state>UP</state>
         </ROW_adjacency>
        </TABLE_adjacency>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </adjacency>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display the Overlay Transport Virtualization (OTV) adjacency information, use the show otv adjacency command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv adjacency**

Overlay Adjacency database

Overlay-Interface Overlay1 : Hostname System-ID Dest Addr Up Time State 7700-3-otvA1 8c60.4fe7.b6c2 192.1.1.2 2d21h UP

show otv arp-nd-cache

show otv arp-nd-cache

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv arp-nd-cache",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""overlay-if"": ""Overlay1"",
      ""TABLE_arp-nd-cache"": {
        ""ROW_arp-nd-cache"": {
          ""vlan-id"": 5,
          ""mac-addr"": ""8c60.4fe7.b6c3"",
          ""l3-addr"": ""20.20.20.1"",
          ""uptime"": ""00:02:24"",
          ""expiry"": ""00:05:35""
        }
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ie
tf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <arp-nd-cache>
     <__readonly__>
      <TABLE_overlay>
       <ROW_overlay>
        <overlay-if>Overlay1</overlay-if>
        <TABLE_arp-nd-cache>
         <ROW_arp-nd-cache>
          <vlan-id>5</vlan-id>
          <mac-addr>8c60.4fe7.b6c3</mac-addr>
          <l3-addr>20.20.20.1</l3-addr>
          <uptime>00:01:52</uptime>
          <expiry>00:06:07</expiry>
         </ROW_arp-nd-cache>
        </TABLE_arp-nd-cache>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </arp-nd-cache>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display Layer 2 and Layer 3 addresses cached from the Address Resolution protocol (ARP) and Neighbor Discovery (ND) packet inspection, use the show otv arp-nd-cache command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv arp-nd-cache**

OTV ARP/ND L3->L2 Address Mapping Cache

Overlay Interface Overlay1 VLAN MAC Address Layer-3 Address Age Expires In 5 8c60.4fe7.b6c3 20.20.20.1 00:01:47 00:06:12

show otv data-group vlan 2020

show otv data-group vlan 2020

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv data-group vlan 2020",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""header"": ""Local Active Sources"", 
      ""overlay-if"": ""Overlay3"", 
      ""TABLE_dgroup"": {
        ""ROW_dgroup"": {
          ""vlan-id"": 2020, 
          ""active-source"": ""20.1.1.100"", 
          ""active-group"": ""226.20.0.1"", 
          ""delivery-source"": ""1.1.1.3"", 
          ""delivery-group"": ""232.3.0.0"", 
          ""join-if"": ""Lo1"", 
          ""state"": ""Local""
        }
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ie
tf:params:xml:ns:netconf:base:1.0"">
<nf:data>
  <show>
   <otv>
    <data-group>
     <vlan>
      <__XML__PARAM__vlan-id>
       <__XML__value>2020</__XML__value>
       <__readonly__>
        <TABLE_overlay>
         <ROW_overlay>
          <header>Local Active Sources</header>
          <overlay-if>Overlay3</overlay-if>
          <TABLE_dgroup>
           <ROW_dgroup>
            <vlan-id>2020</vlan-id>
            <active-source>20.1.1.100</active-source>
            <active-group>226.20.0.1</active-group>
            <delivery-source>1.1.1.3</delivery-source>
            <delivery-group>232.3.0.0</delivery-group>
            <join-if>Lo1</join-if>
            <state>Local</state>
           </ROW_dgroup>
          </TABLE_dgroup>
         </ROW_overlay>
        </TABLE_overlay>
       </__readonly__>
      </__XML__PARAM__vlan-id>
     </vlan>
    </data-group>
   </otv>
  </show>
</nf:data>
</nf:rpc-reply>
]]>]]>

To display information about Overlay Transport Virtualization (OTV) data group information for VLAN interface, use the show otv data-group vlan 2020 command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv data-group vlan 2020**

Local Active Sources for Overlay3

VLAN Active-Source Active-Group Delivery-Source Delivery-Group Join-IF State


2020 20.1.1.100 226.20.0.1 1.1.1.3 232.3.0.0 Lo1 Local

show otv isis

show otv isis

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv isis",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""tag-out"": ""default"",
  ""mcast-encap-type-out"": ""GRE"",
  ""TABLE_vrf"": {
    ""ROW_vrf"": {
      ""vrf-name-out"": ""Overlay1"",
      ""system-id-out"": ""8c60.4fe7.b6c1"",
      ""is-type-out"": ""L1"",
      ""otv-version-out"": 3,
      ""interop-flag-out"": 0,
      ""sap-out"": 439,
      ""qh-out"": 15,
      ""mtu-out"": 1392,
      ""gr-status-out"": ""Graceful Restart enabled."",
      ""gr-state-out"": ""State: Inactive"",
      ""last-gr-status-out"": ""Last graceful restart status : none"",
      ""metric-send-out"": ""advertise(wide)"",
      ""metric-accept-out"": ""accept(narrow, wide)"",
      ""area-addr-out"": ""00"",
      ""proc-state-out"": ""Process is up and running"",
      ""vrf-id-out"": ""179"",
      ""TABLE_intf"": {
        ""ROW_intf"": {
          ""intf-name-out"": ""Overlay1""
        }
      },
      ""auth-chk-out"": ""Authentication check is specified"",
      ""TABLE_afi_safi"": {
        ""ROW_afi_safi"": [
          {
            ""afi-safi-out"": ""IPv4"",
            ""intf-num-out"": ""1"",
            ""adj-check-out"": ""true"",
            ""admin-dist-out"": 115,
            ""tib-id-out"": 0
          },
          {
            ""afi-safi-out"": ""IPv6"",
            ""intf-num-out"": ""1"",
            ""adj-check-out"": ""true"",
            ""admin-dist-out"": 115,
            ""tib-id-out"": 0
          },
          {
            ""afi-safi-out"": ""MAC"",
            ""intf-num-out"": ""1"",
            ""adj-check-out"": ""true"",
            ""admin-dist-out"": 115,
            ""tib-id-out"": 0
          }
        ]
      },
      ""aed-capability-out"": 1,
      ""aed-priority-out"": 0,
      ""aed-srv-elected-out"": ""8c60.4fe7.b6c1"",
      ""aed-state-out"": 0,
      ""aed-elected-oper-out"": 4,
      ""aed-backup-srv-out"": ""0000.0000.0000"",
      ""aed-backup-state-out"": 0,
      ""aed-backup-elected-oper-out"": 0
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:isis_otv"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <isis>
     <__readonly__>
      <tag-out>default</tag-out>
      <mcast-encap-type-out>GRE</mcast-encap-type-out>
      <TABLE_vrf>
       <ROW_vrf>
        <vrf-name-out>Overlay1</vrf-name-out>
        <system-id-out>8c60.4fe7.b6c1</system-id-out>
        <is-type-out>L1</is-type-out>
        <otv-version-out>3</otv-version-out>
        <interop-flag-out>0</interop-flag-out>
        <sap-out>439</sap-out>
        <qh-out>15</qh-out>
        <mtu-out>1392</mtu-out>
        <gr-status-out>  Graceful Restart enabled.</gr-status-out>
        <gr-state-out> State: Inactive</gr-state-out>
        <last-gr-status-out>  Last graceful restart status : none</last-gr-status-out>
        <metric-send-out>advertise(wide)</metric-send-out>
        <metric-accept-out>accept(narrow, wide)</metric-accept-out>
        <area-addr-out>00</area-addr-out>
        <proc-state-out>  Process is up and running</proc-state-out>
        <vrf-id-out>179</vrf-id-out>
        <TABLE_intf>
         <ROW_intf>
          <intf-name-out>Overlay1</intf-name-out>
         </ROW_intf>
        </TABLE_intf>
        <auth-chk-out>Authentication check is specified</auth-chk-out>
        <TABLE_afi_safi>
         <ROW_afi_safi>
          <afi-safi-out>IPv4</afi-safi-out>
          <intf-num-out>1</intf-num-out>
          <adj-check-out>true</adj-check-out>
          <admin-dist-out>115</admin-dist-out>
          <tib-id-out>0</tib-id-out>
         </ROW_afi_safi>
         <ROW_afi_safi>
          <afi-safi-out>IPv6</afi-safi-out>
          <intf-num-out>1</intf-num-out>
          <adj-check-out>true</adj-check-out>
          <admin-dist-out>115</admin-dist-out>
          <tib-id-out>0</tib-id-out>
         </ROW_afi_safi>
         <ROW_afi_safi>
          <afi-safi-out>MAC</afi-safi-out>
          <intf-num-out>1</intf-num-out>
          <adj-check-out>true</adj-check-out>
          <admin-dist-out>115</admin-dist-out>
          <tib-id-out>0</tib-id-out>
         </ROW_afi_safi>
        </TABLE_afi_safi>
        <aed-capability-out>1</aed-capability-out>
        <aed-priority-out>0</aed-priority-out>
        <aed-srv-elected-out>8c60.4fe7.b6c1</aed-srv-elected-out>
        <aed-state-out>0</aed-state-out>
        <aed-elected-oper-out>4</aed-elected-oper-out>
        <aed-backup-srv-out>0000.0000.0000</aed-backup-srv-out>
        <aed-backup-state-out>0</aed-backup-state-out>
        <aed-backup-elected-oper-out>0</aed-backup-elected-oper-out>
       </ROW_vrf>
      </TABLE_vrf>
     </__readonly__>
    </isis>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display information about an Overlay Transport Virtualization (OTV) Intermediate System-to-Intermediate System (IS-IS) data group information, use the show otv isis command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv isis**

ISIS process : default
Encap-Type for Multicast mode: GRE
VPN: Overlay1
fwd ready state FALSE
  System ID : 8c60.4fe7.b6c1  IS-Type : L1
 Version Number: 3
 Interoperability Flag: 0
  SAP : 439  Queue Handle : 15
  Maximum LSP MTU: 1392
  Graceful Restart enabled. State: Inactive
  Last graceful restart status : none
  Metric-style : advertise(wide), accept(narrow, wide)
  Area address(es) :
    00
  Process is up and running
  VPN ID: 179
  Incremental update routes during SPF run
  Stale routes during non-graceful controlled restart
  Interfaces supported by OTV-IS-IS :
    Overlay1
Level 1
Authentication type and keychain haven't been configured
Authentication check is specified
  Address family IPv4 unicast :
    Number of interface : 1
    Adjacency check disabled
    Distance : 115
    tib-id  : 0
  Address family IPv6 unicast :
    Number of interface : 1
    Adjacency check disabled
    Distance : 115
    tib-id  : 0
  Address family MAC unicast :
    Number of interface : 1
    Adjacency check disabled
    Distance : 115
    tib-id  : 0
  L1 Next SPF: Inactive
AED Server Info:
Capability: 1
Priority: 0
AED Server Elected Value: 8c60.4fe7.b6c1
AED State: 0
AED Elected Operational: 4

Backup AED Server Info: Number of interface : 1 Adjacency check disabled Distance : 115 tib-id : 0 Address family MAC unicast : Number of interface : 1 Adjacency check disabled Distance : 115 tib-id : 0 L1 Next SPF: Inactive AED Server Info: Capability: 1 Priority: 0 AED Server Elected Value: 8c60.4fe7.b6c1 AED State: 0 AED Elected Operational: 4

Backup AED Server Info: Backup AED Server Elected Value: 0000.0000.0000 Backup AED State: 0 Backup AED Elected Operational: 0

show otv mroute

show otv mroute

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv mroute",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""if-name"": ""Overlay1"",
      ""TABLE_mroute"": {
        ""ROW_mroute"": {
          ""vlan-id"": ""1"",
          ""src-addr"": ""*"",
          ""grp-addr"": ""*"",
          ""mask"": null,
          ""metric"": 0,
          ""uptime"": ""PT1H6M29S"",
          ""TABLE_rowner"": {
            ""ROW_rowner"": {
              ""rowner"": ""igmp""
            }
          },
          ""nh-count"": 1,
          ""TABLE_oif"": {
            ""ROW_oif"": {
              ""oif"": ""Eth1/7"",
              ""oif-uptime"": ""PT1H6M29S"",
              ""TABLE_oif_owner"": {
                ""ROW_oif_owner"": {
                  ""oif-owner"": ""igmp""
                }
              }
            }
          }
        }
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:orib"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <mroute>
     <__readonly__>
      <TABLE_overlay>
       <ROW_overlay>
        <if-name>Overlay1</if-name>
        <TABLE_mroute>
         <ROW_mroute>
          <vlan-id>1</vlan-id>
          <src-addr>*</src-addr>
          <grp-addr>*</grp-addr>
          <mask></mask>
          <metric>0</metric>
          <uptime>PT1H6M19S</uptime>
          <TABLE_rowner>
           <ROW_rowner>
            <rowner>igmp</rowner>
           </ROW_rowner>
          </TABLE_rowner>
          <nh-count>1</nh-count>
          <TABLE_oif>
           <ROW_oif>
            <oif>Eth1/7</oif>
            <oif-uptime>PT1H6M19S</oif-uptime>
            <TABLE_oif_owner>
             <ROW_oif_owner>
              <oif-owner>igmp</oif-owner>
             </ROW_oif_owner>
            </TABLE_oif_owner>
           </ROW_oif>
          </TABLE_oif>
         </ROW_mroute>
        </TABLE_mroute>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </mroute>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display the Overlay Transport Virtualization (OTV) multicast route information from the OTV Routing and Information Base (ORIB), use the show otv mroute command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv mroute**

OTV Multicast Routing Table For Overlay1

(1, *, *), metric: 0, uptime: 01:06:08, igmp Outgoing interface list: (count: 1) Eth1/7, uptime: 01:06:08, igmp

show otv route

show otv route

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv route",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""if-name"": ""Overlay1"",
      ""TABLE_route"": {
        ""ROW_route"": [
          {
            ""vlan-id"": ""1"",
            ""mac-addr"": ""8c60.4fe7.b6c1"",
            ""metric"": 1,
            ""owner"": ""site"",
            ""next-hop"": ""Ethernet1/7"",
            ""uptime"": ""PT1H7M39S""
          },
          {
            ""vlan-id"": ""1"",
            ""mac-addr"": ""8c60.4fe7.b6c8"",
            ""metric"": 1,
            ""owner"": ""site"",
            ""next-hop"": ""Ethernet6/41"",
            ""uptime"": ""P2DT21H57M10S""
          }
        ]
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:orib"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <route>
     <__readonly__>
      <TABLE_overlay>
       <ROW_overlay>
        <if-name>Overlay1</if-name>
        <TABLE_route>
         <ROW_route>
          <vlan-id>1</vlan-id>
          <mac-addr>8c60.4fe7.b6c1</mac-addr>
          <metric>1</metric>
          <owner>site</owner>
          <next-hop>Ethernet1/7</next-hop>
          <uptime>PT1H7M17S</uptime>
         </ROW_route>
         <ROW_route>
          <vlan-id>1</vlan-id>
          <mac-addr>8c60.4fe7.b6c8</mac-addr>
          <metric>1</metric>
          <owner>site</owner>
          <next-hop>Ethernet6/41</next-hop>
          <uptime>P2DT21H56M48S</uptime>
         </ROW_route>
        </TABLE_route>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </route>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display Overlay Transport Virtualization (OTV) Intermediate-System-to-Intermediate System (IS-IS) route information from the ORBI, use the show otv route command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv route**

OTV Unicast MAC Routing Table For Overlay1

VLAN MAC-Address Metric Uptime Owner Next-hop(s)


1 8c60.4fe7.b6c1 1 01:06:59 site Ethernet1/7 1 8c60.4fe7.b6c8 1 2d21h site Ethernet6/41

show otv site

show otv site

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv site",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""local-hostname"": ""7700-3"",
  ""local-system-id"": ""8c60.4fe7.b6c1"",
  ""local-site-id"": ""0000.0000.00ee"",
  ""local-site-vlan"": ""10"",
  ""local-site-vlan-state"": ""Up"",
  ""local-site-vlan-configured"": 1,
  ""local-site-vni"": 0,
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""overlay-if"": ""Overlay1"",
      ""aed-capable"": ""Yes"",
      ""neighbor-ed-count"": 1,
      ""TABLE_neighbor"": {
        ""ROW_neighbor"": {
          ""hostname"": ""(null)"",
          ""system-id"": ""8c60.4fe7.b6c5"",
          ""adj-state"": ""Partial"",
          ""adj-uptime"": ""01:08:28"",
          ""aed-capability"": ""No""
        }
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <site>
     <__readonly__>
      <local-hostname>7700-3</local-hostname>
      <local-system-id>8c60.4fe7.b6c1</local-system-id>
      <local-site-id>0000.0000.00ee</local-site-id>
      <local-site-vlan>10</local-site-vlan>
      <local-site-vlan-state>Up</local-site-vlan-state>
      <local-site-vlan-configured>1</local-site-vlan-configured>
      <local-site-vni>0</local-site-vni>
      <TABLE_overlay>
       <ROW_overlay>
        <overlay-if>Overlay1</overlay-if>
        <aed-capable>Yes</aed-capable>
        <neighbor-ed-count>1</neighbor-ed-count>
        <TABLE_neighbor>
         <ROW_neighbor>
          <hostname>(null)</hostname>
          <system-id>8c60.4fe7.b6c5</system-id>
          <adj-state>Partial</adj-state>
          <adj-uptime>01:08:18</adj-uptime>
          <aed-capability>No</aed-capability>
         </ROW_neighbor>
        </TABLE_neighbor>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </site>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display the Overlay Transport Virtualization (OTV) site information, use the show otv site command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv site**

Dual Adjacency State Description
    Full     - Both site and overlay adjacency up
    Partial  - Either site/overlay adjacency down
    Down     - Both adjacencies are down (Neighbor is down/unreachable)
    (!)      - Site-ID mismatch detected

Local Edge Device Information: Hostname 7700-3 System-ID 8c60.4fe7.b6c1 Site-Identifier 0000.0000.00ee Site-VLAN 10 State is Up

Site-VLAN-Cfg 1
Site-VNI 0

Site Information for Overlay1:

Local device is AED-Capable Neighbor Edge Devices in Site: 1

Hostname System-ID Adjacency- Adjacency- AED- State Uptime Capable

(null) 8c60.4fe7.b6c5 Partial 01:08:03 No

show otv source-group

show otv source-group

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv source-group",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_overlay"": {
    ""ROW_overlay"": {
      ""overlay-if"": ""Overlay3"", 
      ""TABLE_source-group"": {
        ""ROW_source-group"": [
          {
            ""source-addr"": ""3.3.3.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""5.5.5.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""6.6.6.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""8.8.8.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""9.9.9.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""10.10.10.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""43.43.43.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""192.11.101.1"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""1.1.1.3"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""4.4.4.3"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""1.1.1.4"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""4.4.4.4"", 
            ""group-addr"": ""225.3.3.3""
          }, 
          {
            ""source-addr"": ""7.7.7.7"", 
            ""group-addr"": ""225.3.3.3""
          }
        ]
      }
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ie
tf:params:xml:ns:netconf:base:1.0"">
<nf:data>
  <show>
   <otv>
    <source-group>
     <__readonly__>
      <TABLE_overlay>
       <ROW_overlay>
        <overlay-if>Overlay3</overlay-if>
        <TABLE_source-group>
         <ROW_source-group>
          <source-addr>3.3.3.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>5.5.5.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>6.6.6.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>8.8.8.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>9.9.9.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>10.10.10.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>43.43.43.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>192.11.101.1</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>1.1.1.3</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>4.4.4.3</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>1.1.1.4</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>4.4.4.4</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
         <ROW_source-group>
          <source-addr>7.7.7.7</source-addr>
          <group-addr>225.3.3.3</group-addr>
         </ROW_source-group>
        </TABLE_source-group>
       </ROW_overlay>
      </TABLE_overlay>
     </__readonly__>
    </source-group>
   </otv>
  </show>
</nf:data>
</nf:rpc-reply>
]]>]]>

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv source-group**

No (S, PG)'s entries for Overlay: Overlay1

(S, PG)'s entries for Overlay: Overlay3

Source-Addr Group-Addr


3.3.3.1 225.3.3.3 5.5.5.1 225.3.3.3 6.6.6.1 225.3.3.3 8.8.8.1 225.3.3.3 9.9.9.1 225.3.3.3 10.10.10.1 225.3.3.3 43.43.43.1 225.3.3.3 192.11.101.1 225.3.3.3 1.1.1.3 225.3.3.3 4.4.4.3 225.3.3.3 1.1.1.4 225.3.3.3 4.4.4.4 225.3.3.3 7.7.7.7 225.3.3.3

No (S, PG)'s entries for Overlay: Overlay7

show otv vlan

show otv vlan

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv vlan",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_otv-vlan"": {
    ""ROW_otv-vlan"": [
      {
        ""vlan"": 1,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 2,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 3,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 4,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 5,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 6,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 7,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 8,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 9,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      }
    ]
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ietf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <vlan>
     <__readonly__>
      <TABLE_otv-vlan>
       <ROW_otv-vlan>
        <vlan>1</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>2</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>3</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>4</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>5</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>6</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>7</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>8</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>9</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
      </TABLE_otv-vlan>
     </__readonly__>
    </vlan>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display the VLAN information for the Overlay Transport Virtualization overlay interface, use the show otv vlan command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv vlan**

OTV Extended VLANs and Edge Device State Information (* - AED)

Legend: (NA) - Non AED, (VD) - Vlan Disabled, (OD) - Overlay Down (DH) - Delete Holddown, (HW) - HW: State Down (NFC) - Not Forward Capable

VLAN Auth. Edge Device Vlan State Overlay


1* 7700-3 active Overlay1 2* 7700-3 active Overlay1 3* 7700-3 active Overlay1 4* 7700-3 active Overlay1 5* 7700-3 active Overlay1 6* 7700-3 active Overlay1 7* 7700-3 active Overlay1 8* 7700-3 active Overlay1 9* 7700-3 active Overlay1

show otv vlan [{<2-5>}] [authoritative] [private-vlan] [detail] [Overlay1 | vpn active]

show otv vlan [{<vlan-range>}] [authoritative] [private-vlan] [detail] [<overlay-if> | vpn <vpn-name>]

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv vlan [{<vlan-range>}] [authoritative] [private-vlan] [detail] [<overlay-if> | vpn <vpn-name>]",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_otv-vlan"": {
    ""ROW_otv-vlan"": [
      {
        ""vlan"": 2,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 3,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 4,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 5,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 6,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 7,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 8,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      },
      {
        ""vlan"": 9,
        ""is-vlan-authoritative"": ""Yes"",
        ""authoritative-edge-device"": ""7700-3"",
        ""vlan-state"": ""active"",
        ""overlay-if"": ""Overlay1""
      }
    ]
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ietf:params:xml
:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <vlan>
     <__readonly__>
      <TABLE_otv-vlan>
       <ROW_otv-vlan>
        <vlan>2</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>3</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>4</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>5</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>6</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>7</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>8</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
       <ROW_otv-vlan>
        <vlan>9</vlan>
        <is-vlan-authoritative>Yes</is-vlan-authoritative>
        <authoritative-edge-device>7700-3</authoritative-edge-device>
        <vlan-state>active</vlan-state>
        <overlay-if>Overlay1</overlay-if>
       </ROW_otv-vlan>
      </TABLE_otv-vlan>
     </__readonly__>
    </vlan>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv vlan [{2-5}]**

OTV Extended VLANs and Edge Device State Information (* - AED)

Legend: (NA) - Non AED, (VD) - Vlan Disabled, (OD) - Overlay Down (DH) - Delete Holddown, (HW) - HW: State Down (NFC) - Not Forward Capable

VLAN Auth. Edge Device Vlan State Overlay


2* 7700-3 active Overlay1 3* 7700-3 active Overlay1 4* 7700-3 active Overlay1 5* 7700-3 active Overlay1 6* 7700-3 active Overlay1 7* 7700-3 active Overlay1 8* 7700-3 active Overlay1 9* 7700-3 active Overlay1

show otv vlan-mapping

show otv vlan-mapping

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv vlan-mapping",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_vlan-mapping"": {
    ""ROW_vlan-mapping"": {
      ""original-vlan"": 5,
      ""translated-vlan"": 15
    }
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.0.SK.1.:otv"" xmlns:nf=""urn:ie
tf:params:xml:ns:netconf:base:1.0"">
 <nf:data>
  <show>
   <otv>
    <vlan-mapping>
     <__readonly__>
      <TABLE_vlan-mapping>
       <ROW_vlan-mapping>
        <original-vlan>5</original-vlan>
        <translated-vlan>15</translated-vlan>
       </ROW_vlan-mapping>
      </TABLE_vlan-mapping>
     </__readonly__>
    </vlan-mapping>
   </otv>
  </show>
 </nf:data>
</nf:rpc-reply>
]]>]]>

To display VLAN translation mappings from a local site to a remote site, use the show otv vlan-mapping command. For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).
CLI Output

switch# show otv vlan-mapping

Original VLAN -> Translated VLAN

         5 ->   15

show show otv vni

show otv vni

import requests
import json

"""
Modify these please
"""
url='http://<IP_Address>/ins'
switchuser='<User_ID>'
switchpassword='<Password>'

myheaders={'content-type':'application/json'}
payload={
 "ins_api":{
  "version": "1.0",
  "type": "cli_show",
  "chunk": "0",
  "sid": "1",
  "input": "show otv vni",
  "output_format": "json"
}

response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()
output = json.dumps(response, indent=4, sort_keys=True)

{
  ""TABLE_otv-vni-mapping"": {
    ""ROW_otv-vni-mapping"": [
      {
        ""overlay-if"": ""Overlay1"", 
        ""vni"": 10000, 
        ""bd"": 100, 
        ""vlan"": 1000, 
        ""flags"": 1, 
        ""state"": ""Overlay Logical up""
      }, 
      {
        ""overlay-if"": ""Overlay1"", 
        ""vni"": 20000, 
        ""bd"": 201, 
        ""vlan"": 2001, 
        ""flags"": 1, 
        ""state"": ""Overlay Logical up""
      }, 
      {
        ""overlay-if"": ""Overlay1"", 
        ""vni"": 30000, 
        ""bd"": 300, 
        ""vlan"": 3000, 
        ""flags"": 1, 
        ""state"": ""Overlay Logical up""
      }, 
      {
        ""overlay-if"": ""Overlay1"", 
        ""vni"": 40000, 
        ""bd"": 401, 
        ""vlan"": 3501, 
        ""flags"": 1, 
        ""state"": ""Overlay Logical up""
      }
    ]
  }
}
<?xml version=""1.0"" encoding=""ISO-8859-1""?>
<nf:rpc-reply xmlns=""http://www.cisco.com/nxos:8.3.1.:otv"" xmlns:nf=""urn:ietf:pa
rams:xml:ns:netconf:base:1.0"">
<nf:data>
  <show>
   <otv>
    <vni>
     <__readonly__>
      <TABLE_otv-vni-mapping>
       <ROW_otv-vni-mapping>
        <overlay-if>Overlay1</overlay-if>
        <vni>10000</vni>
        <bd>100</bd>
        <vlan>1000</vlan>
        <flags>1</flags>
        <state>Overlay Logical up</state>
       </ROW_otv-vni-mapping>
       <ROW_otv-vni-mapping>
        <overlay-if>Overlay1</overlay-if>
        <vni>20000</vni>
        <bd>201</bd>
        <vlan>2001</vlan>
        <flags>1</flags>
        <state>Overlay Logical up</state>
       </ROW_otv-vni-mapping>
       <ROW_otv-vni-mapping>
        <overlay-if>Overlay1</overlay-if>
        <vni>30000</vni>
        <bd>300</bd>
        <vlan>3000</vlan>
        <flags>1</flags>
        <state>Overlay Logical up</state>
       </ROW_otv-vni-mapping>
       <ROW_otv-vni-mapping>
        <overlay-if>Overlay1</overlay-if>
        <vni>40000</vni>
        <bd>401</bd>
        <vlan>3501</vlan>
        <flags>1</flags>
        <state>Overlay Logical up</state>
       </ROW_otv-vni-mapping>
      </TABLE_otv-vni-mapping>
     </__readonly__>
    </vni>
   </otv>
  </show>
</nf:data>
</nf:rpc-reply>
]]>]]>

For command descriptions, see the Cisco Nexus 7000 Series Switches Command References.

Note: This sample output is generated for Cisco Nexus 7000 Series NX-OS Release 8.3(1).

CLI Output

switch# **show otv vni**

Overlay    VNI        BD    VLAN  Flag  State               
 ---------- ---------- ----- ----- ----- --------------------
Overlay1   10000      100   1000  0x1   (12)Overlay Logical up  
 Overlay1   20000      201   2001  0x1   (12)Overlay Logical up  
 Overlay1   30000      300   3000  0x1   (12)Overlay Logical up  
 Overlay1   40000      401   3501  0x1   (12)Overlay Logical up