<font size=2 face="sans-serif">My guess is you have some expectation of
how things "ought to be" that does not match how things actually
are.</font><br><font size=2 face="sans-serif">If you haven't already done so, put
some diagnostics into your script, such as </font><br><br><font size=2 face="sans-serif">env</font><br><font size=2 face="sans-serif">hostname</font><br><font size=2 face="sans-serif">echo "my args are: $*"</font><br><br><font size=2 face="sans-serif">And run </font><br><br><font size=2 face="sans-serif">mmapplypolicy with an explicit node
list:</font><br><br><font size=2 face="sans-serif">   mmapplypolicy /some/small-set-of-files
 -P /mypolicyfile -N node1,node2,node3   -I test -L 1 -d 1</font><br><br><font size=2 face="sans-serif">And see how things go<br></font><br><br><font size=2 face="sans-serif">Hmmm... reading your post again... It
seems perhaps you've got some things out of order or again, incorrect expectations
or model of how the this world works...</font><br><br><font size=2 face="sans-serif">mmapplypolicy reads your policy rules
and scans the files and calls the script(s) you've named in the EXEC options
of your EXTERNAL rules</font><br><br><font size=2 face="sans-serif">The scripts are expected to process
file lists -- NOT call mmapplypolicy again...</font><br><br><font size=2 face="sans-serif">Refer to examples in the documentation,
and in samples/ilm  - and try them!</font><br><br><font size=2 face="sans-serif">--marc</font><br><br><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">"Chase, Peter"
<peter.chase@metoffice.gov.uk></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">"'gpfsug-discuss@spectrumscale.org'"
<gpfsug-discuss@spectrumscale.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">11/13/2017 06:15 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [gpfsug-discuss]
Specifying nodes in commands</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">gpfsug-discuss-bounces@spectrumscale.org</font><br><hr noshade><br><br><br><tt><font size=2>Hi Marc,<br><br>Thanks for your response, there's some handy advice in there that I'll
look at further.<br><br>I'm still struggling a bit with mmapplypolicy and it's -N option.<br>I've changed my external list command to point at a script, that script
looks for "LIST" as the first argument, and runs "/usr/lpp/mmfs/bin/mmapplypolicy
/gpfs1/aws -d 1 -N cloudNode -P /gpfs1/s3upload/policies/migration.policy
>>/gpfs1/s3upload/external-list.log 2>&1".<br><br>If the script is run from the command line on a node that's not in cloudNode
class it works without issue and uses nodes in the cloudNode class as helpers,
but if the script is called from the active policy, mmapplypolicy runs,
but seems to ignore the -N and doesn't use the cloudNode nodes as helpers
and instead seems to run locally (from which ever node started the active
policy).<br><br>So now my questions is: why does the -N option appear to be honoured when
run from the command line, but not appear to be honoured when triggered
by the active policy?<br><br>Regards,<br><br>Peter Chase<br>GPCS Team<br>Met Office  FitzRoy Road  Exeter  Devon  EX1 3PB 
United Kingdom<br>Tel: +44 (0)1392 886921<br>Email: peter.chase@metoffice.gov.uk Website: </font></tt><a href=www.metoffice.gov.uk><tt><font size=2>www.metoffice.gov.uk</font></tt></a><tt><font size=2><br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br></font></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwIFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=tNW4WqkmstX3B3t1dvbenDx32bw3S1FQ4BrpLrs1r4o&s=CBzS6KRLe_hQhI4zpeeuvNaYdraGbc7cCV-JTvCgDcM&e="><tt><font size=2>https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwIFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=tNW4WqkmstX3B3t1dvbenDx32bw3S1FQ4BrpLrs1r4o&s=CBzS6KRLe_hQhI4zpeeuvNaYdraGbc7cCV-JTvCgDcM&e=</font></tt></a><tt><font size=2><br><br></font></tt><br><br><BR>