def display_iscsi_device(iqn, sess):
    """
    Print the data for iscsi device identified by iqn.
    Parameters
    ----------
    iqn: str
        The iSCSI qualified name.
    sess: OCISession
        An oci sdk session.
    Returns
    -------
        bool: True on success, False otherwise.
    """
    this_compartment = sess.this_compartment()
    this_availability_domain = sess.this_availability_domain()
    all_volumes = this_compartment.all_volumes(this_availability_domain)
    for vol in all_volumes:
        try:
            this_iqn = vol.get_iqn()
        except Exception as e:
            continue
        try:
            if this_iqn == iqn:
                this_name = vol.get_display_name()
                this_ocid = vol.get_ocid()
                this_ip = vol.get_portal_ip()
                this_port = vol.get_portal_port()
                print('%s %s %s:%s [%s]' % (this_name, iqn, this_ip, this_port, this_ocid))
                return True
        except Exception as e:
            return False