Operating System - Linux
1820002 Members
3606 Online
109608 Solutions
New Discussion юеВ

Re: how to check what shares are available on nfs server

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to check what shares are available on nfs server

Hello experts

os = rhl9
nfs server's ip = 10.0.0.1
nfs client's ip = 10.0.0.2

On nfs server(10.0.0.1)
[root@wods root]cat /etc/exports
/home 10.0.0.0/8(rw,sync)
/tmp 10.0.0.0/8(rw,sync)
/mnt/cdrom 10.0.0.0/8(rw,sync)

from client(10.0.0.2) how can i check that what shares are available on nfs server(10.0.0.1).

Thanks in anticipation
Best Regards
Maaz
7 REPLIES 7
Maaz
Valued Contributor

Re: how to check what shares are available on nfs server

help...
John Poff
Honored Contributor

Re: how to check what shares are available on nfs server

Hi,

I don't know of any way to check the possible mounts from the client side, and I'm not sure you would want that ability for security reasons. Otherwise, someone could run a command from the client side, see all the NFS mounts that are exported from a server, and start trying to mount them.

JP
Ermin Borovac
Honored Contributor
Solution

Re: how to check what shares are available on nfs server

To show NFS server's export list you can use 'showmount' command on the client.

$ /usr/sbin/showmount -e
Jan Sladky
Trusted Contributor

Re: how to check what shares are available on nfs server

Hi Maaz

showmount -e server


By rpcinfo -p server you can check all needed proceses are running on server(portmap, rpc.nfsd, rpc.mountd)

br Jan
GSM, Intelligent Networks, UNIX
Jan Sladky
Trusted Contributor

Re: how to check what shares are available on nfs server

Hi,

yet another info

nfsstat prints NFS statistics on server or client side

nfsstat -s on server
nfsstat -c on client side

br Jan
GSM, Intelligent Networks, UNIX
Ross Minkov
Esteemed Contributor

Re: how to check what shares are available on nfs server

showmount queries the mount daemon on a remote host for information about the state of the NFS server on that machine. With no options showmount lists the set of clients who are mounting from that host.

showmount -e nfs_server
or
showmount --exports nfs_server

will show the NFS server export list.

Regards,
Ross
Maaz
Valued Contributor

Re: how to check what shares are available on nfs server

Dear John Poff I highly appreciate yur kind suggestions and warnings. But here we dont have any security issue, and we are not connected to any external networks.

Dear Ermin Borovac. I highly appreciate for the help/assistance. U solved my problem, by let me know how to check the available shares on the NFS server. Thanks Thanks and Thanks a Million for such a prompt and supporting reply. Thanks again.

Dear Jan Sladky, and Ross Minkov, i also am highly thankfull to u for such a great help and explanations.

Thanks a Million to all

Best Regards
Maaz