<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clients attached to server. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718172#M62393</link>
    <description>netstat -a | grep ESTABLISH is my best bet.&lt;BR /&gt;&lt;BR /&gt;You'll see the port, the IP address that the connection came from.&lt;BR /&gt;&lt;BR /&gt;tcp        0      0  hostname.62777          hostname.62776           ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.64824          hostname.6000          ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.62776          hostname.62777           ESTABLISHED&lt;BR /&gt;tcp        0 &lt;BR /&gt;tcp        0      0  hostname.ftp            IPAddress.1059      ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.ftp            IPAddress.2193      ESTABLISHED&lt;BR /&gt;&lt;BR /&gt;This output is a little crushed but it should give you an idea of what you are looking for.&lt;BR /&gt;&lt;BR /&gt;Have fun!</description>
    <pubDate>Tue, 07 May 2002 18:11:56 GMT</pubDate>
    <dc:creator>jd-gt</dc:creator>
    <dc:date>2002-05-07T18:11:56Z</dc:date>
    <item>
      <title>Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718162#M62383</link>
      <description>Hi All:&lt;BR /&gt;  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..&lt;BR /&gt;1. showmount -a (a huge list)&lt;BR /&gt;(May indicate this is a NFS Server)&lt;BR /&gt;2. i found few nodes in /var/statmon/sm&lt;BR /&gt; &lt;BR /&gt;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.&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2002 00:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718162#M62383</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-05-07T00:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718163#M62384</link>
      <description>Hi.&lt;BR /&gt;first of all&lt;BR /&gt;make sure that server you are thinking is nfs server .&lt;BR /&gt;then..&lt;BR /&gt;you should make certain that it is enabled nfs server capability.&lt;BR /&gt;In the /etc/rc.config.d/nfsconf file..as belows &lt;BR /&gt;NFS_SERVER=1 START_MOUNTD=1&lt;BR /&gt;&lt;BR /&gt;If rpc.mountd is configured in /etc/inetd.conf on your system,set the START_MOUNTD flag to 0.&lt;BR /&gt;==============================&lt;BR /&gt;On every client that has the directory configured to be automounted, &lt;BR /&gt;edit the /etc/auto_* files to comment out or remove the directory from the automounter maps. &lt;BR /&gt;Clients that automount the directory may not be listed by the showmount command&lt;BR /&gt;&lt;BR /&gt;How many servers do you have?&lt;BR /&gt;have a look /etc/fstab each clents</description>
      <pubDate>Tue, 07 May 2002 01:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718163#M62384</guid>
      <dc:creator>mw_4</dc:creator>
      <dc:date>2002-05-07T01:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718164#M62385</link>
      <description>All connected clients, all ports try&lt;BR /&gt;# netstat -an&lt;BR /&gt;&lt;BR /&gt;I also use lsof (available from the porting archive):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;lsof will tell you which executable is running on which port.</description>
      <pubDate>Tue, 07 May 2002 01:36:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718164#M62385</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-05-07T01:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718165#M62386</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt;tyr the following comand&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; you can see all the rpc services running on it&lt;BR /&gt;&lt;BR /&gt;# rpcinfo -p  remotehost |more&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; you can see which all nodes are connected to the server&lt;BR /&gt;&lt;BR /&gt;# netstat -a |more&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Niraj</description>
      <pubDate>Tue, 07 May 2002 01:51:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718165#M62386</guid>
      <dc:creator>Niraj Kumar Verma</dc:creator>
      <dc:date>2002-05-07T01:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718166#M62387</link>
      <description>I'll try to explain what's the deal with "showmount" and "/var/statmon" so that you get the complete picture and know how to deal with this.I take it your question is how do you find out that your server (ie an NFS file server) has any "active" NFS client connecting to it. This would mean to find which clients has the NFS lock on any of the files in the server.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;When NFS server rebooted (or rpc.lockd/statd killed &amp;amp; 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 :-&lt;BR /&gt;a) Server statd moves all files in /var/statmon/sm into /var/statmon/sm.bak&lt;BR /&gt;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&lt;BR /&gt;c) If successful, the file is removed from /var/statmon/sm.bak&lt;BR /&gt;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.&lt;BR /&gt;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.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2002 02:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718166#M62387</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-07T02:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718167#M62388</link>
      <description>hi,&lt;BR /&gt;your's is a nfs server . if &lt;BR /&gt;#exportfs &lt;BR /&gt;show a list of exported filesystems.&lt;BR /&gt;For knowing the clients use showmount and&lt;BR /&gt;owners commands.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Tue, 07 May 2002 03:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718167#M62388</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-05-07T03:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718168#M62389</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check the file "/etc/exports " and relate it with entris in "/etc/hosts" to find the list of nfs clients connected to that server.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;K.Vijayaragavan</description>
      <pubDate>Tue, 07 May 2002 06:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718168#M62389</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-05-07T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718169#M62390</link>
      <description>Hi All:&lt;BR /&gt;&lt;BR /&gt;    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.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Tue, 07 May 2002 11:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718169#M62390</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-05-07T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718170#M62391</link>
      <description>&lt;BR /&gt;netstat -na | grep "ESTABLISHED"&lt;BR /&gt;&lt;BR /&gt;if will show :&lt;BR /&gt;tcp        0      0  xx.xxx.xxx.xxx.23      yyy.yyy.yyy.yyy.2441       ESTABLISHED &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the 4th . ( xxx.23) is the port in use ( i.e 23 is telnet) yyy.2441 is the remote address and port.&lt;BR /&gt;&lt;BR /&gt;Now you need  just to search  your local adresses. and check it with /etc/services.&lt;BR /&gt;&lt;BR /&gt;see man netstat</description>
      <pubDate>Tue, 07 May 2002 11:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718170#M62391</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-05-07T11:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718171#M62392</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;As a few others have already noted, have you looked into "lsof"? It will show you ALL network connections to your server.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 07 May 2002 12:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718171#M62392</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-07T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clients attached to server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718172#M62393</link>
      <description>netstat -a | grep ESTABLISH is my best bet.&lt;BR /&gt;&lt;BR /&gt;You'll see the port, the IP address that the connection came from.&lt;BR /&gt;&lt;BR /&gt;tcp        0      0  hostname.62777          hostname.62776           ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.64824          hostname.6000          ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.62776          hostname.62777           ESTABLISHED&lt;BR /&gt;tcp        0 &lt;BR /&gt;tcp        0      0  hostname.ftp            IPAddress.1059      ESTABLISHED&lt;BR /&gt;tcp        0      0  hostname.ftp            IPAddress.2193      ESTABLISHED&lt;BR /&gt;&lt;BR /&gt;This output is a little crushed but it should give you an idea of what you are looking for.&lt;BR /&gt;&lt;BR /&gt;Have fun!</description>
      <pubDate>Tue, 07 May 2002 18:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clients-attached-to-server/m-p/2718172#M62393</guid>
      <dc:creator>jd-gt</dc:creator>
      <dc:date>2002-05-07T18:11:56Z</dc:date>
    </item>
  </channel>
</rss>

