Hi Peter, Thank you very much for the help, I will try to create a windows batch file after I understand your script.
Best Regards, Zhong 在2009-09-21,"Peter Lavin" <lav...@cs.tcd.ie> 写道: >Hi Z, I don't have a script ready for windows, however if you can follow >it you will see what it does. You need to create a container cert, point >your environment variable to it like... > >export X509_USER_PROXY=containerproxy.pem > >so that the globus programs can see it. (this will be different syntax >in Windows). I've never used GT4 on MS Win so I'm not familiar with it. >I bet you'll know more about GT4 and scripting if you figure it out >yourself :-) > >It probably doesn't run on Ubuntu as it's a debian based OS, I'm using >bash on redhat, for example, export is setenv I think, > >Peter > >zhong kai wrote: >> Hi Peter, >> It's very nice of you to share your script. But I am shamed that I am not >> familiar with linux system. >> I failed to run the script on a Ubuntu system, it seems that I made some >> syntax errorr. >> Would you please send me a sh file or a bat file running on Windows? Thank >> you. >> >> >> best regards, >> zhong >> >> >> >> >> 在2009-09-18,"Peter Lavin" <lav...@cs.tcd.ie> 写道: >>> Hi Zhong, this might save you a few minutes. On a linux system, I run >>> the following script to stop a -nosec container, fill in the ip address >>> as appropriate... >>> >>> hope this helps, >>> Peter >>> >>> #usr/bin/bash env >>> >>> # Script to stop a Globus container properly, also started with the >>> -nosec option, frees up system resources used by Globus >>> >>> if [ -f containerproxy.pem ] >>> then >>> echo "File containerproxy.pem exists, it will be removed." >>> rm containerproxy.pem >>> fi >>> >>> echo 'creating the file containerproxy.pem file' >>> /opt/globus/bin/grid-proxy-init -cert >>> /etc/grid-security/containercert.pem -key >>> /etc/grid-security/containerkey.pem -out containerproxy.pem >>> >>> echo 'Setting the X509_USER_PROXY' >>> export X509_USER_PROXY=containerproxy.pem >>> >>> echo 'Calling globus-stop-container' >>> echo >>> /opt/globus/bin/globus-stop-container -s >>> http://xxx.xxx.xx.xx:8080/wsrf/services/ShutdownService -m conv >>> >>> echo 'Removing the file containerproxy.pem' >>> rm containerproxy.pem >>> >>> echo 'Unsetting X509_USER_PROXY' >>> unset X509_USER_PROXY >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> zhong kai wrote: >>>> Hi Tom, >>>> I've trid that command, but it doesn't work. here is the error >>>> message : >>>> E:\ws-core-4.0.5\bin\globus-stop-container -m msg -s h >>>> ttp://localhost:8080/wsrf/services/ShutdownService >>>> 2009-09-17 21:09:47,396 ERROR securemsg.X509SignHandler >>>> [main,handleMessage:109] >>>> Failed to sign message >>>> org.globus.gsi.GlobusCredentialException: Proxy file >>>> (C:\Users\ADMINI~1\AppData\ >>>> Local\Temp\x509up_u_administrator) not found. >>>> at >>>> org.globus.gsi.GlobusCredential.<init>(GlobusCredential.java:102) >>>> at >>>> org.globus.gsi.GlobusCredential.reloadDefaultCredential(GlobusCredent >>>> ial.java:544) >>>> at >>>> org.globus.gsi.GlobusCredential.getDefaultCredential(GlobusCredential >>>> .java:529) >>>> at >>>> org.globus.wsrf.impl.security.authentication.signature.X509WSSignedSO >>>> APEnvelopeBuilder.getCredential(X509WSSignedSOAPEnvelopeBuilder.java:82) >>>> at >>>> org.globus.wsrf.impl.security.authentication.signature.X509WSSignedSO >>>> APEnvelopeBuilder.buildMessage(X509WSSignedSOAPEnvelopeBuilder.java:100) >>>> at >>>> org.globus.wsrf.impl.security.authentication.securemsg.X509SignHandle >>>> r.handleMessage(X509SignHandler.java:107) >>>> at >>>> org.globus.wsrf.impl.security.authentication.securemsg.X509SignHandle >>>> r.handleRequest(X509SignHandler.java:53) >>>> at >>>> org.apache.axis.handlers.HandlerChainImpl.handleRequest(HandlerChainI >>>> mpl.java:105) >>>> at >>>> org.apache.axis.handlers.JAXRPCHandler.invoke(JAXRPCHandler.java:52) >>>> at >>>> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg >>>> y.java:32) >>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) >>>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) >>>> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127) >>>> at org.apache.axis.client.Call.invokeEngine(Call.java:2727) >>>> at org.apache.axis.client.Call.invoke(Call.java:2710) >>>> at org.apache.axis.client.Call.invoke(Call.java:2386) >>>> at org.apache.axis.client.Call.invoke(Call.java:2309) >>>> at org.apache.axis.client.Call.invoke(Call.java:1766) >>>> at >>>> org.globus.wsrf.core.shutdown.bindings.ShutdownPortTypeSOAPBindingStu >>>> b.shutdown(ShutdownPortTypeSOAPBindingStub.java:154) >>>> at >>>> org.globus.wsrf.container.ShutdownClient.main(ShutdownClient.java:85) >>>> >>>> >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >>>> java:39) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >>>> sorImpl.java:25) >>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>> at org.globus.bootstrap.BootstrapBase.launch(BootstrapBase.java:95) >>>> at org.globus.bootstrap.Bootstrap.main(Bootstrap.java:37) >>>> Error: ; nested exception is: >>>> javax.xml.rpc.soap.SOAPFaultException: Proxy file >>>> (C:\Users\ADMINI~1\App >>>> Data\Local\Temp\x509up_u_administrator) not found. >>>> >>>> I havn't set any security configeration in my GT 4.0.5 >>>> 在2009-09-17,"Tom Scavo" <trsc...@gmail.com> 写道: >>>>> 2009/9/17 zhong kai <zhok...@163.com>: >>>>>> ?? ? I install GT 4.0.5 ,start a insecurity container: >>>>>> ?? ? ?globus-start-container -nosec -p 8443 >>>>>> ?? ? ?and it works good. >>>>>> ?? ? But when I use 'globus-stop-container' to shutdown this >>>>>> container,error >>>>>> comes up: >>>>>> GSSException: Defective credential detected [Caused by: Proxy file (C:\U >>>>>> sers\ADMINI~1\AppData\Local\Temp\x509up_u_administrator) not found.] >>>>>> ?? Now my question is how to use command line to shutdown an insecurity >>>>>> container. >>>>> $ cd $GLOBUS_LOCATION >>>>> $ bin/globus-stop-container -m msg \ >>>>> -s http://localhost:8080/wsrf/services/ShutdownService >>> -- >>> best regards, >>> Peter Lavin, >>> Computer Architecture & Grid Research Group, >>> Lloyd Institute, 005, >>> Trinity College Dublin, Ireland. >>> +353 1 8961536 > >-- >best regards, >Peter Lavin, >Computer Architecture & Grid Research Group, >Lloyd Institute, 005, >Trinity College Dublin, Ireland. >+353 1 8961536