show fpm congested-device database exclude

show fpm congested-device database exclude
import requests
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 fpm congested-device database exclude"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_vsan_list": {
        "ROW_vsan_list": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "pwwn": "01:02:03:04:05:06:07:08"
                        }
                    ]
                },
                "vsan": 1
            }
        ]
    }
}
          <TABLE_vsan_list>
           <ROW_vsan_list>
            <vsan>1</vsan>
            <TABLE_device_info>
             <ROW_device_info>
              <pwwn>01:02:03:04:05:06:07:08</pwwn>
             </ROW_device_info>
            </TABLE_device_info>
           </ROW_vsan_list>
          </TABLE_vsan_list>
         

The show fpm congested-device database exclude command displays the list of devices which are excluded from congested device detection. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm congested-device database exclude

VSAN: 1
------------------------------------
PWWN | FCID
------------------------------------
01:02:03:04:05:06:07:08 | --

VSAN: 80
-----------------------------------
No congested devices found
ParameterDescriptionTypeValue
vsanVsan ID Integer['1-4093']
pwwn Port WWN of the deviceString
fcidFCID of the deviceString

show fpm congested-device database local

show fpm congested-device database local
import requests
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 fpm congested-device database local"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_vsan_list": {
        "ROW_vsan_list": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "detect_type": "static",
                            "event_type": "credit-stall",
                            "fcid": "0x9e0000",
                            "pwwn": "20:09:8c:60:4f:0d:23:50"
                        }
                    ]
                },
                "vsan": 80
            }
        ]
    }
}
          <TABLE_vsan_list>
           <ROW_vsan_list>
            <vsan>80</vsan>
            <TABLE_device_info>
             <ROW_device_info>
              <pwwn>20:09:8c:60:4f:0d:23:50</pwwn>
              <fcid>0x9e0000</fcid>
              <event_type>credit-stall</event_type>
              <detect_type>static</detect_type>
             </ROW_device_info>
            </TABLE_device_info>
           </ROW_vsan_list>
          </TABLE_vsan_list>
         

The show fpm congested-device database local command displays database of local congested devices. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm congested-device database local

VSAN: 1
-----------------------------------
No congested devices found

VSAN: 80
--------------------------------------------------------------------------------------------------
PWWN | FCID | Event type | Detect type | Detect Time
--------------------------------------------------------------------------------------------------
20:09:8c:60:4f:0d:23:50 | 0x9e0000 | credit-stall | static | --
ParameterDescriptionTypeValue
vsanVsan IDInteger['1-4093']
event_typeEvent due to which the device was marked as congestedString['credit-stall', '--']
detect_typeShows how the event was detectedString['local-pmon', 'static', 'remote', 'exclude']
pwwnPort WWN of the deviceString
fcidFCID of the deviceString
detect_timeShows when the device was detected as congestedString

show fpm congested-device database remote

show fpm congested-device database remote
import requests
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 fpm congested-device database remote"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
  "TABLE_vsan_list": {
    "ROW_vsan_list": {
      "vsan": 1001,
      "TABLE_device_info": {
        "ROW_device_info": {
          "pwwn": "21:00:34:80:0d:6c:a7:63",
          "fcid": "0xec0000",
          "event_type": "credit-stall",
          "detect_type": "remote",
          "detect_time": "Thu Mar 4 05:35:55 2021"
        }
      }
    }
  }
}
      <TABLE_vsan_list>
        <ROW_vsan_list>
          <vsan>1001</vsan>
          <TABLE_device_info>
            <ROW_device_info>
              <pwwn>21:00:34:80:0d:6c:a7:63</pwwn>
              <fcid>0xec0000</fcid>
              <event_type>credit-stall</event_type>
              <detect_type>remote</detect_type>
              <detect_time>Thu Mar 4 05:35:55 2021</detect_time>
            </ROW_device_info>
          </TABLE_device_info>
        </ROW_vsan_list>
      </TABLE_vsan_list>

The show fpm congested-device database remote command displays database of remote congested devices. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm congested-device database remote

VSAN: 1
-----------------------------------
No congested devices found

VSAN: 1001
-----------------------------------------------------------------------------------------
PWWN | FCID | Event type | Detect type | Detect Time
-----------------------------------------------------------------------------------------
20:09:8c:60:4f:0d:23:50 | 0x9e0000 | credit-stall | remote | Thu Mar 4 05:35:55 2021
ParameterDescriptionTypeValue
vsan Vsan IDInteger['1-4093']
detect_type Shows how the event was detectedString['local-pmon', 'static', 'remote', 'exclude']
event_typeEvent due to which the device was marked as congestedString['credit-stall', '--']
pwwn Port WWN of the deviceString
fcid FCID of the deviceString
detect_time Shows when the device was detected as congestedString

show fpm congested-device database static

show fpm congested-device database static
import requests
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 fpm congested-device database static"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_vsan_list": {
        "ROW_vsan_list": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "event_type": "credit-stall",
                            "fcid": "0x9e0000",
                            "pwwn": "20:09:8c:60:4f:0d:23:50"
                        }
                    ]
                },
                "vsan": 80
            }
        ]
    }
}
          <TABLE_vsan_list>
           <ROW_vsan_list>
            <vsan>80</vsan>
            <TABLE_device_info>
             <ROW_device_info>
              <pwwn>20:09:8c:60:4f:0d:23:50</pwwn>
              <fcid>0x9e0000</fcid>
              <event_type>credit-stall</event_type>
             </ROW_device_info>
            </TABLE_device_info>
           </ROW_vsan_list>
          </TABLE_vsan_list>
         

The show fpm congested-device database static command displays the list of devices which are explicitly configured as congested. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm congested-device database static

VSAN: 1
-----------------------------------
No congested devices found

VSAN: 80
--------------------------------------------------
PWWN | FCID | Event type
--------------------------------------------------
20:09:8c:60:4f:0d:23:50 | 0x9e0000 | credit-stall
ParameterDescriptionTypeValue
vsanVsan IDInteger['1-4093']
event_typeEvent due to which the device was marked as congestedString['credit-stall', '--']
pwwnPort WWN of the deviceString
fcidFCID of the deviceString

show fpm dirl exclude

show fpm dirl exclude
import requests
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 fpm dirl exclude"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_ingress_rate_exclude_list": {
        "ROW_ingress_rate_exclude_list": [
            {
                "interface": [
                    "fc1/1",
                    "fc1/2"
                ]
            }
        ]
    }
}
        <TABLE_ingress_rate_exclude_list>
         <ROW_ingress_rate_exclude_list>
          <interface>fc1/1</interface>
          <interface>fc1/2</interface>
         </ROW_ingress_rate_exclude_list>
        </TABLE_ingress_rate_exclude_list>
       

The show fpm dirl exclude command displays the interfaces excluded from dynamic ingress-rate limiting. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm dirl exclude

--------------
Interface
--------------
fc1/1
fc1/2
ParameterDescriptionType
interfaceExcluded list of interfaces String List

show fpm fpin

show fpm fpin
import requests
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 fpm fpin"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_vsan_list": {
        "ROW_vsan_list": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "TABLE_fpin_last_sent_timestamp": {
                                "ROW_fpin_last_sent_timestamp": [
                                    {
                                        "congestion_notification": "Thu Feb 25 21:08:05 2021",
                                        "link_integrity_notification": "-",
                                        "peer_congestion_notification": "Tue Feb 23 09:01:40 2021",
                                        "priority_update_notification": "Tue Feb 23 09:01:40 2021"
                                    }
                                ]
                            },
                            "TABLE_fpin_sent_count": {
                                "ROW_fpin_sent_count": [
                                    {
                                        "congestion_notification": 227,
                                        "link_integrity_notification": 0,
                                        "peer_congestion_notification": 9,
                                        "priority_update_notification": 10
                                    }
                                ]
                            },
                            "fcid": "0x9e0000",
                            "last_rdf_timestamp": "Thu Feb 18 11:18:40 2021",
                            "negotiated_rdf_registrations": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Priority Update Notification"
                            ],
                            "pwwn": "20:09:8c:60:4f:0d:23:50",
                            "rdf_registrations": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Delivery Notification",
                                "Priority Update Notification"
                            ]
                        },
                        {
                            "TABLE_fpin_last_sent_timestamp": {
                                "ROW_fpin_last_sent_timestamp": [
                                    {
                                        "congestion_notification": "Tue Feb 23 09:01:40 2021",
                                        "link_integrity_notification": "-",
                                        "peer_congestion_notification": "Thu Feb 25 21:08:05 2021",
                                        "priority_update_notification": "Thu Feb 25 21:08:05 2021"
                                    }
                                ]
                            },
                            "TABLE_fpin_sent_count": {
                                "ROW_fpin_sent_count": [
                                    {
                                        "congestion_notification": 9,
                                        "link_integrity_notification": 0,
                                        "peer_congestion_notification": 227,
                                        "priority_update_notification": 228
                                    }
                                ]
                            },
                            "fcid": "0x9e0020",
                            "last_rdf_timestamp": "Thu Feb 18 11:18:40 2021",
                            "negotiated_rdf_registrations": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Priority Update Notification"
                            ],
                            "pwwn": "20:0a:8c:60:4f:0d:23:50",
                            "rdf_registrations": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Delivery Notification",
                                "Priority Update Notification"
                            ]
                        }
                    ]
                },
                "vsan": 80
            }
        ]
    }
}
        <TABLE_vsan_list>
         <ROW_vsan_list>
          <vsan>80</vsan>
          <TABLE_device_info>
           <ROW_device_info>
            <fcid>0x9e0000</fcid>
            <pwwn>20:09:8c:60:4f:0d:23:50</pwwn>
            <rdf_registrations>Congestion Notification</rdf_registrations>
            <rdf_registrations>Peer Congestion Notification</rdf_registrations>
            <rdf_registrations>Link Integrity Notification</rdf_registrations>
            <rdf_registrations>Delivery Notification</rdf_registrations>
            <rdf_registrations>Priority Update Notification</rdf_registrations>
            <negotiated_rdf_registrations>Congestion Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Peer Congestion Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Link Integrity Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Priority Update Notification</negotiated_rdf_registrations>
            <last_rdf_timestamp>Thu Feb 18 11:18:40 2021</last_rdf_timestamp>
            <TABLE_fpin_sent_count>
             <ROW_fpin_sent_count>
              <link_integrity_notification>0</link_integrity_notification>
              <congestion_notification>227</congestion_notification>
              <peer_congestion_notification>9</peer_congestion_notification>
              <priority_update_notification>10</priority_update_notification>
             </ROW_fpin_sent_count>
            </TABLE_fpin_sent_count>
            <TABLE_fpin_last_sent_timestamp>
             <ROW_fpin_last_sent_timestamp>
              <link_integrity_notification>-</link_integrity_notification>
              <congestion_notification>Thu Feb 25 21:08:05 2021</congestion_notification>
              <peer_congestion_notification>Tue Feb 23 09:01:40 2021</peer_congestion_notification>
              <priority_update_notification>Tue Feb 23 09:01:40 2021</priority_update_notification>
             </ROW_fpin_last_sent_timestamp>
            </TABLE_fpin_last_sent_timestamp>
           </ROW_device_info>
           <ROW_device_info>
            <fcid>0x9e0020</fcid>
            <pwwn>20:0a:8c:60:4f:0d:23:50</pwwn>
            <rdf_registrations>Congestion Notification</rdf_registrations>
            <rdf_registrations>Peer Congestion Notification</rdf_registrations>
            <rdf_registrations>Link Integrity Notification</rdf_registrations>
            <rdf_registrations>Delivery Notification</rdf_registrations>
            <rdf_registrations>Priority Update Notification</rdf_registrations>
            <negotiated_rdf_registrations>Congestion Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Peer Congestion Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Link Integrity Notification</negotiated_rdf_registrations>
            <negotiated_rdf_registrations>Priority Update Notification</negotiated_rdf_registrations>
            <last_rdf_timestamp>Thu Feb 18 11:18:40 2021</last_rdf_timestamp>
            <TABLE_fpin_sent_count>
             <ROW_fpin_sent_count>
              <link_integrity_notification>0</link_integrity_notification>
              <congestion_notification>9</congestion_notification>
              <peer_congestion_notification>227</peer_congestion_notification>
              <priority_update_notification>228</priority_update_notification>
             </ROW_fpin_sent_count>
            </TABLE_fpin_sent_count>
            <TABLE_fpin_last_sent_timestamp>
             <ROW_fpin_last_sent_timestamp>
              <link_integrity_notification>-</link_integrity_notification>
              <congestion_notification>Tue Feb 23 09:01:40 2021</congestion_notification>
              <peer_congestion_notification>Thu Feb 25 21:08:05 2021</peer_congestion_notification>
              <priority_update_notification>Thu Feb 25 21:08:05 2021</priority_update_notification>
             </ROW_fpin_last_sent_timestamp>
            </TABLE_fpin_last_sent_timestamp>
           </ROW_device_info>
          </TABLE_device_info>
         </ROW_vsan_list>
        </TABLE_vsan_list>
       

The show fpm fpin command displays statistics related to Fabric Performance Impact Notification(FPIN). For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm fpin

C: Congestion Notification Descriptor
P: Peer Congestion Notification Descriptor
L: Link Integrity Notification Descriptor
D: Delivery Notification Descriptor
U: Priority Update Notification Descriptor
A: Alarm Signal
W: Warning Signal

VSAN: 1
---------------------------------------------------------------------------------------------
No registered devices found

VSAN: 80
---------------------------------------------------------------------------------------------
FCID | RDF | FPIN sent | Last FPIN sent timestamp
PWWN | Registered | Negotiated | count |
| Timestamp | |
---------------------------------------------------------------------------------------------
0x9e0000 | CPLDU | CPLU | L: 0 | L: --
20:09:8c:60:4f:0d:23:50 | Thu Feb 18 11:18:40 2021 | C: 229 | C: Thu Feb 25 21:41:25 2021
| | | P: 9 | P: Tue Feb 23 09:01:40 2021
| | | U: 10 | U: Tue Feb 23 09:01:40 2021

0x9e0020 | CPLDU | CPLU | L: 0 | L: --
20:0a:8c:60:4f:0d:23:50 | Thu Feb 18 11:18:40 2021 | C: 9 | C: Tue Feb 23 09:01:40 2021
| | | P: 229 | P: Thu Feb 25 21:41:25 2021
| | | U: 230 | U: Thu Feb 25 21:41:25 2021
ParameterDescriptionTypeValue
rdf_registrationsFPIN registrations from the deviceString List['Link Integrity Notification', 'Priority Update Notification', 'Congestion Notification', 'Delivery Notification', 'Peer Congestion Notification']
negotiated_rdf_registrationsNegotiated FPIN registrationsString List['Peer Congestion Notification', 'Congestion Notification', 'Link Integrity Notification', 'Priority Update Notification']
vsanVsan IDInteger['1-4093']
pwwnPort WWN of the deviceString
fcidFCID of the deviceString
last_rdf_timestampTimestamp of last RDF receivedString
congestion_notificationInfo related to congestion FPINString
priority_update_notificationInfo related to prioity update FPINString
peer_congestion_notification Info related to peer congestion FPINString
link_integrity_notification Info related to integrity FPINString

show fpm ingress-rate-limit status

show fpm ingress-rate-limit status
import requests
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 fpm ingress-rate-limit status"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_interface_ingress_rate": {
        "ROW_interface_ingress_rate": [
            {
                "ingress_rate_perc": "90.0000",
                "ingress_type": "static",
                "interface": "fc1/1",
                "prev_action": "-",
                "time": "Thu Feb 25 07:40:12 2021\n"
            },
            {
                "ingress_rate_perc": "80.0000",
                "ingress_type": "static",
                "interface": "fc1/2",
                "prev_action": "-",
                "time": "Thu Feb 25 07:40:07 2021\n"
            }
        ]
    },
    "dirl_configuration": {
        "recovery_rate_perc": "5",
        "reduction_rate_perc": "50"
    }
}
         <dirl_configuration>
          <reduction_rate_perc>50</reduction_rate_perc>
          <recovery_rate_perc>5</recovery_rate_perc>
         </dirl_configuration>
         <TABLE_interface_ingress_rate>
          <ROW_interface_ingress_rate>
           <interface>fc1/1</interface>
           <ingress_rate_perc>90.0000</ingress_rate_perc>
           <ingress_type>static</ingress_type>
           <prev_action>-</prev_action>
           <time>Thu Feb 25 07:40:12 2021
