Querying MSDP Ephemeral Data
Querying the MSDP Domain
Querying the MSDP Domain
GET http://<IP_Address>/api/node/mo/sys/msdp/inst/dom-default.json
{
"totalCount": "1",
"imdata": [
{
"msdpDom": {
"attributes": {
"childAction": "",
"ctrl": "",
"dn": "sys/msdp/inst/dom-default",
"modTs": "2016-12-07T03:47:02.900+00:00",
"name": "default",
"origIf": "eth1/10",
"persistentOnReload": "true",
"reConnIntvl": "10",
"srcActiveMsgIntvl": "120",
"status": "",
"uid": "0"
},
"children": [
{
"msdpPeer": {
"attributes": {
"addr": "192.0.20.123",
"adminSt": "disabled",
"asn": "200",
"childAction": "",
"connTmrTs": "1970-01-01T00:00:00.000+00:00",
"descr": "This is an example of a peer",
"discontinuityTs": "2016-12-07T03:47:02.947+00:00",
"establishTransitions": "0",
"kaIntvl": "50",
"kaTimeout": "70",
"lastResetOperQual": "Password change",
"localPort": "unspecified",
"modTs": "2016-12-07T17:03:55.036+00:00",
"name": "",
"operSt": "admin-down",
"persistentOnReload": "true",
"remPort": "unspecified",
"rn": "peer-[192.0.20.123]",
"srcActiveMsgLimit": "9999999",
"srcIf": "eth1/9",
"status": "",
"uid": "22322",
"upTs": "2016-12-07T03:47:02.961+00:00"
},
"children": [
{
"msdpMeshGrp": {
"attributes": {
"childAction": "",
"descr": "",
"grpName": "my_mesh_grp1",
"modTs": "2016-12-07T17:04:25.140+00:00",
"name": "",
"persistentOnReload": "true",
"rn": "meshgrp",
"status": "",
"uid": "22322"
}}},{
"msdpAuthP": {
"attributes": {
"childAction": "",
"descr": "",
"key": "",
"modTs": "2016-12-07T03:47:02.900+00:00",
"name": "",
"persistentOnReload": "true",
"rn": "auth",
"status": "",
"type": "none",
"uid": "22322"
}}}]}}]}}]}
This example returns the MSDP configuration for the default MSDP domain.
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
msdpDom | sys/msdp/inst/dom-{name} |
msdpPeer | sys/msdp/inst/dom-{name}/peer-{[addr]} |
msdpMeshGrp | sys/msdp/inst/dom-{name}/peer-{[addr]}/meshgrp |
msdpAuthP | sys/msdp/inst/dom-{name}/peer-{[addr]}/auth |
msdpDom Properties
The following table contains information about the msdpDom properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
ctrl | msdp:DomCtrl (scalar:Bitmask8) | Flush routes | SELECTION: 1 - flush-routes |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
origIf | nw:IfId (base:IfIndex) | Originator Interface identifying IP address in RP field of Source-Active message. Supported interfaces include Ethernet-like, port/channel, loopback and vlan interfaces | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
reConnIntvl | msdp:ReConnIntvl (scalar:Uint16) | Reconnect Interval | RANGE: [1 , 60] DEFAULT: 10 |
srcActiveMsgIntvl | msdp:SrcActiveMsgIntvl (scalar:Uint16) | Source Active message Interval | RANGE: [60 , 65535] DEFAULT: 60 |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
uid | scalar:Uint16 | A unique identifier for this object. |
msdpPeer Properties
The following table contains information about the msdpPeer properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
addr | address:Ip | IP address of MSDP Peer | Value must match ipv4 or ipv6 known format |
adminSt | nw:AdminSt (scalar:Enum8) | Administrative state enabled/disabled | SELECTION: 1 - enabled 2 - disabled DEFAULT: enabled |
asn | msdp:Asn (string:Basic) | Autonomous System Number | A sequence of characters DEFAULT: none |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
connTmrTs | scalar:Date | Connect Timer Timestamp | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z |
descr | msdp:Descr | Description of the specified attribute | |
discontinuityTs | scalar:Date | Discontinuity Time | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z |
establishTransitions | nw:Counter32 (scalar:Uint32) | Count of established transitions | RANGE: [0, 4294967295] |
kaIntvl | msdp:KaIntvl (scalar:Uint16) | Keepalive interval, how often you send keepalives | RANGE: [1 , 60] DEFAULT: 60 |
kaTimeout | msdp:KaTimeout (scalar:Uint16) | Keepalive Timeout | RANGE: [1 , 90] DEFAULT: 90 |
lastResetOperQual | msdp:LastResetT (string:Basic) | Reason for last reset | MAX SIZE: 255 |
localPort | l4:Port (scalar:Uint16) | Local TCP connection port to this peer | RANGE: [0 , 0xffff] DEFAULT: unspecified |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
operSt | msdp:OperSt (scalar:Enum8) | Operational Status | SELECTION: 0 - inactive 1 - down 2 - admin-down 3 - connecting 4 - listening 5 - established DEFAULT: inactive |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
remPort | l4:Port (scalar:Uint16) | Remote TCP connection port to this peer | RANGE: [0 , 0xffff] DEFAULT: unspecified |
rn | reference:BinRN | Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names. | |
srcActiveMsgLimit | msdp:SrcActiveMsgLimit (scalar:Uint32) | Source Active msg Limit | RANGE: [0 , 4294967295] DEFAULT: 4294967295 |
srcIf | nw:IfId (base:IfIndex) | Source Interface. Supported interfaces include Ethernet-like, port/channel, loopback and vlan interfaces | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
uid | scalar:Uint16 | A unique identifier for this object. | |
upTs | scalar:Date | Uptime | DATE FORMAT: %Y-%m-%dT%H:%M:%S.%f%z |
msdpMeshGrp Properties
The following table contains information about the msdpMeshGrp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
descr | pol:Descr | Description of the specified attribute | |
grpName | msdp:GrpNameT (string:Basic) | Mesh Group Name | MAX SIZE: 254 |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
name | pol:ObjName (naming:Name256) | Object name | MAX SIZE: 64 |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
rn | reference:BinRN | Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names. | |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
uid | scalar:Uint16 | A unique identifier for this object. |
msdpAuthP Properties
The following table contains information about the msdpAuthP properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
descr | pol:Descr | Description of the specified attribute | |
key | msdp:AuthKey (string:Password) | Authentication key | |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
name | pol:ObjName (naming:Name256) | Object name | MAX SIZE: 64 |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
rn | reference:BinRN | Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names. | |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
type | msdp:AuthT (scalar:Enum8) | Authentication type | SELECTION: 0 - none 1 - md5 DEFAULT: none |
uid | scalar:Uint16 | A unique identifier for this object. |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:
Querying Ephemeral Operational Data
- **rsp-foreign-subtree=ephemeral**—Specifies that this is an ephemeral request, retrieving high-volume data. - **rsp-subtree=full**—Should be specified to retrieve all children under the dn query. - **batch-id**—An integer with a range of 1 to N. You can specify in increments (1, 2, 3, …) to retrieve data in iteration. - **batch-size**—An integer with a range of 1 to 100,000. You can specify the maximum number of managed objects to be retrieved in each batch iteration.Note: This was added in Release Cisco NX-OS Release 7.0(3)I7(2).
Command | Ephemeral DN Query | Description |
---|---|---|
show ip msdp peer |
http://{{ip}}/api/mo/sys/msdp/inst/dom-default/peer-2.2.2.2.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-size=10&batch-id=1 |
Query MSDP peers |
show ip msdp route |
http://{{ip}}/api/mo/sys/msdp/inst/dom-default/db-route.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-size=10000&batch-id=1 |
Query MSDP routes |
show ip msdp source |
http://{{ip}}/api/mo/sys/msdp/inst/dom-default/db-source.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-size=10000&batch-id=1 |
Query MSDP sources |
Ephemeral REST Output
Ephemeral REST Output
http://{{ip}}/api/mo/sys/arp/inst/dom-management/db-ip.json?rsp-subtree=full&rsp-foreign-subtree=ephemeral&batch-id=1&batch-size=20000
{
"totalCount": "1",
"imdata": [
{
"msdpPeer": {
"attributes": {
"addr": "2.2.2.2",
"adminSt": "enabled",
"asn": "",
"childAction": "",
"descr": "",
"dn": "sys/msdp/inst/dom-default/peer-[2.2.2.2]",
"kaIntvl": "60",
"kaTimeout": "90",
"localPort": "59039",
"modTs": "2016-06-28T06:02:48.355+00:00",
"name": "",
"operSt": "established",
"persistentOnReload": "true",
"remPort": "639",
"rstReason": "",
"srcActiveMsgLimit": "4294967295",
"srcIf": "vlan100",
"status": "",
"uid": "0"
},
"children": [
{
"msdpPeerStats": {
"attributes": {
"cacheLfTime": "2016-06-28T18:41:28.923+00:00",
"childAction": "",
"connAttempts": "7",
"connTmrTs": "2016-06-28T18:37:58.923+00:00",
"ctrlMsgsRcvd": "120",
"ctrlMsgsSent": "0",
"dataMsgsRcvd": "0",
"dataMsgsSent": "0",
"disTime": "2016-06-28T18:35:01.484+00:00",
"estTrans": "1",
"kaRcvd": "3",
"kaSent": "4",
"lastMsgRcvd": "2016-06-28T18:37:21.801+00:00",
"modTs": "never",
"notifRcvd": "0",
"notifSent": "0",
"persistentOnReload": "false",
"rn": "peerstats",
"rpfChkFail": "0",
"rtCnt": "10000",
"saReqRcvd": "0",
"saReqSent": "0",
"saRspRcvd": "0",
"saRspSent": "0",
"status": "",
"uptime": "2016-06-28T18:35:01.484+00:00"
}}}]}}]}
Note: The property information for this example was added in Release 9.3(3).
Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.
MO | DN |
---|---|
msdpPeer | sys/msdp/inst/dom-{name}/peer-{[addr]} |
msdpPeerStats | sys/msdp/inst/dom-{name}/peer-{[addr]}/peerstats |
msdpPeer Properties
The following table contains information about the msdpPeer properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
addr | address:Ip | IP address of MSDP Peer | Value must match ipv4 or ipv6 known format |
adminSt | nw:AdminSt (scalar:Enum8) | Administrative state enabled/disabled | SELECTION: 1 - enabled 2 - disabled DEFAULT: enabled |
asn | msdp:Asn (string:Basic) | Autonomous System Number | A sequence of characters DEFAULT: none |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
descr | msdp:Descr | Description of the specified attribute | |
dn | reference:BinRef | A tag or metadata is a non-hierarchical keyword or term assigned to the fabric module. | |
kaIntvl | msdp:KaIntvl (scalar:Uint16) | Keepalive interval, how often you send keepalives | RANGE: [1 , 60] DEFAULT: 60 |
kaTimeout | msdp:KaTimeout (scalar:Uint16) | Keepalive Timeout | RANGE: [1 , 90] DEFAULT: 90 |
localPort | l4:Port (scalar:Uint16) | Local TCP connection port to this peer | RANGE: [0 , 0xffff] DEFAULT: unspecified |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
name | naming:Name256 (string:Basic) | The name of the object. | MAX SIZE: 63 |
operSt | msdp:OperSt (scalar:Enum8) | Operational Status | SELECTION: 0 - inactive 1 - down 2 - admin-down 3 - connecting 4 - listening 5 - established DEFAULT: inactive |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
remPort | l4:Port (scalar:Uint16) | Remote TCP connection port to this peer | RANGE: [0 , 0xffff] DEFAULT: unspecified |
rstReason | NA | NA | NA |
srcActiveMsgLimit | msdp:SrcActiveMsgLimit (scalar:Uint32) | Source Active msg Limit | RANGE: [0 , 4294967295] DEFAULT: 4294967295 |
srcIf | nw:IfId (base:IfIndex) | Source Interface. Supported interfaces include Ethernet-like, port/channel, loopback and vlan interfaces | Must match first field in the output of `show intf brief`. Example: Eth1/1 or Vlan100 |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
uid | scalar:Uint16 | A unique identifier for this object. |
msdpPeerStats Properties
The following table contains information about the msdpPeerStats properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.
Property Name | Data Type | Description | Values |
---|---|---|---|
cacheLfTime | NA | NA | NA |
childAction | mo:ModificationChildAction scalar:Bitmask32 | Delete or ignore. For internal use only. | SELECTION:
|
connAttempts | nw:Counter32 (scalar:Uint32) | Count of Connection Attempts | RANGE: [0, 4294967295] |
connTmrTs | NA | NA | NA |
ctrlMsgsRcvd | NA | NA | NA |
ctrlMsgsSent | NA | NA | NA |
dataMsgsRcvd | NA | NA | NA |
dataMsgsSent | NA | NA | NA |
disTime | NA | NA | NA |
estTrans | NA | NA | NA |
kaRcvd | nw:Counter32 (scalar:Uint32) | Count of Keepalives Received | RANGE: [0, 4294967295] |
kaSent | nw:Counter32 (scalar:Uint32) | Count of Keepalives Sent | RANGE: [0, 4294967295] |
lastMsgRcvd | NA | NA | NA |
modTs | mo:TStamp (scalar:Date) | The time when this object was last modified. | SELECTION: 0 - never DEFAULT: never |
notifRcvd | nw:Counter32 (scalar:Uint32) | Count of SA Notifications Received | RANGE: [0, 4294967295] |
notifSent | nw:Counter32 (scalar:Uint32) | Count of SA Notifications Sent | RANGE: [0, 4294967295] |
persistentOnReload | mo:Persistent scalar:Enum8 | NO COMMENTS | SELECTION:
|
rn | reference:BinRN | Identifies an object from its siblings within the context of its parent object. The distinguished name contains a sequence of relative names. | |
rpfChkFail | nw:Counter32 (scalar:Uint32) | Count of RPF Check Failures | RANGE: [0, 4294967295] |
rtCnt | nw:Counter32 (scalar:Uint32) | Count of SG cache entries learnt | RANGE: [0, 4294967295] |
saReqRcvd | nw:Counter32 (scalar:Uint32) | Count of SA Request Received | RANGE: [0, 4294967295] |
saReqSent | nw:Counter32 (scalar:Uint32) | Count of SA Request Sent | RANGE: [0, 4294967295] |
saRspRcvd | nw:Counter32 (scalar:Uint32) | Count of SA Response Received | RANGE: [0, 4294967295] |
saRspSent | nw:Counter32 (scalar:Uint32) | Count of SA Response Sent | RANGE: [0, 4294967295] |
status | mo:ModificationStatus (scalar:Bitmask32) | The upgrade status. This property is for internal use only. | SELECTION: 2 - created 4 - modified 8 - deleted 16 - replaced |
uptime | NA | NA | NA |
Related Documentation
For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:
See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:
https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/
For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide: