- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Clients attached to server.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 05:27 PM
05-06-2002 05:27 PM
Clients attached to server.
I have been assigned the task of finding out the nodes which are attached to a server. The server is in a remote location. I logged in and found out the foll. information..
1. showmount -a (a huge list)
(May indicate this is a NFS Server)
2. i found few nodes in /var/statmon/sm
Nfsd was running. With these info i thought this may be a nfs server, but i need to know what clients are attached to this server. How do i get this info and what are the steps? Please Help.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 06:25 PM
05-06-2002 06:25 PM
Re: Clients attached to server.
first of all
make sure that server you are thinking is nfs server .
then..
you should make certain that it is enabled nfs server capability.
In the /etc/rc.config.d/nfsconf file..as belows
NFS_SERVER=1 START_MOUNTD=1
If rpc.mountd is configured in /etc/inetd.conf on your system,set the START_MOUNTD flag to 0.
==============================
On every client that has the directory configured to be automounted,
edit the /etc/auto_* files to comment out or remove the directory from the automounter maps.
Clients that automount the directory may not be listed by the showmount command
How many servers do you have?
have a look /etc/fstab each clents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 06:36 PM
05-06-2002 06:36 PM
Re: Clients attached to server.
# netstat -an
I also use lsof (available from the porting archive):
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
lsof will tell you which executable is running on which port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 06:51 PM
05-06-2002 06:51 PM
Re: Clients attached to server.
tyr the following comand
=> you can see all the rpc services running on it
# rpcinfo -p remotehost |more
=> you can see which all nodes are connected to the server
# netstat -a |more
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 07:17 PM
05-06-2002 07:17 PM
Re: Clients attached to server.
First the "showmount -a" is a very poor indication because it is getting the information from /etc/rmtab. The "rmtab" file has entries of all NFS clients that has requested for mount and if the client did not issue a umount request when it's done the entries would not be removed, hence leaving behind a "bogus-entry". For example client that was not properly shutdown would not issue a umount request to the server. So "showmount" is not the tool you should use.
The /var/statmon dir has "sm" dir and "sm.bak" directory. When NFS client want to access a file, it'll use lockd and statd that to perform NFS file locking and the NFS server statd will add this client to the list of systems it monitors. Statd does this by creating a file in /var/statmon/sm dir, which is the hostname of the client. Later when
When NFS server rebooted (or rpc.lockd/statd killed & restarted) the statd daemon will go through a recovery process to try rebuild the queue of locks the server was managing. The recovery process will do this :-
a) Server statd moves all files in /var/statmon/sm into /var/statmon/sm.bak
b) One at a time server statd will attempt to contact client statd whose hostname matches the name of the file in /var/statmon/sm.bak
c) If successful, the file is removed from /var/statmon/sm.bak
d) Statd on client will contact its local lockd and explain that the server crashes and the client must reclaim any locks it had with that server prior to the crash.
So the hostname you see in /var/statmon/sm represents NFS lock that is still active. You might see some "left-over" hosts in /var/statmon/sm.bak if the server is not able to contact the client to re-claim its lock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 08:10 PM
05-06-2002 08:10 PM
Re: Clients attached to server.
your's is a nfs server . if
#exportfs
show a list of exported filesystems.
For knowing the clients use showmount and
owners commands.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:57 PM
05-06-2002 11:57 PM
Re: Clients attached to server.
check the file "/etc/exports " and relate it with entris in "/etc/hosts" to find the list of nfs clients connected to that server.
Regards,
K.Vijayaragavan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:22 AM
05-07-2002 04:22 AM
Re: Clients attached to server.
I think all the replies assume that the machine is NFS Server. I would like to know how i would know what clients are connected assuming it is not a NFS server. Also would a reboot help. Also Let me do a rm /etc/rmtab and when it reboots i hope it would create new entries for new connections. Pl. advise.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:44 AM
05-07-2002 04:44 AM
Re: Clients attached to server.
netstat -na | grep "ESTABLISHED"
if will show :
tcp 0 0 xx.xxx.xxx.xxx.23 yyy.yyy.yyy.yyy.2441 ESTABLISHED
the 4th . ( xxx.23) is the port in use ( i.e 23 is telnet) yyy.2441 is the remote address and port.
Now you need just to search your local adresses. and check it with /etc/services.
see man netstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 05:25 AM
05-07-2002 05:25 AM
Re: Clients attached to server.
As a few others have already noted, have you looked into "lsof"? It will show you ALL network connections to your server.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 11:11 AM
05-07-2002 11:11 AM
Re: Clients attached to server.
You'll see the port, the IP address that the connection came from.
tcp 0 0 hostname.62777 hostname.62776 ESTABLISHED
tcp 0 0 hostname.64824 hostname.6000 ESTABLISHED
tcp 0 0 hostname.62776 hostname.62777 ESTABLISHED
tcp 0
tcp 0 0 hostname.ftp IPAddress.1059 ESTABLISHED
tcp 0 0 hostname.ftp IPAddress.2193 ESTABLISHED
This output is a little crushed but it should give you an idea of what you are looking for.
Have fun!