We defined a share, sales_cifs_test, on our NetApp server. Note that the length of the name is longer than 13 characters. We can see the share with Microsoft Explorer. We can mount the share from Linux using smbmount. What we want to do is to get a list of shares from NetApp. The tools that can do this are the samba programs smbclient and net. Smbclient will not show names longer than 13 characters. The following command gives a share list, but again, does not include names longer than 13 characters. net net -W YOURDOMAIN --user='user%password' -w YOURDOMANIN -S NETAPP_SERVER_IP rap share The command net net -W YOURDOMAIN --user='user%password' -w YOURDOMANIN -S NETAPP_SERVER_IP rpc share is the samba command that gives a list of shares, even if they have long names. The problem is that we can't get it to access NetApp successfully. We have searched both the Netapp site and the Samba site and can't find anything that is relevant. We would really appreciate an answer as to why the command is failing. Thanks, Peter -- Peter Gordon Phone: +972 544 438029 Email: peter@pg-consultants.com Web: www.pg-consultants.com
Do you have access to the Filer console via telnet/rsh/ssh? That is the easiest method i can think of off the top of my head, then you just issue the command "cifs shares", and you'll get a list of the CIFS shares on the storage applicance. On 1/16/06, Peter Gordon <peter@pg-consultants.com> wrote:> > We defined a share, sales_cifs_test, on our NetApp server. Note that the > length ofour the name is longer than 13 characters. > > We can see the share with Microsoft Explorer. > > We can mount the share from Linux using smbmount. > > What we want to do is to get a list of shares from NetApp. The tools > that can do this are the samba programs smbclient and net. > > Smbclient will not show names longer than 13 characters. > > The following command gives a share list, but again, does not include > names longer than 13 characters. > > net net -W YOURDOMAIN --user='user%password' -w YOURDOMANIN -S > NETAPP_SERVER_IP rap share > > The command > net net -W YOURDOMAIN --user='user%password' -w YOURDOMANIN -S > NETAPP_SERVER_IP rpc share > > is the samba command that gives a list of shares, even if they have > long names. The problem is that we can't get it to access NetApp > successfully. > > We have searched both the Netapp site and the Samba site and can't find > anything that is relevant. > > We would really appreciate an answer as to why the command is failing. > > Thanks, > > Peter > > -- > Peter Gordon > Phone: +972 544 438029 > Email: peter@pg-consultants.com > Web: www.pg-consultants.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
I have just downloaded the latest version of Samba: svn co svn://svnanon.samba.org/samba/branches/SAMBA_3_0 samba-3_0 and have built, compiled and installed it. I installed it in /sw/SAMBA_3_0 I created a file smb.conf in the ./lib directory [global] workgroup = MYDOMAIN server string = Samba Server>From /sw/SAMBA_3_0/binAccess to the Active Directory Master # ./rpcclient -U MYDOMAIN\\user%password MYDC rpcclient $> Access to a client PC # ./rpcclient -U MYDOMAIN\\user%password MYWINDOWS rpcclient $> Access to NetApp # ./rpcclient -U MYDOMAIN\\user%password NETAPP could not obtain sid for domain MYDOMAIN error: NT_STATUS_ACCESS_DENIED If you need dumps, ethereal, whatever, just ask. Peter On Wed, 2006-01-18 at 00:24 -0600, Gerald (Jerry) Carter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Peter Gordon wrote: > > Using telnet/rsh/ssh is not an option for us. We need > > to understand why the rpc protocol with NetApp does not > > work, and if possible, try to fix it. > > I think Derrell fixed this in the latest SAMBA_3_0 libsmbclient > code. So something like smbtree should work now. > > > > > > cheers, jerry > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFDzd8FIR7qMdg1EfYRAm3nAJ9nq9FqGLekbu15P5riYGXkl3dFJwCfQnxk > WVH5kxwBX0nV73raJIpjWEk> =2csG > -----END PGP SIGNATURE----- > >
Gerald (Jerry) Carter
2006-Jan-18 07:26 UTC
[Samba] Problem getting share list from NetApp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 18 Jan 2006, Peter Gordon wrote:> I have just downloaded the latest version of Samba: > > svn co svn://svnanon.samba.org/samba/branches/SAMBA_3_0 samba-3_0 > > and have built, compiled and installed it. > > I installed it in /sw/SAMBA_3_0 > > I created a file smb.conf in the ./lib directory > [global] > workgroup = MYDOMAIN > server string = Samba Server > > > >From /sw/SAMBA_3_0/bin > > Access to the Active Directory Master > > # ./rpcclient -U MYDOMAIN\\user%password MYDC > rpcclient $> > > > Access to a client PC > > # ./rpcclient -U MYDOMAIN\\user%password MYWINDOWS > rpcclient $> > > > Access to NetApp > > # ./rpcclient -U MYDOMAIN\\user%password NETAPP > could not obtain sid for domain MYDOMAIN > error: NT_STATUS_ACCESS_DENIED > > If you need dumps, ethereal, whatever, just ask.send me an ethereal trace and a level dump from rpcclient. Thanks. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQFDze2YIR7qMdg1EfYRAtMOAKCFTnM4jx350fuC/bPtN9BzWY06hgCgz9UI pu9oJYQb2vapUKsqOIvwGnM=6Mw+ -----END PGP SIGNATURE-----