</time>
          </ROW_interface_ingress_rate>
          <ROW_interface_ingress_rate>
           <interface>fc1/2</interface>
           <ingress_rate_perc>80.0000</ingress_rate_perc>
           <ingress_type>static</ingress_type>
           <prev_action>-</prev_action>
           <time>Thu Feb 25 07:40:07 2021
</time>
          </ROW_interface_ingress_rate>
         </TABLE_interface_ingress_rate>
        

The show fpm ingress-rate-limit status command displays information about interface ingress-rate limit status. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm ingress-rate-limit status

DIRL reduction rate: 50%
DIRL recovery rate: 5%
--------------------------------------------------------------------------------------
Interface Ingress-rate(%) Rate-limit-type Previous action Last update time
--------------------------------------------------------------------------------------
fc1/1 90.0000 static - Thu Feb 25 07:40:12 2021

fc1/2 80.0000 static - Thu Feb 25 07:40:07 2021
ParameterDescriptionTypeValue
ingress_typeIngress rate typeString['dynamic', 'static', 'none']
prev_actionIngress rate limit previous actionString['rate-recovery', 'rate-reduction', 'rate-reduction-max', 'static RL', 'full-recovery', 'none']
dirl_configurationDirl configuration infoString
recovery_rate_percCongestion recovery rate of interface ingress-rate percentageString
reduction_rate_percReduction rate of interface ingress-rate percentageString
interfaceInterface IDString
ingress_rate_percIngress-rate appliedString
timeLast ingress-rate applied time (in the format ddd MM dd HH:mm:ss yyyy)String

show fpm ingress-rate-limit status interface <*interface_id*>

show fpm ingress-rate-limit status interface <interface_id>
import requests
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 fpm ingress-rate-limit status interface <interface_id>"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_interface_ingress_rate": {
        "ROW_interface_ingress_rate": [
            {
                "ingress_rate_perc": "90.0000",
                "ingress_type": "static",
                "interface": "fc1/1",
                "prev_action": "-",
                "time": "Thu Feb 25 07:40:12 2021\n"
            }
        ]
    },
    "dirl_configuration": {
        "recovery_rate_perc": "5",
        "reduction_rate_perc": "50"
    }
}
         <dirl_configuration>
          <reduction_rate_perc>50</reduction_rate_perc>
          <recovery_rate_perc>5</recovery_rate_perc>
         </dirl_configuration>
         <TABLE_interface_ingress_rate>
          <ROW_interface_ingress_rate>
           <interface>fc1/1</interface>
           <ingress_rate_perc>90.0000</ingress_rate_perc>
           <ingress_type>static</ingress_type>
           <prev_action>-</prev_action>
           <time>Thu Feb 25 07:40:12 2021
</time>
          </ROW_interface_ingress_rate>
         </TABLE_interface_ingress_rate>
        

The show fpm ingress-rate-limit status interface <*interface_id*> command displays information about interface ingress-rate limit status. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm ingress-rate-limit status interface fc1/1

DIRL reduction rate: 50%
DIRL recovery rate: 5%
--------------------------------------------------------------------------------------
Interface Ingress-rate(%) Rate-limit-type Previous action Last update time
--------------------------------------------------------------------------------------
fc1/1 90.0000 static - Thu Feb 25 07:40:12 2021
ParameterDescriptionTypeValue
ingress_type Ingress rate typeString['dynamic', 'static', 'none']
prev_action Ingress rate limit previous actionString['rate-recovery', 'rate-reduction', 'rate-reduction-max', 'static RL', 'full-recovery', 'none']
dirl_configuration Dirl configuration infoString
recovery_rate_perc Congestion recovery rate of interface ingress-rate percentageString
ingress_rate_perc Ingress-rate appliedString
timeLast ingress-rate applied time (in the format ddd MM dd HH:mm:ss yyyy)String
interfaceInterface IDString
reduction_rate_perc Reduction rate of interface ingress-rate percentageString

