Operating System - HP-UX
1833737 Members
3130 Online
110063 Solutions
New Discussion

Re: Finding a filesystem in several host machines

 
SOLVED
Go to solution
Chern Jian Leaw
Regular Advisor

Finding a filesystem in several host machines

HI,

I would like to find a particular filesystem i.e /fs13/wmt/shark but I do not know where this particular filesystem is residing on which machine.

Is there a command in UNIX or can anyone could provide a script to check for on which machine does a particular filesystem reside?

Thanks.
7 REPLIES 7
Justo Exposito
Esteemed Contributor

Re: Finding a filesystem in several host machines

Hi Chern,

Do you have a rlogin activate?

Then you can do a remsh to all the hosts looking for this.

Regards,

Justo.
Help is a Beatiful word
Steve Steel
Honored Contributor

Re: Finding a filesystem in several host machines

Hi

Is the filesystem NFS or hard mounted on a particular machine.

You could use showmount on the NFS server then

else
remsh ftp

Options enough.

You could even look at service control manager if you have a lot of machines.


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: Finding a filesystem in several host machines

Hi

For a find to work accross servers then all servers will require to be in /etc/hosts and an entry in the /.rhosts on the remote servers.

Then it is a matter of running through your local hosts file and doing a remote find.

The attached script is by Adreas Voss and deals with a remote BDF ---- with little work this can be ammended to do what you require.

HTH


Paula

If you can spell SysAdmin then you is one - anon
Justo Exposito
Esteemed Contributor

Re: Finding a filesystem in several host machines

Hi Chern

Perhaps something like this:
# for host1,host2,host3
for i in hp1 hp2 hp3 hp4
do
echo $i
#remsh $i -n find / -name /FS0115/gexp/script
remsh $i -n bdf | grep /FS0215
done


Regards,

Justo.
Help is a Beatiful word
Bill McNAMARA_1
Honored Contributor

Re: Finding a filesystem in several host machines

What does mount show?

It's possibly on a shark array! at a guess! to which system is the shark attached?!

Good Luck,
Bill
It works for me (tm)
Chern Jian Leaw
Regular Advisor

Re: Finding a filesystem in several host machines

Steve,

How do I search for the service control manager i.e what is the command to do that ?

Justo,
I've afraid I do not know the names of all machines in that particular domain. But showmount showed me all names of machine in a particular domain, am I right Steve??
Steve Steel
Honored Contributor

Re: Finding a filesystem in several host machines

Hi


http://www.software.hp.com/products/SCMGR/

Will give you scm

Showmount will only show the machine which is
using a disk at that time or which machines can use the disc. see man

Do nslookup

enter ?

> ?
Commands: (identifiers are shown in uppercase, [] means optional)
NAME - print info about the host/domain NAME using default server
NAME1 NAME2 - as above, but use NAME2 as server
exit - exit the program, ^D also exits
finger [USER] - finger the optional NAME at the current default host
help or ? - print info on common commands; see nslookup(1) for details
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
-a - list canonical names and aliases
-h - list HINFO (CPU type and operating system)
-s - list well-known services
-d - list all records
-t TYPE - list records of the given type (e.g., A,CNAME,MX, etc.)

ls domain > /tmp/file

All in that domain in file

exit


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)