Configuring Monitors

Configuring an Events Exporter for a Monitor

Configuring an Events Exporter for a Monitor
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsCollectorAtt": {
                      "attributes": {
                        "tDn": "sys/hwtelemetry/inbandtelemetry/inst-inbandtelemetry/collector-exptr_1"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rscollectorAtt-items>
                <TelemetryRsCollectorAtt-list>
                  <tDn>/System/hwtelemetry-items/inbandtelemetry-items/inst-items/TelemetryInst-list[mode='inbandtelemetry']/collector-items/TelemetryCollector-list[name='exptr_1']</tDn>
                </TelemetryRsCollectorAtt-list>
              </rscollectorAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  exporter exptr_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 Events Exporter of a Monitor

Deleting an Events Exporter of a Monitor
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsCollectorAtt": {
                      "attributes": {
                        "status": "deleted",
                        "tDn": "sys/hwtelemetry/inbandtelemetry/inst-inbandtelemetry/collector-exptr_1"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rscollectorAtt-items>
                <TelemetryRsCollectorAtt-list xc:operation="delete">
                  <tDn>/System/hwtelemetry-items/inbandtelemetry-items/inst-items/TelemetryInst-list[mode='inbandtelemetry']/collector-items/TelemetryCollector-list[name='exptr_1']</tDn>
                </TelemetryRsCollectorAtt-list>
              </rscollectorAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  no exporter exptr_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 Monitor Record

Configuring a Monitor Record
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsRecordPAtt": {
                      "attributes": {
                        "tDn": "sys/hwtelemetry/inbandtelemetry/inst-inbandtelemetry/recordp-record_1"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rsrecordPAtt-items>
                <tDn>/System/hwtelemetry-items/inbandtelemetry-items/inst-items/TelemetryInst-list[mode='inbandtelemetry']/recordp-items/TelemetryRecordP-list[name='record_1']</tDn>
              </rsrecordPAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  record record_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 a Monitor Record

Deleting a Monitor Record
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsRecordPAtt": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rsrecordPAtt-items xc:operation="delete">
              </rsrecordPAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  no record record_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 Monitor Watchlist

Configuring a Monitor Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsWatchlistAtt": {
                      "attributes": {
                        "tDn": "sys/hwtelemetry/inbandtelemetry/inst-inbandtelemetry/watchlist-watchlist_1"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rswatchlistAtt-items>
                <tDn>/System/hwtelemetry-items/inbandtelemetry-items/inst-items/TelemetryInst-list[mode='inbandtelemetry']/watchlist-items/TelemetryWatchlistAcl-list[name='watchlist_1']</tDn>
              </rswatchlistAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  watchlist 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 a Monitor Watchlist

Deleting a Monitor Watchlist
POST http://<mgmt0_IP>/api/mo/sys/hwtelemetry/inbandtelemetry.json
{
  "inbandTelemetryInt": {
    "children": [
      {
        "inbandTelemetryInst": {
          "attributes": {
            "mode": "inbandtelemetry"
          },
          "children": [
            {
              "inbandTelemetryMonitor": {
                "attributes": {
                  "name": "mon_1"
                },
                "children": [
                  {
                    "inbandTelemetryRsWatchlistAtt": {
                      "attributes": {
                        "status": "deleted"
}}}]}}]}}]}}
{
    imdata:[]
}
<System>
  <hwtelemetry-items>
    <inbandtelemetry-items>
      <inst-items>
        <TelemetryInst-list>
          <mode>inbandtelemetry</mode>
          <monitor-items>
            <TelemetryMonitor-list>
              <name>mon_1</name>
              <rswatchlistAtt-items xc:operation="delete">
              </rswatchlistAtt-items>
            </TelemetryMonitor-list>
          </monitor-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 monitor mon_1
  no watchlist 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