show fpm registration congestion-signal

show fpm registration congestion-signal
import requests
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 fpm registration congestion-signal"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_fpm_registration_congestion_signal": {
        "ROW_fpm_registration_congestion_signal": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "TABLE_device_rx": {
                                "ROW_device_rx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 5000
                                    }
                                ]
                            },
                            "TABLE_device_tx": {
                                "ROW_device_tx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 1000
                                    }
                                ]
                            },
                            "TABLE_negotiated_tx": {
                                "ROW_negotiated_tx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 5000
                                    }
                                ]
                            },
                            "fcid": "0x9e0000",
                            "pwwn": "20:09:8c:60:4f:0d:23:50"
                        },
                        {
                            "TABLE_device_rx": {
                                "ROW_device_rx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 5000
                                    }
                                ]
                            },
                            "TABLE_device_tx": {
                                "ROW_device_tx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 1000
                                    }
                                ]
                            },
                            "TABLE_negotiated_tx": {
                                "ROW_negotiated_tx": [
                                    {
                                        "capability": [
                                            "Warning",
                                            "Alarm"
                                        ],
                                        "interval_ms": 5000
                                    }
                                ]
                            },
                            "fcid": "0x9e0020",
                            "pwwn": "20:0a:8c:60:4f:0d:23:50"
                        }
                    ]
                },
                "vsan": 80
            }
        ]
    }
}
         <TABLE_fpm_registration_congestion_signal>
          <ROW_fpm_registration_congestion_signal>
           <vsan>80</vsan>
           <TABLE_device_info>
            <ROW_device_info>
             <fcid>0x9e0000</fcid>
             <pwwn>20:09:8c:60:4f:0d:23:50</pwwn>
             <TABLE_device_tx>
              <ROW_device_tx>
               <interval_ms>1000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_device_tx>
             </TABLE_device_tx>
             <TABLE_device_rx>
              <ROW_device_rx>
               <interval_ms>5000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_device_rx>
             </TABLE_device_rx>
             <TABLE_negotiated_tx>
              <ROW_negotiated_tx>
               <interval_ms>5000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_negotiated_tx>
             </TABLE_negotiated_tx>
            </ROW_device_info>
            <ROW_device_info>
             <fcid>0x9e0020</fcid>
             <pwwn>20:0a:8c:60:4f:0d:23:50</pwwn>
             <TABLE_device_tx>
              <ROW_device_tx>
               <interval_ms>1000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_device_tx>
             </TABLE_device_tx>
             <TABLE_device_rx>
              <ROW_device_rx>
               <interval_ms>5000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_device_rx>
             </TABLE_device_rx>
             <TABLE_negotiated_tx>
              <ROW_negotiated_tx>
               <interval_ms>5000</interval_ms>
               <capability>Warning</capability>
               <capability>Alarm</capability>
              </ROW_negotiated_tx>
             </TABLE_negotiated_tx>
            </ROW_device_info>
           </TABLE_device_info>
          </ROW_fpm_registration_congestion_signal>
         </TABLE_fpm_registration_congestion_signal>
        

The show fpm registration congestion-signal command displays the device registration for congestion signal primitives. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm registration congestion-signal

A: Alarm
W: Warning
ms: milliseconds

VSAN: 1
---------------------------------------------------------------------------------------------
No registered devices found

VSAN: 80
---------------------------------------------------------------------------------------------
FCID | PWWN | Device Tx | Device Rx | Negotiated Tx
| | Capa- | Interval | Capa- | Interval | Capa- | Interval
| | bility| (ms) | bility| (ms) | bility| (ms)
---------------------------------------------------------------------------------------------
0x9e0000 | 20:09:8c:60:4f:0d:23:50 | AW | 1000 | AW | 5000 | AW | 5000
0x9e0020 | 20:0a:8c:60:4f:0d:23:50 | AW | 1000 | AW | 5000 | AW | 5000
ParameterDescriptionTypeValue
capabilityDevice capabilityString List['Alarm', 'Warning']
vsanVsan IDInteger['1-4093']
pwwnPort WWN of the deviceString
interval_msNegotiated interval between the signals in millisecondsInteger
fcidFCID of the deviceString

