Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] smbstatus -- protocol and feature information

198 views
Skip to first unread message

Adi Kriegisch

unread,
May 7, 2015, 7:50:02 AM5/7/15
to
Hi,

I am trying to figure out what features in terms of protocols (SMB/CIFS,
SMB2, SMB2.1, SMB3) a client uses when being connected to a Samba server
(v4.1.17).
Is there any tool like smbstatus that shows which protocol version (and
possibly which features) a client is using in a connection? (Feature in
the sense of 'using encryption' for example).

Thanks,
Adi
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Marc Muehlfeld

unread,
May 7, 2015, 11:20:03 AM5/7/15
to
Hello Adi,

Am 07.05.2015 um 13:03 schrieb Adi Kriegisch:
> I am trying to figure out what features in terms of protocols (SMB/CIFS,
> SMB2, SMB2.1, SMB3) a client uses when being connected to a Samba server
> (v4.1.17).
> Is there any tool like smbstatus that shows which protocol version (and
> possibly which features) a client is using in a connection? (Feature in
> the sense of 'using encryption' for example).

You can't see this in smbstatus or somewhere. A network trace would show
it. However, we had this question twice in the past and someone had a
funny, but working way:

https://lists.samba.org/archive/samba/2014-November/186943.html



Regards,
Marc

Adi Kriegisch

unread,
May 7, 2015, 12:50:04 PM5/7/15
to
Hi Marc,

> >Is there any tool like smbstatus that shows which protocol version (and
> >possibly which features) a client is using in a connection? (Feature in
> >the sense of 'using encryption' for example).
> You can't see this in smbstatus or somewhere. A network trace would
> show it. However, we had this question twice in the past and someone
> had a funny, but working way:
>
> https://lists.samba.org/archive/samba/2014-November/186943.html
Hehe, this is a nice idea... :-)

Do you think requesting this as a feature for smbstatus in the Samba bug
tracker does make sense?

-- Adi

Jeremy Allison

unread,
May 7, 2015, 1:00:04 PM5/7/15
to
On Thu, May 07, 2015 at 06:46:13PM +0200, Adi Kriegisch wrote:
> Hi Marc,
>
> > >Is there any tool like smbstatus that shows which protocol version (and
> > >possibly which features) a client is using in a connection? (Feature in
> > >the sense of 'using encryption' for example).
> > You can't see this in smbstatus or somewhere. A network trace would
> > show it. However, we had this question twice in the past and someone
> > had a funny, but working way:
> >
> > https://lists.samba.org/archive/samba/2014-November/186943.html
> Hehe, this is a nice idea... :-)
>
> Do you think requesting this as a feature for smbstatus in the Samba bug
> tracker does make sense?

Yes please. We certainly need a 'protocol' field somewhere
in the smbstatus output I think.

Adi Kriegisch

unread,
May 7, 2015, 1:40:04 PM5/7/15
to
Hi Jeremy,

> > Do you think requesting this as a feature for smbstatus in the Samba bug
> > tracker does make sense?
>
> Yes please. We certainly need a 'protocol' field somewhere
> in the smbstatus output I think.
done. https://bugzilla.samba.org/show_bug.cgi?id=11262

-- Adi

James

unread,
May 7, 2015, 2:10:03 PM5/7/15
to
On 5/7/2015 1:34 PM, Adi Kriegisch wrote:
> Hi Jeremy,
>
>>> Do you think requesting this as a feature for smbstatus in the Samba bug
>>> tracker does make sense?
>> Yes please. We certainly need a 'protocol' field somewhere
>> in the smbstatus output I think.
> done. https://bugzilla.samba.org/show_bug.cgi?id=11262
>
> -- Adi
What about issuing 'smbstatus -b'? This displays the protocol.

--
-James

Partha Sarathi

unread,
May 7, 2015, 2:10:03 PM5/7/15
to
Hi all,

But I do see the protocol version against each client connection in
smbstatus output as below,

===============================================================================
Samba version 4.2.0rc5
PID Username Group Machine Protocol Version
------------------------------------------------------------------------------
10350 -1 -1 10.199.1.64 *(ipv4:10.199.1.64:56623
<http://10.199.1.64:56623/>) SMB2_10*
_10

Service pid machine Connected at
-------------------------------------------------------
share2 10350 10.199.1.64 Thu Apr 23 18:05:49 2015

Locked files:
Pid Uid DenyMode Access R/W Oplock
Share
Path Name Time
--------------------------------------------------------------------------------

------------------
10350 4294967295 DENY_NONE 0x100081 RDONLY NONE
/hom
e/partha . Mon Apr 27 13:19:15
2015

=============================================================================================

Regards,
--Partha
--
Thanks & Regards
-Partha

Adi Kriegisch

unread,
May 7, 2015, 2:10:04 PM5/7/15
to
Hi!

> But I do see the protocol version against each client connection in
> smbstatus output as below,
> ===============================================================================
> Samba version 4.2.0rc5
> PID     Username      Group         Machine            Protocol Version
> ------------------------------------------------------------------------------
> 10350     -1            -1            10.199.1.64

>  (ipv4:[1]10.199.1.64:56623) SMB2_10                                     
very interesting; that was exactly what I was looking for. I am on version
4.1.17 and do not have this:
Samba version 4.1.17-Debian
PID Username Group Machine
-------------------------------------------------------------------
2276 adi users 10.10.1.2 (ipv4:10.10.1.2:55342)

Jeremy Allison

unread,
May 7, 2015, 2:20:02 PM5/7/15
to
On Thu, May 07, 2015 at 11:02:03AM -0700, Partha Sarathi wrote:
> Hi all,
>
> But I do see the protocol version against each client connection in smbstatus
> output as below,

Doh ! Yeah, got added in this commit:

commit 8935242489fdcc17b20b3cd54f96ba6de5870230
Author: Mathias Dietz <mdi...@de.ibm.com>
Date: Wed Mar 5 16:26:20 2014 +0100

Add protocol version to smbstatus output


Sorry for the noise, I'll close the bug report.
0 new messages