Friday, March 22, 2013

wlst.sh with arguments

Create a python file called CreateAccessRole.py

And enter the below code

CreateAccessRole.py

------------------------------------------------------------------------------------------------------
import re


import os

import pdb



print 'connecting to server using: ' + sys.argv[1] + ' ' + sys.argv[2] + ' ' + sys.argv[3]

connect(sys.argv[1],sys.argv[2],sys.argv[3])



domainRuntime()



#if ("@server1.listenSSLPortEnabled@" == "true"):

# SoaInfraConfig = ObjectName('oracle.as.soainfra.config:Location=@server1.name@,name=soa-infra,type=SoaInfraConfig,Application=soa-infra')

# keystoreLocation = Attribute('KeystoreLocation', '@server1.customIdentityKeyStoreFileName@')

# mbs.setAttribute(SoaInfraConfig, keystoreLocation)



#grantAppRole(appStripe="OracleBPMProcessRolesApp", appRoleName="FinancialOfficer", principalClass="weblogic.security.principal.WLSGroupImpl", principalName="Administrators")



disconnect()

exit() ----------------------------------------------------------------------------------------------------------

No comments:

Post a Comment