<html><body><p><font size="2">Hi John,</font><br><br><font size="2">I would recommend running 'mmlscluster' command on any cluster node to check if any AFM Gateway Node(s) is available. </font><br><br><font size="2">This will list hostname(s) which are running as AFM Gateway.</font><br><br><font size="2">/usr/lpp/mmfs/bin/mmlscluster | grep -w gateway | awk '{print $4}'</font><br><br><font size="2">e.g.</font><br><br><font size="2">~bash# /usr/lpp/mmfs/bin/mmlscluster | grep -w gateway | awk '{print $4}'</font><br><font size="2">node1</font><br><font size="2">node2</font><br><br><font size="2">Thanks,</font><br><font size="2">Abhishek, Dave</font><br><br><br><img width="16" height="16" src="cid:1__=EABB0B66DFCFF4398f9e8a93df938690918cEAB@" border="0" alt="Inactive hide details for IBM Spectrum Scale---12/13/2017 08:16:03 PM---Hi Abhishek, Can you please help answer this query."><font size="2" color="#424282">IBM Spectrum Scale---12/13/2017 08:16:03 PM---Hi Abhishek, Can you please help answer this query.</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">IBM Spectrum Scale/Poughkeepsie/IBM</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">gpfsug main discussion list <gpfsug-discuss@spectrumscale.org></font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">Abhishek Dave/India/IBM@IBMIN, IBM Spectrum Scale/Poughkeepsie/IBM@IBMUS</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">12/13/2017 08:16 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [gpfsug-discuss] Am I a gateway or not?</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">Haizhu Liu</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><font size="2">Hi Abhishek,</font><br><br><font size="2">Can you please help answer this query.</font><br><br><font size="2">Regards, The Spectrum Scale (GPFS) team<br><br>------------------------------------------------------------------------------------------------------------------<br>If you feel that your question can benefit other users of  Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at </font><font size="2"><a href="https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479">https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479</a></font><font size="2">. <br><br>If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact  1-800-237-5511 in the United States or your local IBM Service Center in other countries. <br><br>The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.</font><br><br><br><img width="16" height="16" src="cid:1__=EABB0B66DFCFF4398f9e8a93df938690918cEAB@" border="0" alt="Inactive hide details for John Hearns ---12/13/2017 07:19:27 AM---Firstly, I hope everyone at the Manchester meeting is enjoyin"><font size="2" color="#424282">John Hearns ---12/13/2017 07:19:27 AM---Firstly, I hope everyone at the Manchester meeting is enjoying it and that the snow did not hamper t</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">John Hearns <john.hearns@asml.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">gpfsug main discussion list <gpfsug-discuss@spectrumscale.org></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">12/13/2017 07:19 AM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[gpfsug-discuss] Am I a gateway or not?</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br>Firstly, I hope everyone at the Manchester meeting is enjoying it and that the snow did not hamper too many travel plans.<br>I like Manchester – I shall tell the tale of blowing the 100Amp fuse in the University server room some other time.<br>(Yes – a fuse. Not a circuit breaker).<br> <br>I am writing some monitoring scripts for AFM – actually to interface with Bright.<br>I would like the script to detect if the node which is running it is a Gateway node or has the AFM component.<br>If not, the script silently exits.<br>This is not a Callback script – I can write these and indeed have one for the AFM fileset demount event.<br> <br>In order to determine which components are on a given node I could:
<ul><font size="2">a.        </font>Run “mmhealth node show” and grep for AFM<br><font size="2">b.        </font>Run mmlscluster and grep for $HOSTNAME</ul> <br>Both methods seem slightly inelegant. IS there a handy-dandy command I can run to see the components on this node?<br> <br>John Hearns
<p>-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt. <tt><font size="2">_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><tt><font size="2"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=IbxtjdkPAM2Sbon4Lbbi4w&m=iZJyYX6s6-fBYfRNYStIrfVhph3NLzwXJNqTZEfKOyA&s=HoPYEIPpBLIFV-JCq69MS026ZLBRxqqvqNZYGH8UmlY&e=">https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=IbxtjdkPAM2Sbon4Lbbi4w&m=iZJyYX6s6-fBYfRNYStIrfVhph3NLzwXJNqTZEfKOyA&s=HoPYEIPpBLIFV-JCq69MS026ZLBRxqqvqNZYGH8UmlY&e=</a></font></tt><tt><font size="2"><br></font></tt><p><p><p><BR>
</body></html>