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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
vsan | Vsan ID | Integer | ['1-4093'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
vsan | Vsan ID | Integer | ['1-4093'] |
event_type | Event due to which the device was marked as congested | String | ['credit-stall', '--'] |
detect_type | Shows how the event was detected | String | ['local-pmon', 'static', 'remote', 'exclude'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String | |
detect_time | Shows when the device was detected as congested | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
vsan | Vsan ID | Integer | ['1-4093'] |
detect_type | Shows how the event was detected | String | ['local-pmon', 'static', 'remote', 'exclude'] |
event_type | Event due to which the device was marked as congested | String | ['credit-stall', '--'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String | |
detect_time | Shows when the device was detected as congested | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
vsan | Vsan ID | Integer | ['1-4093'] |
event_type | Event due to which the device was marked as congested | String | ['credit-stall', '--'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String |
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 |
---|
|
Parameter | Description | Type |
---|---|---|
interface | Excluded 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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
rdf_registrations | FPIN registrations from the device | String List | ['Link Integrity Notification', 'Priority Update Notification', 'Congestion Notification', 'Delivery Notification', 'Peer Congestion Notification'] |
negotiated_rdf_registrations | Negotiated FPIN registrations | String List | ['Peer Congestion Notification', 'Congestion Notification', 'Link Integrity Notification', 'Priority Update Notification'] |
vsan | Vsan ID | Integer | ['1-4093'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String | |
last_rdf_timestamp | Timestamp of last RDF received | String | |
congestion_notification | Info related to congestion FPIN | String | |
priority_update_notification | Info related to prioity update FPIN | String | |
peer_congestion_notification | Info related to peer congestion FPIN | String | |
link_integrity_notification | Info related to integrity FPIN | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
ingress_type | Ingress rate type | String | ['dynamic', 'static', 'none'] |
prev_action | Ingress rate limit previous action | String | ['rate-recovery', 'rate-reduction', 'rate-reduction-max', 'static RL', 'full-recovery', 'none'] |
dirl_configuration | Dirl configuration info | String | |
recovery_rate_perc | Congestion recovery rate of interface ingress-rate percentage | String | |
reduction_rate_perc | Reduction rate of interface ingress-rate percentage | String | |
interface | Interface ID | String | |
ingress_rate_perc | Ingress-rate applied | String | |
time | Last 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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
ingress_type | Ingress rate type | String | ['dynamic', 'static', 'none'] |
prev_action | Ingress rate limit previous action | String | ['rate-recovery', 'rate-reduction', 'rate-reduction-max', 'static RL', 'full-recovery', 'none'] |
dirl_configuration | Dirl configuration info | String | |
recovery_rate_perc | Congestion recovery rate of interface ingress-rate percentage | String | |
ingress_rate_perc | Ingress-rate applied | String | |
time | Last ingress-rate applied time (in the format ddd MM dd HH:mm:ss yyyy) | String | |
interface | Interface ID | String | |
reduction_rate_perc | Reduction rate of interface ingress-rate percentage | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
capability | Device capability | String List | ['Alarm', 'Warning'] |
vsan | Vsan ID | Integer | ['1-4093'] |
pwwn | Port WWN of the device | String | |
interval_ms | Negotiated interval between the signals in milliseconds | Integer | |
fcid | FCID of the device | String |
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 |
---|
|
Parameter | Description | Type | Value |
---|---|---|---|
congestion_signal_registration | Registered congestion signals levels | String List | ['Alarm', 'Warning'] |
fpin_registration | Registered FPIN descriptors | String List | ['Link Integrity Notification', 'Priority Update Notification', 'Congestion Notification', 'Delivery Notification', 'Peer Congestion Notification'] |
vsan | Vsan ID | Integer | ['1-4093'] |
pwwn | Port WWN of the device | String | |
fcid | FCID of the device | String |