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
switch# show fdmi database

Registered HBA List for VSAN 2000
21:01:00:1b:32:a1:9b:9e
ParameterDescriptionTypeSample Values
vsanVSAN IDInteger['1-4094']
hbaHost bus adapter WWNString

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
switch# show fdmi database detail

Registered HBA List for VSAN 2000
-------------------------------
HBA-ID: 21:01:00:1b:32:a1:9b:9e
-------------------------------
Node Name :20:01:00:1b:32:a1:9b:9e
Manufacturer :QLogic Corporation
Serial Num :LFC0835B06139
Model :QLE2562
Model Description:PCI-Express Dual Channel 8Gb Fibre Channel HBA
Hardware Ver :PX2810403-01 A
Driver Ver :8.07.00.26.06.8-k
ROM Ver :2.02
Firmware Ver :7.03.00 (90d5)
Port-id: 21:01:00:1b:32:a1:9b:9e

Supported FC4 types:scsi-fcp

Supported Speed :1G 2G 4G 8G

Current Speed :8G

Maximum Frame Size :2048
OS Device Name :qla2xxx:host1
Host Name :(none)



ParameterDescriptionTypeSample Values
vsanVSAN IDInteger['1-4094']
current_speedCurrent speed of portString['8G 16G 32G']
supported_speedSupported speed of portString['8G 16G 32G']
manufacturerManufacturer of HBAString
serial_numSerial number of HBAString
modelModel of HBAString
hardware_verHardware version of HBAString
driver_verDriver version of HBAString
rom_verROM version of HBAString
firmware_verFirmware version of HBAString
os_device_nameOS name/version of HBAString
portPort IDString
hbaHBA IDString
supported_fc4_typesSupported FC4 types for portString
maximum_frame_sizeMaximum frame size for portInteger
model_descriptionModel description of HBAString
node_nameNode name of HBAString
host_nameHost name for portString
os_name_verOS device name for portString

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
switch# show fdmi database detail vsan 2000

Registered HBA List for VSAN 2000
-------------------------------
HBA-ID: 21:01:00:1b:32:a1:9b:9e
-------------------------------
Node Name :20:01:00:1b:32:a1:9b:9e
Manufacturer :QLogic Corporation
Serial Num :LFC0835B06139
Model :QLE2562
Model Description:PCI-Express Dual Channel 8Gb Fibre Channel HBA
Hardware Ver :PX2810403-01 A
Driver Ver :8.07.00.26.06.8-k
ROM Ver :2.02
Firmware Ver :7.03.00 (90d5)
Port-id: 21:01:00:1b:32:a1:9b:9e
Supported FC4 types:scsi-fcp
Supported Speed :1G 2G 4G 8G
Current Speed :8G
Maximum Frame Size :2048
OS Device Name :qla2xxx:host1
Host Name :(none)
ParameterDescriptionTypeSample Values
vsanVSAN IDInteger['1-4094']
current_speedCurrent speed of portString['8G 16G 32G']
supported_speedSupported speed of portString['8G 16G 32G']
modelModel of HBAString
manufacturerManufacturer of HBAString
os_device_nameOS device name for portString
driver_verDriver version of HBAString
firmware_verFirmware version of HBAString
hbaHBA IDString
serial_numSerial number of HBAString
portPort IDString
rom_verROM version of HBAString
maximum_frame_sizeMaximum frame size for portInteger
node_nameNode name of HBAString
supported_fc4_typesSupported FC4 types for portString
hardware_verHardware version of HBAString
model_descriptionModel description of HBAString
host_nameHost name for portString
os_name_verOS name/version of HBAString

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
switch# show fdmi database vsan 2000

Registered HBA List for VSAN 2000
21:01:00:1b:32:a1:9b:9e
ParameterDescriptionTypeSample Values
vsanVSAN IDInteger['1-4094']
hbaHBA WWNString