Configuring LLDP on the if-mgmt-ether Command Mode

Enabling LLDP Reception on an Interface

 Enabling LLDP Reception on an Interface 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "adminRxSt": "enabled",
            "id": "mgmt0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <adminRxSt>enabled</adminRxSt>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 lldp receive

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Disabling LLDP Reception on an Interface

 Disabling LLDP Reception on an Interface 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "adminRxSt": "disabled",
            "id": "mgmt0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <adminRxSt>disabled</adminRxSt>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 no lldp receive

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a Management Address to be Sent in Management-TLV of LLDPDU

 Configuring a Management Address to be Sent in Management-TLV of LLDPDU 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetMgmtIpv4": "1.2.3.4"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetMgmtIpv4>1.2.3.4</tlvSetMgmtIpv4>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 lldp tlv-set management-address 1.2.3.4

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a Management Address to be Sent in Management-TLV of LLDPDU

 Deleting a Management Address to be Sent in Management-TLV of LLDPDU 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetMgmtIpv4": "0.0.0.0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetMgmtIpv4>0.0.0.0</tlvSetMgmtIpv4>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 no lldp tlv-set management-address 1.2.3.4

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a Management Address to be Sent in Management-TLV of LLDPDU

 Configuring a Management Address to be Sent in Management-TLV of LLDPDU 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetMgmtIpv6": "1:2::3:4"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetMgmtIpv6>1:2::3:4</tlvSetMgmtIpv6>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 lldp tlv-set management-address 1:2::3:4 ipv6

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a Management Address to be Sent in Management-TLV of LLDPDU

 Deleting a Management Address to be Sent in Management-TLV of LLDPDU 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetMgmtIpv6": "::"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetMgmtIpv6>::</tlvSetMgmtIpv6>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 no lldp tlv-set management-address 1:2::3:4 ipv6

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a VLAN ID That has an SVI IP That Should be Used as a Management Address in Management-TLV of LLDPDU Default

 Configuring a VLAN ID That has an SVI IP That Should be Used as a Management Address in Management-TLV of LLDPDU Default 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetVlan": "1"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetVlan>1</tlvSetVlan>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 lldp tlv-set vlan 1

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a VLAN ID That has an SVI IP That Should be Used as a Management Address in Management-TLV of LLDPDU Default

 Deleting a VLAN ID That has an SVI IP That Should be Used as a Management Address in Management-TLV of LLDPDU Default 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "id": "mgmt0",
            "tlvSetVlan": "0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <tlvSetVlan>0</tlvSetVlan>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 no lldp tlv-set vlan 1

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Enabling LLDP Transmission on an Interface

 Enabling LLDP Transmission on an Interface 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "adminTxSt": "enabled",
            "id": "mgmt0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <adminTxSt>enabled</adminTxSt>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 lldp transmit

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Disabling LLDP Transmission on an Interface

 Disabling LLDP Transmission on an Interface 
POST http://<mgmt0_IP>/api/mo/<DN>
{
  "lldpInst": {
    "children": [
      {
        "lldpIf": {
          "attributes": {
            "adminTxSt": "disabled",
            "id": "mgmt0"
}}}]}}
{
    imdata:[]
}
<System>
  <lldp-items>
    <inst-items>
      <if-items>
        <If-list>
          <id>mgmt0</id>
          <adminTxSt>disabled</adminTxSt>
        </If-list>
      </if-items>
    </inst-items>
  </lldp-items>
</System>


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

interface mgmt 0-0
 no lldp transmit

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide
https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html