<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2955341116584636568</id><updated>2012-02-16T11:14:31.154-08:00</updated><category term='ALL POST'/><category term='RPD'/><category term='WEBCAT'/><category term='USER'/><category term='GROUP'/><category term='DEPLOY'/><category term='OBIEE11g'/><category term='LOCK'/><category term='COMMIT'/><category term='WLST'/><title type='text'>Weblogic Scripting Tool 101</title><subtitle type='html'>Welcome to WLST101. A collection of all my WLST stuff</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-4102418177291955321</id><published>2011-08-24T07:28:00.001-07:00</published><updated>2011-08-24T07:28:47.262-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RPD'/><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST OBIEE Bounce BI server</title><content type='html'>&lt;p&gt;Script to bounce the BI server using the WLST:&lt;/p&gt;  &lt;pre style="border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; padding-bottom: 5px; line-height: 14px; background-color: #eee; padding-left: 5px; width: 100%; padding-right: 5px; font-family: andale mono, lucida console, monaco, fixed, monospace; color: #000000; font-size: 12px; overflow: auto; border-top: #999999 1px dashed; border-right: #999999 1px dashed; padding-top: 5px"&gt;&lt;code&gt;&lt;br /&gt;# Bounce BI server using WLST&lt;br /&gt;# Be sure we are in the root&lt;br /&gt;cd('..\..')&lt;br /&gt;&lt;br /&gt;print 'Connecting to Domain ...'&lt;br /&gt;try:&lt;br /&gt;	domainCustom()&lt;br /&gt;except:&lt;br /&gt;	print 'Already in domainCustom'&lt;br /&gt;&lt;br /&gt;print 'Go to biee admin domain'&lt;br /&gt;cd('oracle.biee.admin')&lt;br /&gt;&lt;br /&gt;print 'Go to coreapplication_obips1 Mbean'&lt;br /&gt;cd('oracle.biee.admin:oracleInstance=instance1,type=BIDomain.BIInstanceDeployment.BIComponent,biInstance=coreapplication,process=coreapplication_obis1,group=Service')&lt;br /&gt;&lt;br /&gt;print 'Stopping the BI server'&lt;br /&gt;params = jarray.array([], java.lang.Object)&lt;br /&gt;signs = jarray.array([], java.lang.String)&lt;br /&gt;invoke('stop', params, signs)&lt;br /&gt;&lt;br /&gt;BIServerStatus = get('Status')&lt;br /&gt;print 'BI ServerStatus ' +BIServerStatus&lt;br /&gt;&lt;br /&gt;print 'Starting the BI server'&lt;br /&gt;params = jarray.array([], java.lang.Object)&lt;br /&gt;signs = jarray.array([], java.lang.String)&lt;br /&gt;invoke('start', params, signs)&lt;br /&gt;&lt;br /&gt;BIServerStatus = get('Status')&lt;br /&gt;print 'BI ServerStatus ' +BIServerStatus&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-4102418177291955321?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/4102418177291955321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-bounce-bi-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4102418177291955321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4102418177291955321'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-bounce-bi-server.html' title='WLST OBIEE Bounce BI server'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-1139860968111906677</id><published>2011-08-24T07:18:00.001-07:00</published><updated>2011-08-24T07:18:46.087-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='WEBCAT'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST OBIEE Bounce Presentation Server</title><content type='html'>&lt;p&gt;Script to bounce the presentation server using the WLST:&lt;/p&gt;  &lt;pre style="border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; padding-bottom: 5px; line-height: 14px; background-color: #eee; padding-left: 5px; width: 100%; padding-right: 5px; font-family: andale mono, lucida console, monaco, fixed, monospace; color: #000000; font-size: 12px; overflow: auto; border-top: #999999 1px dashed; border-right: #999999 1px dashed; padding-top: 5px"&gt;&lt;code&gt;&lt;br /&gt;# Bounce Presentationserver using WLST&lt;br /&gt;# Be sure we are in the root&lt;br /&gt;cd('..\..')&lt;br /&gt;&lt;br /&gt;print 'Connecting to Domain ...'&lt;br /&gt;try:&lt;br /&gt;	domainCustom()&lt;br /&gt;except:&lt;br /&gt;	print 'Already in domainCustom'&lt;br /&gt;&lt;br /&gt;print 'Go to biee admin domain'&lt;br /&gt;cd('oracle.biee.admin')&lt;br /&gt;&lt;br /&gt;print 'Go to coreapplication_obips1 Mbean'&lt;br /&gt;cd('oracle.biee.admin:oracleInstance=instance1,type=BIDomain.BIInstanceDeployment.BIComponent,biInstance=coreapplication,process=coreapplication_obips1,group=Service')&lt;br /&gt;&lt;br /&gt;print 'Stopping the presentation server'&lt;br /&gt;params = jarray.array([], java.lang.Object)&lt;br /&gt;signs = jarray.array([], java.lang.String)&lt;br /&gt;invoke('stop', params, signs)&lt;br /&gt;&lt;br /&gt;print 'Starting the presentation server'&lt;br /&gt;params = jarray.array([], java.lang.Object)&lt;br /&gt;signs = jarray.array([], java.lang.String)&lt;br /&gt;invoke('start', params, signs)&lt;br /&gt;&lt;br /&gt;PresentationServerStatus = get('Status')&lt;br /&gt;print 'PresentationServerStatus± ' +PresentationServerStatus&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-1139860968111906677?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/1139860968111906677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-bounce-presentation-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/1139860968111906677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/1139860968111906677'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-bounce-presentation-server.html' title='WLST OBIEE Bounce Presentation Server'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-5129476287232660985</id><published>2011-08-24T05:09:00.000-07:00</published><updated>2011-08-24T05:10:05.993-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='WEBCAT'/><category scheme='http://www.blogger.com/atom/ns#' term='DEPLOY'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST OBIEE Change WebCat Location</title><content type='html'>&lt;p&gt;Small script I use to changer the WebCat Location on a OBIEE11g BI system:&lt;/p&gt;  &lt;pre style="border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; padding-bottom: 5px; line-height: 14px; background-color: #eee; padding-left: 5px; width: 100%; padding-right: 5px; font-family: andale mono, lucida console, monaco, fixed, monospace; color: #000000; font-size: 12px; overflow: auto; border-top: #999999 1px dashed; border-right: #999999 1px dashed; padding-top: 5px"&gt;&lt;code&gt;&lt;br /&gt;# Be sure we are in the root&lt;br /&gt;cd('..\..')&lt;br /&gt;&lt;br /&gt;print 'Connecting to Domain ...'&lt;br /&gt;try:&lt;br /&gt;	domainCustom()&lt;br /&gt;except:&lt;br /&gt;	print 'Already in domainCustom'&lt;br /&gt;	&lt;br /&gt;print 'Go to biee admin domain'&lt;br /&gt;cd('oracle.biee.admin')&lt;br /&gt;&lt;br /&gt;# Go to the presentation server catalog location&lt;br /&gt;cd('oracle.biee.admin:type=BIDomain.BIInstance.PresentationServerConfiguration,biInstance=coreapplication,group=Service')&lt;br /&gt;&lt;br /&gt;# Lock the System&lt;br /&gt;execfile(&amp;quot;F:\WLST\Lock System.py&amp;quot;)&lt;br /&gt;&lt;br /&gt;# Go to the presentation server catalog location&lt;br /&gt;cd('..')&lt;br /&gt;cd('oracle.biee.admin:type=BIDomain.BIInstance.PresentationServerConfiguration,biInstance=coreapplication,group=Service')&lt;br /&gt;&lt;br /&gt;# Get the old WebCatalogSharedLocation&lt;br /&gt;WebCatalogSharedLocation = get('WebCatalogSharedLocation')&lt;br /&gt;print 'old WebCatalogSharedLocation = ' + WebCatalogSharedLocation &lt;br /&gt;&lt;br /&gt;# set the old WebCatalogSharedLocation&lt;br /&gt;newWebCatalogSharedLocation = '$ORACLE_INSTANCE/SampleAppWebcatNew'&lt;br /&gt;set('WebCatalogSharedLocation',newWebCatalogSharedLocation)&lt;br /&gt;WebCatalogSharedLocation = get('WebCatalogSharedLocation')&lt;br /&gt;print 'new WebCatalogSharedLocation = ' + WebCatalogSharedLocation &lt;br /&gt;&lt;br /&gt;# Commit the system&lt;br /&gt;execfile(&amp;quot;F:\WLST\Commit System.py&amp;quot;)&lt;br /&gt;&lt;br /&gt;print 'please restart Presentation-server using opmnctl'&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-5129476287232660985?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/5129476287232660985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-change-webcat-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/5129476287232660985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/5129476287232660985'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-change-webcat-location.html' title='WLST OBIEE Change WebCat Location'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-1692016438601638656</id><published>2011-08-24T01:59:00.001-07:00</published><updated>2011-08-24T03:59:56.777-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RPD'/><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST OBIEE Upload RPD</title><content type='html'>&lt;p&gt;Small script I use to upload RPD on the OBIEE11g BI system:&lt;/p&gt;  &lt;pre style="border-bottom: #999999 1px dashed; border-left: #999999 1px dashed; padding-bottom: 5px; line-height: 14px; background-color: #eee; padding-left: 5px; width: 100%; padding-right: 5px; font-family: andale mono, lucida console, monaco, fixed, monospace; color: #000000; font-size: 12px; overflow: auto; border-top: #999999 1px dashed; border-right: #999999 1px dashed; padding-top: 5px"&gt;&lt;code&gt;# Be sure we are in the root&lt;br /&gt;cd('..\..')&lt;br /&gt;&lt;br /&gt;print 'Connecting to Domain ...'&lt;br /&gt;try:&lt;br /&gt;    domainCustom()&lt;br /&gt;except:&lt;br /&gt;    print 'Already in domainCustom'&lt;br /&gt;&lt;br /&gt;print 'Go to biee admin domain'&lt;br /&gt;cd('oracle.biee.admin')&lt;br /&gt;&lt;br /&gt;# go to the server configuration&lt;br /&gt;print 'Go to BIDomain.BIInstance.ServerConfiguration MBean'&lt;br /&gt;cd('oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication,group=Service')&lt;br /&gt;&lt;br /&gt;# Lock the System&lt;br /&gt;execfile(&amp;quot;F:\WLST\Lock System.py&amp;quot;)&lt;br /&gt;&lt;br /&gt;cd('..')&lt;br /&gt;# go to the server configuration&lt;br /&gt;cd('oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication,group=Service')&lt;br /&gt;print 'Uploading RPD'&lt;br /&gt;# Set the parameters&lt;br /&gt;params =  jarray.array(['/home/oracle/Desktop/FolderShortcuts/OBIEEInstallHome/instances/instance1/bifoundation/OracleBIServerComponent/coreapplication_obis1/repository/10719.rpd','Admin123'],java.lang.Object)&lt;br /&gt;# Set the parameters Signs&lt;br /&gt;sign =  jarray.array(['java.lang.String', 'java.lang.String'],java.lang.String)&lt;br /&gt;# Invoke the procedure&lt;br /&gt;invoke( 'uploadRepository', params, sign)&lt;br /&gt;&lt;br /&gt;# Commit the system&lt;br /&gt;execfile(&amp;quot;F:\WLST\Commit System.py&amp;quot;)&lt;br /&gt;&lt;br /&gt;print 'please restart BI-server using opmnctl'&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;! DON’T FORGET to BOUNCE the BI-SERVER!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-1692016438601638656?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/1692016438601638656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-upload-rpd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/1692016438601638656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/1692016438601638656'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-upload-rpd.html' title='WLST OBIEE Upload RPD'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-3752877981200348876</id><published>2011-08-24T01:56:00.001-07:00</published><updated>2011-08-24T01:56:41.808-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='COMMIT'/><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST OBIEE Commit system</title><content type='html'>&lt;p&gt;Small script I use to commit on the OBIEE11g BI system:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;print('Commiting Changes')     &lt;br /&gt;cd ('..')      &lt;br /&gt;cd ('oracle.biee.admin:type=BIDomain,group=Service')&lt;/p&gt;    &lt;p&gt;objs = jarray.array([], java.lang.Object)     &lt;br /&gt;strs = jarray.array([], java.lang.String)      &lt;br /&gt;try:      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; invoke('commit', objs, strs)      &lt;br /&gt;except:      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; print('System not locked')&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;I have put it in a separate file which I call from my main script:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;execfile(&amp;quot;F:\WLST\Commit System.py&amp;quot;) &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-3752877981200348876?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/3752877981200348876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-commit-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/3752877981200348876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/3752877981200348876'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-commit-system.html' title='WLST OBIEE Commit system'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-6560582177015664400</id><published>2011-08-24T01:54:00.001-07:00</published><updated>2011-08-24T02:13:50.297-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OBIEE11g'/><category scheme='http://www.blogger.com/atom/ns#' term='LOCK'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><title type='text'>WLST OBIEE Place Lock on system</title><content type='html'>&lt;br /&gt;Small script I use to set a lock on the OBIEE11g BI system:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;print 'Calling lock ...'     &lt;br /&gt;cd ('..')      &lt;br /&gt;cd ('oracle.biee.admin:type=BIDomain,group=Service')&lt;br /&gt;objs = jarray.array([], java.lang.Object)     &lt;br /&gt;strs = jarray.array([], java.lang.String)      &lt;br /&gt;try:      &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; invoke('lock', objs, strs)      &lt;br /&gt;except:      &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print 'System already locked'&lt;/blockquote&gt;I have put it in a separate file which I call from my main script:&lt;br /&gt;&lt;blockquote&gt;execfile("F:\WLST\Lock System.py") &lt;br /&gt;Till Next Time&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-6560582177015664400?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/6560582177015664400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-place-lock-on-system.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/6560582177015664400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/6560582177015664400'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/08/wlst-obiee-place-lock-on-system.html' title='WLST OBIEE Place Lock on system'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-2749805664328725</id><published>2011-07-15T14:58:00.001-07:00</published><updated>2011-07-15T14:58:36.985-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='DEPLOY'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST (un)deploying an application directory</title><content type='html'>&lt;p&gt;#   &lt;br /&gt;# Deploy and start an application directory    &lt;br /&gt;# using WLST (online)    &lt;br /&gt;# John Minkjan Ciber Netherlands    &lt;br /&gt;# &lt;/p&gt;  &lt;p&gt;print 'deploying....'   &lt;br /&gt;deploy('OBIEE_META2', 'D:/OBIEE_META2', targets='AdminServer,bi_server1')&lt;/p&gt;  &lt;p&gt;print 'starting.....'   &lt;br /&gt;startApplication('OBIEE_META2')&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;#    &lt;br /&gt;# stop and undeploy an application directory    &lt;br /&gt;# using WLST (online)    &lt;br /&gt;# John Minkjan Ciber Netherlands    &lt;br /&gt;# &lt;/p&gt;  &lt;p&gt;print 'stoping.....'   &lt;br /&gt;stopApplication('OBIEE_META2')&lt;/p&gt;  &lt;p&gt;print 'undeploying....'   &lt;br /&gt;undeploy('OBIEE_META2')&lt;/p&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-2749805664328725?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/2749805664328725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-undeploying-application-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/2749805664328725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/2749805664328725'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-undeploying-application-directory.html' title='WLST (un)deploying an application directory'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-5728649453634438830</id><published>2011-07-15T12:23:00.001-07:00</published><updated>2011-07-15T12:24:08.039-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='GROUP'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST List User, Groups and Users in Groups</title><content type='html'>&lt;p&gt;#   &lt;br /&gt;# listing Users and Groups (online)    &lt;br /&gt;# John Minkjan Ciber Netherlands    &lt;br /&gt;# &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;from weblogic.management.security.authentication import UserReaderMBean    &lt;br /&gt;from weblogic.management.security.authentication import GroupReaderMBean&lt;/p&gt;  &lt;p&gt;realm=cmo.getSecurityConfiguration().getDefaultRealm()   &lt;br /&gt;atns = realm.getAuthenticationProviders()&lt;/p&gt;  &lt;p&gt;print 'All Users'   &lt;br /&gt;for i in atns:    &lt;br /&gt;&amp;#160; if isinstance(i,UserReaderMBean):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; userReader = i    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; cursor = i.listUsers(&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; print 'Users in realm '+realm.getName()+' are: '    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; while userReader.haveCurrent(cursor):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print userReader.getCurrentName(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; userReader.advance(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; userReader.close(cursor)&lt;/p&gt;  &lt;p&gt;print 'All Groups'   &lt;br /&gt;for i in atns:    &lt;br /&gt;&amp;#160; if isinstance(i,GroupReaderMBean):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader = i    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; cursor = i.listGroups(&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; print 'Groups in realm are: '    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; while groupReader.haveCurrent(cursor):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print groupReader.getCurrentName(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; groupReader.advance(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader.close(cursor)&lt;/p&gt;  &lt;p&gt;print 'users in group'&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;for i in atns:    &lt;br /&gt;&amp;#160; if isinstance(i,GroupReaderMBean):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader = i    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; cursor =&amp;#160; i.listGroups(&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; while groupReader.haveCurrent(cursor):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; group = groupReader.getCurrentName(cursor)&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; usergroup = i.listAllUsersInGroup(group,&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print realm.getName()    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print '-', group    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for user in usergroup:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print '--',user&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; groupReader.advance(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader.close(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;print ' unique users in group'&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;for i in atns:    &lt;br /&gt;&amp;#160; if isinstance(i,GroupReaderMBean):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader = i    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; cursor =&amp;#160; i.listGroups(&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; while groupReader.haveCurrent(cursor):    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; group = groupReader.getCurrentName(cursor)&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; usergroup = i.listAllUsersInGroup(group,&amp;quot;*&amp;quot;,0)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print realm.getName()    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print '-', group    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; uniqueUser = []    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for user in usergroup:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if user not in uniqueUser:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; uniqueUser.append(user)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for user in uniqueUser:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print '--',user&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; groupReader.advance(cursor)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; groupReader.close(cursor)    &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-5728649453634438830?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/5728649453634438830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-list-user-groups-and-users-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/5728649453634438830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/5728649453634438830'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-list-user-groups-and-users-in.html' title='WLST List User, Groups and Users in Groups'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-8587435636818870687</id><published>2011-07-15T10:32:00.001-07:00</published><updated>2011-07-15T10:32:58.242-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='GROUP'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST Removing user from group.</title><content type='html'>&lt;p&gt;#   &lt;br /&gt;# Removing Users to a Group using WLST (online)    &lt;br /&gt;# John Minkjan Ciber Netherlands    &lt;br /&gt;#     &lt;br /&gt;print 'lookup DefaultAuthenticator'     &lt;br /&gt;atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider('DefaultAuthenticator')&lt;/p&gt;  &lt;p&gt;groups = ['companya']   &lt;br /&gt;for group in groups:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; users = ['user1','user2']    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; for user in users:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'removing user: ',user, ' from group:', group    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; atnr.removeMemberFromGroup(group,user)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'user: ', user , ' can not be removed from group: ', group&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Till Next Time &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-8587435636818870687?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/8587435636818870687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-user-from-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8587435636818870687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8587435636818870687'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-user-from-group.html' title='WLST Removing user from group.'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-8428043177043179747</id><published>2011-07-15T10:31:00.001-07:00</published><updated>2011-07-15T10:31:39.393-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST executing a script file</title><content type='html'>&lt;p&gt;&lt;em&gt;execfile&lt;/em&gt;( filePath .py) &lt;/p&gt;  &lt;p&gt;execfile('D:\WLST_PY\DELETEUSERSFROMGROUP.py')&lt;/p&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-8428043177043179747?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/8428043177043179747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-executing-script-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8428043177043179747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8428043177043179747'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-executing-script-file.html' title='WLST executing a script file'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-3806446892807438257</id><published>2011-07-14T03:27:00.001-07:00</published><updated>2011-07-14T03:27:05.190-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='GROUP'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST Adding Users to a Group</title><content type='html'>&lt;p&gt;#   &lt;br /&gt;# Adding Users to a Group using WLST (online)    &lt;br /&gt;# John Minkjan Ciber Netherlands    &lt;br /&gt;#     &lt;br /&gt;print 'lookup DefaultAuthenticator'     &lt;br /&gt;atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider('DefaultAuthenticator')&lt;/p&gt;  &lt;p&gt;groups = ['companya','BIConsumers','BIAuthors']   &lt;br /&gt;for group in groups:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; users = ['user1','user2']    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; for user in users:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'working user: ',user, ' group:', group    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; try:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; atnr.addMemberToGroup(group,user)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; except:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'user: ', user , ' can not be placed in group: ', group&lt;/p&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-3806446892807438257?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/3806446892807438257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-adding-users-to-group.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/3806446892807438257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/3806446892807438257'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-adding-users-to-group.html' title='WLST Adding Users to a Group'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-4339571188295763968</id><published>2011-07-14T03:02:00.001-07:00</published><updated>2011-07-14T03:27:38.228-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER'/><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST Removing and Adding Users</title><content type='html'>&lt;p&gt;#    &lt;br /&gt;# Removing and Adding Users using WLST (online)     &lt;br /&gt;# John Minkjan Ciber Netherlands     &lt;br /&gt;#     &lt;br /&gt;print 'lookup DefaultAuthenticator'     &lt;br /&gt;atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider('DefaultAuthenticator')&lt;/p&gt;  &lt;p&gt;group = 'companya'    &lt;br /&gt;password = 'Welcome1'     &lt;br /&gt;users = ['user1','user2']     &lt;br /&gt;# delete the &amp;quot;old&amp;quot; users     &lt;br /&gt;for user in users:&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; try:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'working user: ',user     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; atnr.removeUser (user)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; except:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; pass&lt;/p&gt;  &lt;p&gt;# Create the &amp;quot;new&amp;quot; users    &lt;br /&gt;users = ['user1','user2']     &lt;br /&gt;for user in users:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; try:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print 'create user: ',user     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; atnr.createUser(user,password,user)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; except:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; pass     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-4339571188295763968?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/4339571188295763968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-and-adding-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4339571188295763968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4339571188295763968'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-and-adding-users.html' title='WLST Removing and Adding Users'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-4350122658789838651</id><published>2011-07-14T02:38:00.001-07:00</published><updated>2011-07-14T03:28:05.034-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='GROUP'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST Removing and Adding Groups</title><content type='html'>&lt;p&gt;#    &lt;br /&gt;# Removing and Adding groups using WLST (online)     &lt;br /&gt;# John Minkjan Ciber Netherlands     &lt;br /&gt;#     &lt;br /&gt;print 'lookup DefaultAuthenticator'     &lt;br /&gt;atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider('DefaultAuthenticator')&lt;/p&gt;  &lt;p&gt;groups = ['companya', 'companyb']    &lt;br /&gt;groupcomment = 'If you work for this company you need this group'&lt;/p&gt;  &lt;p&gt;for group in groups:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; print 'delete the old one if exists'     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; try:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; atnr.removeGroup(group)     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; except:     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; print '*************** CANNOT DELETE !!! Check If The Group With the Name : ' , group ,' Exists or NOT...'&lt;/p&gt;  &lt;p&gt;for group in groups:    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; print 'create group:' , group     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; atnr.createGroup(group,groupcomment)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Till Next Time&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-4350122658789838651?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/4350122658789838651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-and-adding-groups.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4350122658789838651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/4350122658789838651'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-removing-and-adding-groups.html' title='WLST Removing and Adding Groups'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-8242626644455922696</id><published>2011-07-11T05:32:00.001-07:00</published><updated>2011-07-11T05:32:55.142-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>WLST Connect</title><content type='html'>connect('weblogic','Ciber2011','t3://localhost:7001',adminServerName='AdminServer')&lt;br /&gt;&lt;br /&gt;Till Next Time&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-8242626644455922696?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/8242626644455922696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-connect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8242626644455922696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/8242626644455922696'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/wlst-connect.html' title='WLST Connect'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2955341116584636568.post-6467662030833334719</id><published>2011-07-11T05:26:00.000-07:00</published><updated>2011-07-11T05:33:19.145-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WLST'/><category scheme='http://www.blogger.com/atom/ns#' term='ALL POST'/><title type='text'>Welcome to wlst101</title><content type='html'>An other 101 blog John Minkjan dedicated to the Weblogic Scripting Tool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Till Next Time&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2955341116584636568-6467662030833334719?l=wlst101.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wlst101.blogspot.com/feeds/6467662030833334719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wlst101.blogspot.com/2011/07/welcome-to-wlst101.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/6467662030833334719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2955341116584636568/posts/default/6467662030833334719'/><link rel='alternate' type='text/html' href='http://wlst101.blogspot.com/2011/07/welcome-to-wlst101.html' title='Welcome to wlst101'/><author><name>John Minkjan</name><uri>http://www.blogger.com/profile/08228393663535024706</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-SU_qzV4eLCQ/TlPYSv7saBI/AAAAAAAAD1E/vQ0SuyZiBJI/s220/ciber_Foto_Small.jpg'/></author><thr:total>0</thr:total></entry></feed>
