show nve peers

show nve peers

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 nve peers ",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve peers",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_nve_peers": {
            "ROW_nve_peers": [
              {
                "if-name": "nve1",
                "peer-ip": "1.1.1.53",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "05:21:52",
                "router-mac": "f8c2.8846.e07f"
              },
              {
                "if-name": "nve1",
                "peer-ip": "1.1.1.112",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "07:08:31",
                "router-mac": "2cd0.2d51.9f1b"
              },
              {
                "if-name": "nve1",
                "peer-ip": "1.1.1.114",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "07:04:43",
                "router-mac": "00a6.cab6.bbbb"
              },
              {
                "if-name": "nve1",
                "peer-ip": "1.1.1.161",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "05:14:11",
                "router-mac": "00c8.8bb7.57bf"
              },
              {
                "if-name": "nve1",
                "peer-ip": "1.1.1.162",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "05:14:18",
                "router-mac": "00c8.8bb7.493f"
              },
              {
                "if-name": "nve1",
                "peer-ip": "2.2.2.2",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "05:14:20",
                "router-mac": "n/a"
              },
              {
                "if-name": "nve1",
                "peer-ip": "3.3.3.4",
                "peer-state": "Up",
                "learn-type": "CP",
                "uptime": "07:05:17",
                "router-mac": "0200.0303.0304"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve peers command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve peers 
Interface Peer-IP          State LearnType Uptime   Router-Mac
--------- --------------- ----- --------- -------- ----------------- nve1 1.1.1.53 Up CP 05:21:58 f8c2.8846.e07f
nve1 1.1.1.112 Up CP 07:08:37 2cd0.2d51.9f1b
nve1 1.1.1.114 Up CP 07:04:49 00a6.cab6.bbbb
nve1 1.1.1.161 Up CP 05:14:17 00c8.8bb7.57bf
nve1 1.1.1.162 Up CP 05:14:24 00c8.8bb7.493f
nve1 2.2.2.2 Up CP 05:14:25 n/a
nve1 3.3.3.4 Up CP 07:05:23 0200.0303.0304

show nve vni

show nve vni

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 nve 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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vni",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_nve_vni": {
            "ROW_nve_vni": [
              {
                "if-name": "nve1",
                "vni": "10101",
                "mcast": "n/a",
                "vni-state": "Up",
                "mode": "CP",
                "type": "L3 [vxlan-10101]",
                "flags": ""
              },
              {
                "if-name": "nve1",
                "vni": "12101",
                "mcast": "UnicastBGP",
                "vni-state": "Up",
                "mode": "CP",
                "type": "L2 [2101]",
                "flags": "SA MS-IR "
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vni 
Codes: CP - Control Plane        DP - Data Plane
UC - Unconfigured SA - Suppress ARP
SU - Suppress Unknown Unicast Xconn - Crossconnect
MS-IR - Multisite Ingress Replication Interface VNI Multicast-group State Mode Type [BD/VRF] Flags --------- -------- ----------------- ----- ---- ------------------ ----- nve1 10101 n/a Up CP L3 [vxlan-10101]
nve1 12101 UnicastBGP Up CP L2 [2101] SA MS-IR

show nve vni 10101 counters

show nve vni 10101 counters

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 nve vni 10101 counters",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vni 10101 counters ",
        "msg": "Success",
        "code": "200",
        "body": {
          "vni": "10101",
          "tx_ucastpkts": "6697572",
          "tx_ucastbytes": "505293095",
          "tx_mcastpkts": "65",
          "tx_mcastbytes": "9360",
          "rx_ucastpkts": "7041979",
          "rx_ucastbytes": "880115957",
          "rx_mcastpkts": "1316",
          "rx_mcastbytes": "381656"
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni 10101 counters command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vni 10101 counters 
VNI: 10101
TX
        6697572 unicast packets 505293095 unicast bytes
        65 multicast packets 9360 multicast bytes
RX
        7041979 unicast packets 880115957 unicast bytes
        1316 multicast packets 381656 multicast bytes

show nve vni interface nve 1

show nve vni interface nve 1

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 nve vni interface nve 1",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vni interface nve 1",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_nve_vni": {
            "ROW_nve_vni": [
              {
                "if-name": "nve1",
                "vni": "13100",
                "mcast": "225.4.0.100",
                "vni-state": "Up",
                "mode": "CP",
                "type": "L2 [3100]",
                "flags": "SA MS-IR "
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni interface nve 1 command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vni interface nve 1 
Codes: CP - Control Plane        DP - Data Plane
UC - Unconfigured SA - Suppress ARP
SU - Suppress Unknown Unicast Xconn - Crossconnect
MS-IR - Multisite Ingress Replication Interface VNI Multicast-group State Mode Type [BD/VRF] Flags --------- -------- ----------------- ----- ---- ------------------ ----- nve1 13100 225.4.0.100 Up CP L2 [3100] SA MS-IR

show nve vni interface nve 1 detail

show nve vni interface nve 1 detail

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 nve vni interface nve 1 detail",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vni interface nve 1 detail",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_nve_vni": {
            "ROW_nve_vni": [
              {
                "if-name": "nve1",
                "vni": "13100",
                "mcast": "225.4.0.100",
                "vni-state": "Up",
                "mode": "control-plane",
                "type": "L2 [3100]",
                "flags": "SA MS-IR ",
                "prvsn-state": "vni-add-complete",
                "vlan-bd": "3100",
                "svi-state": "n/a",
                "vpc-compat-check": "0"
              }
            ]
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vni interface nve 1 detail command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vni interface nve 1 detail 
VNI: 13100 
  NVE-Interface       : nve1
  Mcast-Addr          : 225.4.0.100
  VNI State           : Up
  Mode                : control-plane
  VNI Type            : L2 [3100]
  VNI Flags           : SA MS-IR 
  Provision State     : vni-add-complete
  Vlan-BD             : 3100
  SVI State           : n/a


show nve vrf vxlan-10101

show nve vrf vxlan-10101

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 nve vrf vxlan-10101",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vrf vxlan-10101",
        "msg": "Success",
        "code": "200",
        "body": {
          "TABLE_nve_vrf": {
            "ROW_nve_vrf": {
              "vrf-name": "vxlan-10101",
              "vni": "10101",
              "if-name": "nve1",
              "gateway-mac": "f8c2.8846.e6ff",
              "ipv4-tblid": "4",
              "ipv6-tblid": "2147483652",
              "vni-sw-bd": "101",
              "flags": "0"
            }
          }
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vrf vxlan-10101 command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vrf vxlan-10101
VRF-Name     VNI        Interface Gateway-MAC
------------ ---------- --------- ----------------- vxlan-10101 10101 nve1 f8c2.8846.e6ff

show nve vxlan-params

show nve vxlan-params

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 nve vxlan-params ",
  "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)


{

  "ins_api": {
    "type": "cli_show",
    "version": "1.0",
    "sid": "eoc",
    "outputs": {
      "output": {
        "input": "show nve vxlan-params",
        "msg": "Success",
        "code": "200",
        "body": {
          "vxlan-port": "4789"
        }
      }
    }
  }
}

The CLI output example below corresponds to the payload example in the code pane on the right. For more information about the show nve vxlan-params command, see the CLI command reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

Note: This example was added in Cisco NX-OS Release 9.2(1).

CLI Output
Switch# show nve vxlan-params 
VxLAN Dest. UDP Port: 4789