Configuring Watchlists

Configuring an IP Watchlist

Configuring an IP Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryWatchlistAcl": {
                "attributes": {
                  "name": "watchlist_1"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <watchlist-items>
            <TelemetryWatchlistAcl-list>
              <name>watchlist_1</name>
            </TelemetryWatchlistAcl-list>
          </watchlist-items>
        </TelemetryInst-list>
      </inst-items>
    </inbandtelemetry-items>
  </hwtelemetry-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.

hardware-telemetry inband-telemetry
 inband-telemetry watchlist ip watchlist_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

Deleting an IP Watchlist

Deleting an IP Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryWatchlistAcl": {
                "attributes": {
                  "name": "watchlist_1",
                  "status": "deleted"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <watchlist-items>
            <TelemetryWatchlistAcl-list xc:operation="delete">
              <name>watchlist_1</name>
            </TelemetryWatchlistAcl-list>
          </watchlist-items>
        </TelemetryInst-list>
      </inst-items>
    </inbandtelemetry-items>
  </hwtelemetry-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.

hardware-telemetry inband-telemetry
 no inband-telemetry watchlist ip watchlist_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

Configuring a Sequence Number for a Watchlist

Configuring a Sequence Number for a Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryWatchlistAcl": {
                "attributes": {
                  "name": "watchlist_1"
                },
                "children": [
                  {
                    "inbandTelemetryWatchlistAce": {
                      "attributes": {
                        "action": "permit",
                        "dstPrefix": "4.3.2.1",
                        "dstPrefixLength": "2",
                        "seqNum": "123",
                        "srcPrefix": "1.2.3.4",
                        "srcPrefixLength": "2"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <watchlist-items>
            <TelemetryWatchlistAcl-list>
              <name>watchlist_1</name>
              <ace-items>
                <TelemetryWatchlistAce-list>
                  <seqNum>123</seqNum>
                  <action>permit</action>
                  <dstPrefix>4.3.2.1</dstPrefix>
                  <dstPrefixLength>2</dstPrefixLength>
                  <srcPrefix>1.2.3.4</srcPrefix>
                  <srcPrefixLength>2</srcPrefixLength>
                </TelemetryWatchlistAce-list>
              </ace-items>
            </TelemetryWatchlistAcl-list>
          </watchlist-items>
        </TelemetryInst-list>
      </inst-items>
    </inbandtelemetry-items>
  </hwtelemetry-items>
</System>

Note: This example was added in Release 9.2(2).


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.

hardware-telemetry inband-telemetry
 inband-telemetry watchlist ip watchlist_1
  123 permit ip 1.2.3.4/2 4.3.2.1/2

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

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference:
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 Sequence Number for a Watchlist

Deleting a Sequence Number for a Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryWatchlistAcl": {
                "attributes": {
                  "name": "watchlist_1"
                },
                "children": [
                  {
                    "inbandTelemetryWatchlistAce": {
                      "attributes": {
                        "seqNum": "123",
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <watchlist-items>
            <TelemetryWatchlistAcl-list>
              <name>watchlist_1</name>
              <ace-items>
                <TelemetryWatchlistAce-list xc:operation="delete">
                  <seqNum>123</seqNum>
                </TelemetryWatchlistAce-list>
              </ace-items>
            </TelemetryWatchlistAcl-list>
          </watchlist-items>
        </TelemetryInst-list>
      </inst-items>
    </inbandtelemetry-items>
  </hwtelemetry-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.

hardware-telemetry inband-telemetry
 inband-telemetry watchlist ip watchlist_1
  no 123

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