There are 2 patches attached.
1. iscsi-tcp-export-local-port.patch.
This is required. Apply this to your kernel. When you login you will see
/sys/class/iscsi_connection/connection1:0/local_port
cat /sys/class/iscsi_connection/connection1:0/local_port
57568
This would match what you see in netstat:
netstat -anpt | grep iscsid
tcp 0 0
20.15.0.24:57568 20.15.0.32:3260
ESTABLISHED 9261/iscsid
This patch should hopefully get into 3.18.
2. iscsiadm-print-local-port.patch
This is optional. It just has iscsiadm print the local port info. If you
do not have it, you can get it from sysfs like above. This patch
requires that the kernel patch be applied.
On 08/20/2014 09:02 AM,
abhinav.s...@gmail.com wrote:
>
> Hi Mike, would you be able to share your patch with me? Thanks.
>
> On Monday, August 11, 2014 11:31:57 PM UTC-4, Mike Christie wrote:
>
> Hey,
>
> I made patches for this a while back. I am in the middle of
> finishing up some work release stuff then changing jobs. I should be
> able to get back to this next week.
>
> On Aug 6, 2014, at 4:20 PM,
abhinav.s...@gmail.com <javascript:> wrote:
>
>>
>> Hi Mike,
>>
>> I am trying to extract the same information i.e. local IP and port
>> combination corresponding to a iscsi connection. Do you know how
>> to extract this information? iscsiadm -m session still only prints
>> the local IP. Any help would appreciated.
>>
>> Thanks.
>> Abhinav
>>
>> On Thursday, August 30, 2012 3:58:05 PM UTC-4, Mike Christie wrote:
>>
>> Ok. Let me try to get to this over the weekend.
>>
>> On 08/28/2012 07:29 PM, Jeffrey Caughel wrote:
>> > That is exactly what I am looking for... peresently I can
>> see something
>> > like this:
>> >
>> > # netstat -anpt
>> > <snip>
>> > tcp 0 48
192.168.0.155:60480
>> <
http://192.168.0.155:60480/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60452/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60448/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60460/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60458/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60466/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60420/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60422/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> <
http://192.168.0.155:60434/>
192.168.0.35:3260
>> <
http://192.168.0.35:3260/>
>> send an email to
open-iscsi+...@googlegroups.com <javascript:>.
>> <javascript:>.
>> <
http://groups.google.com/group/open-iscsi>.
>> <
https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
open-iscsi+...@googlegroups.com
> <mailto:
open-iscsi+...@googlegroups.com>.
> <mailto:
open-...@googlegroups.com>.