1836400 Members
3310 Online
110100 Solutions
New Discussion

Re: share path

 
haeman
Frequent Advisor

share path

in my system , there are path shared by samba for windows to map and shared by nfs for another unix to mount , if I want to know is there any server ( windows or unix ) is connected to our server now , can advise what can i do ? thx
10 REPLIES 10
Ramesh S
Esteemed Contributor

Re: share path

Hi

To know the list of directories that have been remotely mounted by clients thru NFS,

#showmount -d

Have a look on

/etc/rmtab - has list of clients uses the nfs mount points


Not pretty sure about CIFS/samba.

Best Regards,
Ramesh
Rasheed Tamton
Honored Contributor

Re: share path

cifslist -m
cifslist -x

man cifslist

showmount -a
man showmount

Rgds.
Rasheed Tamton
Honored Contributor

Re: share path

smbstatus also reports current Samba connections.

/opt/samba/bin/smbstatus
/opt/samba/bin/smbstatus -S

showmount lists all clients that have remotely mounted a filesystem from a host.

Rgds.
Sajjad Sahir
Honored Contributor

Re: share path


dear haeman
rasheed has the both answers for samba and unix
regarding samb u have to consider the cifs command and unix normally using showmount
see man pages of both commands

thanks and regards
sajjad
haeman
Frequent Advisor

Re: share path

thx replies,

showmount -a works , but I found that even the remote server is unmounted the connection , it still show it is mounted now , it seems the info. is not update , except reboot , how can I get the update showmount info ? thx
Sajjad Sahir
Honored Contributor

Re: share path


Dear heaman

there is one command spelled wrongly not cifs but cifslist

thanks and regards

sajjad
Rasheed Tamton
Honored Contributor

Re: share path

Check the /etc/rmtab which contains a record of all clients that mounted remote file systems from this machine. Ramesh is already said that. May be you have to clean this.
haeman
Frequent Advisor

Re: share path

thx replies,

I checked /etc/rmtab , it is the same as the output from showmount -a ( still not update info ) .

thx
Rasheed Tamton
Honored Contributor

Re: share path

Remove the entries related to old shares (already umounted ones) from the rmtab. Although, the rmtab table is close to the truth, it is not always totally accurate.


Rgds.
Sajjad Sahir
Honored Contributor

Re: share path

Dear Haeman

entries of all remotely mounted file systems and remote nfs clients are present in /etc/rmtab file
it is text file

u can use cat /etc/rmtab

also
u will get the same result if u are using
#showmount -a
command
I think u can close this thread and u can assign points

thanks and regards

sajjad