2004-04-08 01:44:50

by Guolin Cheng

[permalink] [raw]
Subject: RE: auto-discovery of exports?

Sure, to your own networks, do you want to search all Internet for nfs
servers? :)

Run a "nmap -sU -p 2049 <your_net_work, like 192.168.0>" to find all nfs
servers providing services on UDP, similar "nmap -p 2049 <your_net_work,
like 192.168.0>" to find nfs servers on TCP.

Then for each above hosts, run the showmount command. All these can be
rolled in a simple loop with a if statement.

Thanks.
--Guolin Cheng

-----Original Message-----
From: Ian Kent [mailto:[email protected]]=20
Sent: Wednesday, April 07, 2004 5:37 PM
To: Guolin Cheng
Cc: Michael; [email protected]
Subject: RE: [NFS] auto-discovery of exports?

On Wed, 7 Apr 2004, Guolin Cheng wrote:

> Hi, Michael,
>=20
> Run shell command "showmount -e|--exports <server_to_be_questioned>".
> If you would like to scan your network to check each host, run a for
> loop, and in the loop put another command "rpcinfo -p
> <server_to_be_questions> |grep nfs" to make sure whether the nfs
server
> is running on the host, if so, run the showmount command to query the
> exported file system from the host.=20

Fine but how would you enumerate the hosts?
Would you restrict this to the local subnet?

Ian





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs