show fdmi database
show fdmi database
import requests
import json
"""
Modify these please
"""
url='http://<ip_address>:<port_number>/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 fdmi database",
"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": {
"ROW_vsan": {
"hba": "21:01:00:1b:32:a1:9b:9e",
"vsan": 2000
}
}
}
<TABLE_vsan>
<ROW_vsan>
<vsan>2000</vsan>
<hba>21:01:00:1b:32:a1:9b:9e</hba>
</ROW_vsan>
</TABLE_vsan>
The show fdmi database command displays the Fabric-Device Management Interface (FDMI) database contents.
For command descriptions, see the Cisco MDS 9000 Series Switches Command References.
Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.4(2a) or later.
| CLI Output |
|---|
|
| Parameter | Description | Type | Sample Values |
|---|---|---|---|
| vsan | VSAN ID | Integer | ['1-4094'] |
| hba | Host bus adapter WWN | String |
show fdmi database detail
show fdmi database detail
import requests
import json
"""
Modify these please
"""
url='http://<ip_address>:<port_number>/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 fdmi database detail",
"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": {
"ROW_vsan": {
"TABLE_hba_id": {
"ROW_hba_id": {
"TABLE_port_id": {
"ROW_port_id": {
"current_speed": "8G",
"host_name": "(none)",
"maximum_frame_size": 2048,
"os_device_name": "qla2xxx:host1",
"port": "21:01:00:1b:32:a1:9b:9e",
"supported_fc4_types": "scsi-fcp",
"supported_speeds": [
"1G",
"2G",
"4G",
"8G"
]
}
},
"driver_ver": "8.07.00.26.06.8-k",
"firmware_ver": "7.03.00 (90d5)",
"hardware_ver": "PX2810403-01 A",
"hba": "21:01:00:1b:32:a1:9b:9e",
"manufacturer": "QLogic Corporation",
"model": "QLE2562",
"model_description": "PCI-Express Dual Channel 8Gb Fibre Channel HBA",
"node_name": "20:01:00:1b:32:a1:9b:9e",
"rom_ver": "2.02",
"serial_num": "LFC0835B06139"
}
},
"vsan": 2000
}
}
}
<TABLE_vsan>
<ROW_vsan>
<vsan>2000</vsan>
<TABLE_hba_id>
<ROW_hba_id>
<hba>21:01:00:1b:32:a1:9b:9e</hba>
<node_name>20:01:00:1b:32:a1:9b:9e</node_name>
<manufacturer>QLogic Corporation</manufacturer>
<serial_num>LFC0835B06139</serial_num>
<model>QLE2562</model>
<model_description>PCI-Express Dual Channel 8Gb Fibre Channel HBA</model_description>
<hardware_ver>PX2810403-01 A</hardware_ver>
<driver_ver>8.07.00.26.06.8-k</driver_ver>
<rom_ver>2.02</rom_ver>
<firmware_ver>7.03.00 (90d5)</firmware_ver>
<TABLE_port_id>
<ROW_port_id>
<port>21:01:00:1b:32:a1:9b:9e</port>
<supported_fc4_types>scsi-fcp</supported_fc4_types>
<supported_speeds>1G</supported_speeds>
<supported_speeds>2G</supported_speeds>
<supported_speeds>4G</supported_speeds>
<supported_speeds>8G</supported_speeds>
<current_speed>8G</current_speed>
<maximum_frame_size>2048</maximum_frame_size>
<os_device_name>qla2xxx:host1</os_device_name>
<host_name>(none)</host_name>
</ROW_port_id>
</TABLE_port_id>
</ROW_hba_id>
</TABLE_hba_id>
</ROW_vsan>
</TABLE_vsan>
The show fdmi database detail command displays the detailed Fabric-Device Management Interface (FDMI) database information.
For command descriptions, see the Cisco MDS 9000 Series Switches Command References.
Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.4(2a) or later.
| CLI Output |
|---|
|
| Parameter | Description | Type | Sample Values |
|---|---|---|---|
| vsan | VSAN ID | Integer | ['1-4094'] |
| current_speed | Current speed of port | String | ['8G 16G 32G'] |
| supported_speed | Supported speed of port | String | ['8G 16G 32G'] |
| manufacturer | Manufacturer of HBA | String | |
| serial_num | Serial number of HBA | String | |
| model | Model of HBA | String | |
| hardware_ver | Hardware version of HBA | String | |
| driver_ver | Driver version of HBA | String | |
| rom_ver | ROM version of HBA | String | |
| firmware_ver | Firmware version of HBA | String | |
| os_device_name | OS name/version of HBA | String | |
| port | Port ID | String | |
| hba | HBA ID | String | |
| supported_fc4_types | Supported FC4 types for port | String | |
| maximum_frame_size | Maximum frame size for port | Integer | |
| model_description | Model description of HBA | String | |
| node_name | Node name of HBA | String | |
| host_name | Host name for port | String | |
| os_name_ver | OS device name for port | String |
show fdmi database detail vsan <*vsan_id*>
show fdmi database detail vsan <vsan_id>
import requests
import json
"""
Modify these please
"""
url='http://<ip_address>:<port_number>/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 fdmi database detail vsan <vsan_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))
""
switch# show fdmi database detail vsan <vsan_id> | xml
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body/>
<input>show fdmi database detail vsan 2000</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
The show fdmi database detail vsan <*vsan_id*> command displays the detailed Fabric-Device Management Interface (FDMI) database information for a specific VSAN ID.
For command descriptions, see the Cisco MDS 9000 Series Switches Command References.
Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.4(2a) or later.
| CLI Output |
|---|
|
| Parameter | Description | Type | Sample Values |
|---|---|---|---|
| vsan | VSAN ID | Integer | ['1-4094'] |
| current_speed | Current speed of port | String | ['8G 16G 32G'] |
| supported_speed | Supported speed of port | String | ['8G 16G 32G'] |
| model | Model of HBA | String | |
| manufacturer | Manufacturer of HBA | String | |
| os_device_name | OS device name for port | String | |
| driver_ver | Driver version of HBA | String | |
| firmware_ver | Firmware version of HBA | String | |
| hba | HBA ID | String | |
| serial_num | Serial number of HBA | String | |
| port | Port ID | String | |
| rom_ver | ROM version of HBA | String | |
| maximum_frame_size | Maximum frame size for port | Integer | |
| node_name | Node name of HBA | String | |
| supported_fc4_types | Supported FC4 types for port | String | |
| hardware_ver | Hardware version of HBA | String | |
| model_description | Model description of HBA | String | |
| host_name | Host name for port | String | |
| os_name_ver | OS name/version of HBA | String |
show fdmi database vsan <*vsan_id*>
show fdmi database vsan <vsan_id>
import requests
import json
"""
Modify these please
"""
url='http://<ip_address>:<port_number>/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 fdmi database vsan <vsan_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))
""
switch# show fdmi database vsan <vsan_id> | xml
<?xml version="1.0"?>
<ins_api>
<type>cli_show</type>
<version>1.2</version>
<sid>eoc</sid>
<outputs>
<output>
<body/>
<input>show fdmi database vsan 2000</input>
<msg>Success</msg>
<code>200</code>
</output>
</outputs>
</ins_api>
The show fdmi database vsan <*vsan_id*> command displays the Fabric-Device Management Interface (FDMI) database contents for a specific VSAN ID.
For command descriptions, see the Cisco MDS 9000 Series Switches Command References.
Note: This sample output is generated for Cisco MDS 9000 Series NX-OS Release 8.4(2a) or later.
| CLI Output |
|---|
|
| Parameter | Description | Type | Sample Values |
|---|---|---|---|
| vsan | VSAN ID | Integer | ['1-4094'] |
| hba | HBA WWN | String |