show fpm registration summary

show fpm registration summary
import requests
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 fpm registration summary"
  "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)

json_output = json.loads(output)["ins_api"]["outputs"]["output"]["body"]
print(json.dumps(json_output, indent=4, sort_keys=True))
{
    "TABLE_fpm_registration_summary": {
        "ROW_fpm_registration_summary": [
            {
                "TABLE_device_info": {
                    "ROW_device_info": [
                        {
                            "congestion_signal_registration": [
                                "Warning",
                                "Alarm"
                            ],
                            "fcid": "0x9e0000",
                            "fpin_registration": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Delivery Notification",
                                "Priority Update Notification"
                            ],
                            "pwwn": "20:09:8c:60:4f:0d:23:50"
                        },
                        {
                            "congestion_signal_registration": [
                                "Warning",
                                "Alarm"
                            ],
                            "fcid": "0x9e0020",
                            "fpin_registration": [
                                "Congestion Notification",
                                "Peer Congestion Notification",
                                "Link Integrity Notification",
                                "Delivery Notification",
                                "Priority Update Notification"
                            ],
                            "pwwn": "20:0a:8c:60:4f:0d:23:50"
                        }
                    ]
                },
                "vsan": 80
            }
        ]
    }
}
         <TABLE_fpm_registration_summary>
          <ROW_fpm_registration_summary>
           <vsan>80</vsan>
           <TABLE_device_info>
            <ROW_device_info>
             <fcid>0x9e0000</fcid>
             <pwwn>20:09:8c:60:4f:0d:23:50</pwwn>
             <fpin_registration>Congestion Notification</fpin_registration>
             <fpin_registration>Peer Congestion Notification</fpin_registration>
             <fpin_registration>Link Integrity Notification</fpin_registration>
             <fpin_registration>Delivery Notification</fpin_registration>
             <fpin_registration>Priority Update Notification</fpin_registration>
             <congestion_signal_registration>Warning</congestion_signal_registration>
             <congestion_signal_registration>Alarm</congestion_signal_registration>
            </ROW_device_info>
            <ROW_device_info>
             <fcid>0x9e0020</fcid>
             <pwwn>20:0a:8c:60:4f:0d:23:50</pwwn>
             <fpin_registration>Congestion Notification</fpin_registration>
             <fpin_registration>Peer Congestion Notification</fpin_registration>
             <fpin_registration>Link Integrity Notification</fpin_registration>
             <fpin_registration>Delivery Notification</fpin_registration>
             <fpin_registration>Priority Update Notification</fpin_registration>
             <congestion_signal_registration>Warning</congestion_signal_registration>
             <congestion_signal_registration>Alarm</congestion_signal_registration>
            </ROW_device_info>
           </TABLE_device_info>
          </ROW_fpm_registration_summary>
         </TABLE_fpm_registration_summary>
        

The show fpm registration summary command displays the summary of device registrations. For command descriptions, see the see the Cisco MDS 9000 Series Switches Command References.

Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.5(1) or later.

CLI Output
switch# show fpm registration summary

C: Congestion Notification Descriptor
P: Peer Congestion Notification Descriptor
L: Link Integrity Notification Descriptor
D: Delivery Notification Descriptor
U: Priority Update Notification Descriptor
A: Alarm Signal
W: Warning Signal

VSAN: 1
----------------------------------------------------------------------
No registered devices found

VSAN: 80
----------------------------------------------------------------------
FCID | PWWN | FPIN | Congestion Signal
| | Registrations | Registrations
----------------------------------------------------------------------
0x9e0000 | 20:09:8c:60:4f:0d:23:50 | CPLDU | AW
0x9e0020 | 20:0a:8c:60:4f:0d:23:50 | CPLDU | AW
ParameterDescriptionTypeValue
congestion_signal_registrationRegistered congestion signals levelsString List['Alarm', 'Warning']
fpin_registrationRegistered FPIN descriptorsString List['Link Integrity Notification', 'Priority Update Notification', 'Congestion Notification', 'Delivery Notification', 'Peer Congestion Notification']
vsanVsan IDInteger['1-4093']
pwwnPort WWN of the deviceString
fcidFCID of the deviceString