From owner-freebsd-scsi@FreeBSD.ORG Mon Feb 9 10:34:48 2015 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA981D5C for ; Mon, 9 Feb 2015 10:34:48 +0000 (UTC) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DD39C87 for ; Mon, 9 Feb 2015 10:34:48 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id fb4so16307954wid.2 for ; Mon, 09 Feb 2015 02:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=kwmyquJ1VsVaQyDG4WHOvzBb5fuqoCCsNG+kdjr7BOk=; b=U17mRJPnAiKOvcSX+o0P1T1bheksJSkwiLLzAwcTpwRNr2LdAHv0TRYemrD7nOhbkH GRwfwu/IsVQ+J7LQxXTrfStNM8smZR3IavvWn5nv37O0KLxC7xEDveyIBrwlSQ8GLdZX BTwoQAR30QYCxL1rdQHdBkYe4qismoLyF45zhIn7bw3My9yGW4KOPaEA+zYgcr9dZueD sMYMdA2Hvvqs2zzmymCwfJE05F9oUtdr4ubr6dC2rNMo4YEu+ITeoruxpti9qifOdscj VWMeJnPabWiBCzBeF8yYTrAdf0nhdbP4UP/wIPYxX/Pb6iUfWUpPrznWNnwAKemFQLxe 5qXg== X-Received: by 10.180.198.240 with SMTP id jf16mr33361949wic.27.1423478086601; Mon, 09 Feb 2015 02:34:46 -0800 (PST) Received: from brick.home (addr225.neoplus.adsl.tpnet.pl. [79.184.69.225]) by mx.google.com with ESMTPSA id x18sm13821646wia.12.2015.02.09.02.34.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 02:34:46 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Mon, 9 Feb 2015 11:34:44 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Karl Pielorz Subject: Re: iSCSI target discovery... Message-ID: <20150209103444.GB2170@brick.home> Mail-Followup-To: Karl Pielorz , freebsd-scsi@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2015 10:34:48 -0000 On 0130T1625, Karl Pielorz wrote: > > Hi, > > I'm using iSCSI under FreeBSD 10.1-R (ctladm/iscsid et'al). > > Is there a command I can run that will dump a list of available targets on > a remote host / portal? > > 'iscsictl -d' appears to do this - but also says 'After discovery is done, > sessions will be added for each discovered target...' > > I just want something that will dump a list of available targets on a > remote host? > > Sorry if it's obvious and I've missed it :( Not really, no. The "-d" option was designed to mimic behaviour of VMWare or Windows, since that's what is usually needed. The easiest way is to use "iscsictl -Ad", then see "iscsictl -v" output, and just remove sessions you don't want.