Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

ConfigNOW Command Reference

sandychunchu edited this page Mar 8, 2017 · 5 revisions
<title></title> <style type="text/css">code{white-space: pre;}</style>

ConfigNOW Command Reference

Detailed Command Information

Each command is listed in the following section with parameters and properties used, as well as example output.

activate_composite

activate_composite activates a previously retired SCA composite application, allowing it to resume processing requests.

Command

ConfigNOW activate_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.name Yes Name of composite to activate
composite.revision Yes Specific revision of composite to activate

Example configuration

soa.host=localhost
wls.server.soa_server1.listener.port=8001
wls.admin.username=weblogic
wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==
composite.name=HelloWorld
composite.revision=1.0

Example output

os_prompt> ./ConfigNOW.sh activate_composite local soa11g -Dcomposite.name=HelloWorld -Dcomposite.revision=1.0

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command activate_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

activate_composite:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

activateComposite:

[input] skipping input as property host has already been set.

[input] skipping input as property port has already been set.

[input] skipping input as property user has already been set.

[secure-input] skipping secure-input as property password has already been set.

INFO skipping secure-input as property password has already been set.

[input] skipping input as property compositeName has already been set.

[input] skipping input as property revision has already been set.

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

compositeMgrTask:

[java] Connecting to: service:jmx:t3://localhost:8001/jndi/weblogic.management.mbeanservers.runtime

[java] connection initiated

[java] Composite (default/HelloWorld!1.0) is successfully activated.

INFO Command completed.

BUILD SUCCESS

Config_diff

Config_diff command is used to dump the configuration to a file and used to compare against a baseline or previous configuration. The output generated is both a HTML or plain .txt file

Command

ConfigNOW config_diff <env> <config>

Parameters

Property Required Description
Env Yes Environment to dump the configuration for
Config Yes Configuration file to recognise the environment to read the domain configuration

Properties used

Property Required Description
config.date_previous Yes Previous date to compare the configuration
config.date_diff Yes Can be a date or a string constant such as previous

Example output

configure_domain

configure_domain creates any resources defined in the environment and configuration file referenced as part of invocation. The command requires the administration server for the domain.

Command

ConfigNOW configure_domain <env> <config>

Parameters

Property Required Description
env Yes Environment to configure domain for
config Yes Configuration file containing domain resources to be configured

Properties used

All

Example output

os_prompt> ./ConfigNOW.sh configure_domain local jms_example

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/jms_example.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core/commands/configure_domain.py

INFO Establishing connection to Admin Server at URL [t3://localhost:7001], attempt #1

Connecting to t3://localhost:7001 with userid weblogic ...

Successfully connected to Admin Server 'as' that belongs to domain 'jms_example'.

Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.

Location changed to edit tree. This is a writable tree with

DomainMBean as the root. To make changes you will need to start

an edit session via startEdit().

For more help, use help(edit)

Starting an edit session ...

Started edit session, please be sure to save and activate your

changes once you are done.

No stack trace available.

INFO Unable to find filestore [AuditMessageStoreFile], trying to create new one.

MBean type FileStore with name AuditMessageStoreFile has been created successfully.

INFO File store directory [/opt/wls1034/domains/jms_example/AuditMessageStoreFile] has been created successfully.

INFO JDBC DataSource is not specified, skipping

No stack trace available.

INFO Creating JMS Server [AuditJMSServer]

MBean type JMSServer with name AuditJMSServer has been created successfully.

INFO Setting target [ as ].

No stack trace available.

INFO Unable to lookup JMS resource [AuditJMSModule], trying to create new one.

INFO Creating JMS module [AuditJMSModule]

MBean type JMSSystemResource with name AuditJMSModule has been created successfully.

INFO Creating SubDeployment [AuditJMS]

INFO Configuring resources in SubDeployment [AuditJMS].

INFO No connection factories specified in SubDeployment [AuditJMS], skipping.

INFO Creating queue [AuditRecordQueue].

INFO Queue [AuditRecordQueue] has been created successfully.

INFO Setting JNDI [com.integral.supportnow.AuditRecordQueue].

INFO Setting SubDeployment name [AuditJMS].

INFO No topics specified in SubDeplyment [AuditJMS], skipping.

INFO No distributed queues specified in SubDeplyment [AuditJMS], skipping.

INFO No distributed topics specified in SubDeplyment [AuditJMS], skipping.

INFO No security providers specified, skipping.

INFO Setting node manager username [ weblogic ] and password [ xxxxxxxxx ]

INFO No applications to deploy

Saving all your changes ...

Saved all your changes successfully.

Activating all your changes, this may take a while ...

The edit lock associated with this edit session is released

once the activation is completed.

Activation completed

INFO Command completed.

BUILD SUCCESS

configure_nodemanager

configure_nodemanager configures the node manager home for a WebLogic Server installation, creating all necessary configuration and security files.

Command

ConfigNOW configure_nodemanager <env> <config>

Parameters

Property Required Description
Env Yes Environment to configure node manager for
Config Yes Configuration file to use to configure node manager

Properties used

Property Required Description
wls.oracle.home Yes The full path of the existing Fusion Middleware (WebLogic) install home
wls.domain.javahome Yes The Java instance used by the installation
wls.name Yes The name of the existing WebLogic home directory. For all 10.3.x versions of WebLogic this is typically ‘wlserver_10.3’
wls.admin.name Yes Name of the admin server for the relevant domain
wls.domain.dir Yes Root directory of the relevant domain
wls.domain.name Yes Name of the relevant domain
wls.admin.listener.address Yes Network address of the admin server for the relevant domain
wls.admin.listener.port Yes Port bound to by the admin server for the relevant domain
nodemanager.startscriptenabled No Whether node manager will use a start script to boot WebLogic Server instances
nodemanager.crashrecovery No Whether Node Manager will restart servers that were running at point of server failure after recovery
nodemanager.domain.dir.sharing No Whether the domain directory monitored by node manager is shared on network storage
nodemanager.loglimit No Number of log files retained by Node Manager
nodemanager.listener.port No Port Node Manager will bind to at runtime (defaults to 5556)
nodemanager.listener.address No Network address Node Manager will bind to at runtime
nodemanager.secure.listener No Whether node manager will use SSL at runtime
nodemanager.arguments No Additional arguments passed to the JVM as part of the process of starting node manager

Example output

os_prompt> ./ConfigNOW.sh configure_nodemanager local wls1035

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/wls1035.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command configure_nodemanager as ant target in build file: core/commands/ant/weblogic-common.xml

validate.install.config:

[echo] Fusion Middleware Home: /opt/wls1035

[echo] Java Home: /opt/jdk1.6.0_25

[echo] WebLogic Name: wlserver_10.3

validate.admin.config:

[echo] WebLogic Domain Name: simple_domain

[echo] WebLogic Domain Directory: /opt/wls1035/domains

[echo] WebLogic Admin Server Name: as

[echo] WebLogic Admin Listener Address: localhost

[echo] WebLogic Admin Listener Port: 7001

configure_nodemanager:

[copy] Copying 1 file to /opt/wls1035/wlserver_10.3/common/nodemanager

[copy] Copying 1 file to /opt/wls1035/wlserver_10.3/common/nodemanager

[copy] Copying 1 file to /opt/wls1035/wlserver_10.3/common/nodemanager

[copy] Copying 1 file to /opt/wls1035/wlserver_10.3/server/bin

[echo] Setting up nodemanager home /opt/wls1035/wlserver_10.3/common/nodemanager

[propertyfile] Updating property file: /opt/wls1035/wlserver_10.3/common/nodemanager/nodemanager.domains

INFO Command completed.

BUILD SUCCESS

configure_obpm

configure_obpm configures the deployable applications and database schema for OBPM 10g prior to deployment to a WebLogic Server environment.

Command

ConfigNOW configure_obpm <env> <config>

Parameters

Property Required Description
env Yes Environment to configure OBPM for
config Yes Configuration file to use to configure OBPM

Properties used

Property Required Description
obpm.home Yes Location of OBPM installation
obpm.admin.user Yes Username to create for OBPM administration user
obpm.admin.password Yes Password to create for OBPM administration user
obpm.db.dir.host Yes Database host for the OBPM Directory schema
obpm.db.engine.host Yes Database host for the OBPM Engine schema
obpm.db.dir.username Yes Username for OBPM Directory database schema
obpm.db.dir.port Yes Database port for OBPM Directory database schema
obpm.db.engine.port Yes Database port for OBPM Engine database schema
obpm.db.dir.sid Yes Database SID for OBPM Directory database schema
obpm.db.engine.sid Yes Database SID for OBPM Engine database schema
obpm.db.dir.password Yes Database password for OBPM Directory database schema
obpm.organisation.id Yes Name of the organization
obpm.sys.password Yes Password for system administrator
obpm.db.engine.username Yes Username for OBPM Engine schema
obpm.db.engine.password Yes Password for OBPM Engine schema
obpm.engines.dir
obpm.ears.dir
obpm.engine.id Identifier to use for OBPM engine

create_domain

create_domain creates a new WebLogic Server domain. The combination of environment and configuration file will determine the domain template and extension templates used to create the new domain.

Command

ConfigNOW create_domain <env> <config>

Parameters

Property Required Description
env Yes Environment to create domain for
config Yes Configuration file to use to create domain

Properties used

All

Example output

os_prompt> ./ConfigNOW.sh create_domain local jms_example

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/jms_example.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core/commands/create_domain.py

INFO Creating domain: /opt/wls1034/domains/jms_example

INFO Reading template

INFO Writing domain

INFO Unable to lookup machine [machine1]. The machine will be created.

INFO Node manager does not exist, creating new one.

INFO Setting node manager type [Plain].

INFO Setting node manager address [localhost].

INFO Setting node manager port [5002].

INFO Setting node manager debug [None].

INFO Debug Enable is not specified, skipping.

INFO Lookup server [as]

INFO Assigning machine [machine1] to admin server [as].

INFO Server [as] already exists, checking REPLACE flag.

INFO Setting Auto Restart [None].

INFO WorkManager(s) is not specified, skipping.

INFO Command completed.

BUILD SUCCESS

db_switchover

db_switchover performs a failover of a RAC database configuration between RAC sites. The current value of the rac.site configuration property in configuration files for the environment determines the RAC site that will be failed over to.

Command

ConfigNOW db_switchover <env> <config>

Parameters

Property Required Description
env Yes Environment to perform database switchover for
config Yes Configuration file to use to for database switchover

Properties used

Property Required Description
rac.site Yes RAC site to fail over to
jdbc.multidatasources Yes List of JDBC multidatasources to fail over configuration for

Example configuration

rac.site=rac2

rac1.datasources=AuditDB-rac1

rac2.datasources=AuditDB-rac2

jdbc.datasources=${rac1.datasources},${rac2.datasources}

jdbc.multidatasources=AuditDB

db.host=localhost

db.port=1521

db.service=XE

db.driver=oracle.jdbc.OracleDriver

ds.url=jdbc:oracle:thin:@${db.host}:${db.port}/${db.service}

jdbc.multidatasource.AuditDB.JNDI=jdbc/multi/Audit

jdbc.multidatasource.AuditDB.Name=AuditDBMultiDS

jdbc.multidatasource.AuditDB.AlgorithmType=Failover

jdbc.multidatasource.AuditDB.DataSources=AuditDB-rac1,AuditDB-rac2

jdbc.multidatasource.AuditDB.Targets=svrCluster

jdbc.multidatasource.AuditDB.svrCluster.TargetType=Cluster

jdbc.multidatasource.AuditDB.rac.site.rac1.DataSources=AuditDB-rac1

jdbc.multidatasource.AuditDB.rac.site.rac2.DataSources=AuditDB-rac2

Example output

os_prompt> ./ConfigNOW.sh db_switchover local rac_example

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/rac_example.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core/commands/db_switchover.py

INFO Establishing connection to Admin Server at URL [t3://localhost:7001], attempt #1

Connecting to t3://localhost:7001 with userid weblogic ...

Successfully connected to Admin Server 'AdminServer' that belongs to domain 'rac_example_domain'.

Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.

Location changed to edit tree. This is a writable tree with

DomainMBean as the root. To make changes you will need to start

an edit session via startEdit().

For more help, use help(edit)

Starting an edit session ...

Started edit session, please be sure to save and activate your

changes once you are done.

INFO Switched [AuditDBMultiDS] from [AuditDB-rac1] to [AuditDB-rac2]

Saving all your changes ...

Saved all your changes successfully.

Activating all your changes, this may take a while ...

The edit lock associated with this edit session is released

once the activation is completed.

Activation completed

Already in Edit Tree

Starting an edit session ...

Started edit session, please be sure to save and activate your

changes once you are done.

Saving all your changes ...

Saved all your changes successfully.

Activating all your changes, this may take a while ...

The edit lock associated with this edit session is released

once the activation is completed.

Activation completed

Disconnected from weblogic server: AdminServer

INFO Command completed.

BUILD SUCCESS

deploy_apps

deploy_apps deploys applications to configured targets for a WebLogic domain.

Command

ConfigNOW deploy_apps <env> <config>

Parameters

Property Required Description
env Yes Environment to deploy applications for
config Yes Configuration file to use to for deploying applications

Properties used

Property Required Description
applications Yes Comma-separated list of applications to deploy
applications.default.deploy.path No Default path to locate application files
application.<app>.name Yes Logical identifier for individual application
application.<app>.path Yes Directory files for application are located in
application.<app>.targets Yes Comma-separated list of targets to deploy application to

Example configuration

applications=helloWorld

application.helloWorld.name=HelloWorldWeb

application.helloWorld.path=custom/resources/examples

application.helloWorld.file=HelloWorldWeb.war

application.helloWorld.targets=as

application.helloWorld.target.as.TargetType=Server

Example output

os_prompt> ./ConfigNOW.sh deploy_apps local deploy_example

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/deploy_example.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core/commands/deploy_apps.py

INFO Establishing connection to Admin Server at URL [t3://localhost:7001], attempt #1

Connecting to t3://localhost:7001 with userid weblogic ...

Successfully connected to Admin Server 'as' that belongs to domain 'simple_domain'.

Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.

Location changed to edit tree. This is a writable tree with

DomainMBean as the root. To make changes you will need to start

an edit session via startEdit().

For more help, use help(edit)

Starting an edit session ...

Started edit session, please be sure to save and activate your

changes once you are done.

INFO Deploying application: HelloWorldWeb

Deploying application from /home/kevinpowe/programming/work/RECTBETA2/custom/resources/examples/HelloWorldWeb.war to targets as (upload=false) ...

<01/07/2011 11:34:47 AM EST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, HelloWorldWeb [archive: /home/kevinpowe/programming/work/RECTBETA2/custom/resources/examples/HelloWorldWeb.war], to as .>

You have an edit session in progress, hence WLST will not

block for your deployment to complete.

Started the Deployment of Application. Please refer to the returned WLSTProgress object or variable LAST to track the status.

Current Status of your Deployment:

Deployment command type: deploy

Deployment State : running

Deployment Message : [Deployer:149140]The task cannot be processed further until the current edit session is activated. When this occurs, task processing will continue. The user can exit the deployer tool without affecting the task.

Saving all your changes ...

Saved all your changes successfully.

Activating all your changes, this may take a while ...

The edit lock associated with this edit session is released

once the activation is completed.

Activation completed

INFO Command completed.

BUILD SUCCESS

deploy_composite

deploy_composite deploys an SCA composite application to a SOA Suite domain.

Command

ConfigNOW deploy_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.location Yes Relative or absolute path to SAR file for composite to be deployed
composite.overwrite No Whether to overwrite any existing composite matching the deployed composite’s details
composite.default No Whether the composite being deployed is the default version

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.location=custom/resources/examples/sca_HelloWorld_rev1.0.jar

Example output

os_prompt> ./ConfigNOW.sh deploy_composite local composites_example

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/composites_example.properties

INFO decrypting passwords in base file first: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command deploy_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

deploy_composite:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

deploy:

[input] skipping input as property serverURL has already been set.

[input] skipping input as property sarLocation has already been set.

setting user/password..., user=weblogic

Processing sar=custom/resources/examples/sca_HelloWorld_rev1.0.jar

Adding sar file - /home/kevinpowe/programming/work/ConfigNOW/custom/resources/examples/sca_HelloWorld_rev1.0.jar

INFO: Creating HTTP connection to host:localhost, port:8001

INFO: Received HTTP response from the server, response code=200

---->Deploying composite success.

INFO Command completed.

BUILD SUCCESS

deploy_composite_with_cp

deploy_composite_with_cp deploys an SCA composite application to a SOA Suite domain, using the specified configuration plan.

Command

ConfigNOW deploy_composite_with_cp <env> <config>

Parameters

Property Required Description
env Yes Environment to deploy composite to
config Yes Configuration file to use to locate SOA Suite domain to deploy composite to

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.location Yes Relative or absolute path to SAR file for composite to be deployed
composite.cp Yes Relative or absolute path to configuration plan to use
composite.overwrite No Whether to overwrite any existing composite matching the deployed composite’s details
composite.default No Whether the composite being deployed is the default version

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.location=custom/resources/examples/sca_HelloWorld_rev1.0.jar

composite.cp=custom/resources/examples/HelloWorld_cfgplan.xml

Example output

os_prompt> ./ConfigNOW.sh deploy_composite_with_cp local soa11g -Dcomposite.cp=custom/resources/examples/HelloWorld_cfgplan.xml

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command deploy_composite_with_cp as ant target in build file: core/commands/ant/composite-mgmt.xml

deploy_composite_with_cp:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

deploy:

[input] skipping input as property serverURL has already been set.

[input] skipping input as property sarLocation has already been set.

setting user/password..., user=weblogic

Processing sar=custom/resources/examples/sca_HelloWorld_rev1.0.jar

Adding sar file - /home/kevinpowe/programming/work/ConfigNOW/custom/resources/examples/sca_HelloWorld_rev1.0.jar

INFO: Creating HTTP connection to host:localhost, port:8001

INFO: Received HTTP response from the server, response code=200

---->Deploying composite success.

INFO Command completed.

BUILD SUCCESS

deploy_osb_config

deploy_osb_config deploys a JAR file containing OSB configuration to a running domain

Command

ConfigNOW deploy_osb_config <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate OSB domain
config Yes Configuration file to use to locate OSB domain to deploy to

Properties used

Property Required Description
osb.configs Yes Comma-separated list of OSB configuration JARs to deploy
osb.config.<conf>.file Yes Full or relative path to OSB configuration file to deploy
osb.config.<conf>.file.custom No Optional customization file to use when deploying OSB configuration

Example configuration

osb.configs=appserver

osb.config.appserver.file=C:/Work/ConfigNOW/sbconfig_appserver.jar

osb.config.appserver.file.custom=C:/Work/ConfigNOW/customization.xml

Example output

os_prompt>ConfigNOW.cmd deploy_osb_config local osb11g

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO =========================================================================

INFO This version of ConfigNOW 4.1 is a Release Candidate and as such will

INFO expire on the 3rd of August 2012. At this time a subsequent Release

INFO Candidate or the final release will be available on our website at:

INFO http://www.integraltech.com.au

INFO =========================================================================

INFO Loading configuration from file: config\environments\local\osb11g.properties

INFO WLST support: True

INFO Running command from jython file: core\commands\deploy_osb_config.py

INFO Establishing connection to Admin Server at URL [t3://localhost:7001], attempt #1

Connecting to t3://localhost:7001 with userid weblogic ...

Successfully connected to Admin Server 'AdminServer' that belongs to domain 'osb11115manualdomain'.

Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.

INFO Deploying OSB configuration from file 'C:/Work/ConfigNOW/sbconfig_appserver.jar'

Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.

For more help, use help(domainRuntime)

<trimmed output>

INFO Command completed.

BUILD SUCCESS

example

example is an example command implemented using a Jython script. It is provided as part of ConfigNOW as a template for creating custom scripted commands. The Jython implementation can be found in a ConfigNOW distributation at custom\commands\example.py

Command

ConfigNOW example <env> <config>

Parameters

Property Required Description
env Yes Environment to pass to command
config Yes Configuration file to pass to command

Properties used

None

Example output

os_prompt> ./ConfigNOW.sh example local simple

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/simple.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: custom/commands/example.py

INFO wls.oracle.home = /opt/wls1034

INFO running global post command plugin: custom/plugins/example_post.py

INFO wls.oracle.home = /opt/wls1034

INFO Command completed.

BUILD SUCCESS

example_using_ant

example_using_ant is an example command implemented using an Ant build file. It is provided as part of ConfigNOW as a template for creating custom commands implemented using Ant build files. The Ant implementation can be found in a ConfigNOW distribution at custom\commands\ant\example_using_ant.xml

Command

ConfigNOW example_using_ant <env> <config>

Parameters

Property Required Description
env Yes Environment to pass to command
config Yes Configuration file to pass to command

Properties used

All

Example output

os_prompt> ./ConfigNOW.sh example_using_ant

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO WLST support: True

INFO running global pre command plugin: custom/plugins/example_using_ant_pre.py

INFO -- in example_using_ant_pre.py - doing some global custom stuff pre ant task...

INFO Running command example_using_ant as ant target in build file: custom/commands/ant/example_using_ant.xml

example_using_ant:

[echo] hello from ant

[echo] wls.oracle.home=${wls.oracle.home}

INFO Command completed.

BUILD SUCCESS

help

help displays all available ConfigNOW commands, with a brief description of each command.

Command

ConfigNOW help

Parameters

None

Properties used

None

Example output

os_prompt> ConfigNOW help

INFO WLST support: False

INFO Running command from jython file: core\commands\help.py

Available commands are:

activate_composite Activate a composite

configure_domain Configure existing WebLogic Domain

configure_obpm Configure Oracle BPM 10g database and applications

create_domain Create WebLogic Domain

db_switchover Database Switchover to Alternate Site

deploy_apps Deploy JEE applications to WebLogic

deploy_composite Deploy a composite

deploy_composite_with_cp Deploy a composite specifying a config plan

deploy_eALOC Deploys eALOC components to target environment

install_obpm Install Oracle BPM 10g

install_osb Install Oracle Service Bus 11g

install_osb10g Install Oracle Service Bus 10g

install_soa_suite Install SOA Suite

install_weblogic Install WebLogic

list_composites List deployed composites

password_encrypter Encrypts all the password properties

retire_composite Retire a composite

run_rcu Runs Repository Creation Utility

set_default_composite Sets a composite revision as the default

setup_oer_reports Setup OER reports in BI Publisher

show_config Display the config as a fully resolved set of properties

start_composite Start a composite

start_wls_admin Start WebLogic admin server

stop_composite Stop a composite

stop_wls_admin Stop WebLogic admin server

undeploy_composite Undeploy a composite

INFO Command completed.

BUILD SUCCESS

install_obpm

install_obpm installs Oracle BPM 10g.

Command

ConfigNOW install_obpm <env> <config> -Dobpm.install.file=<install file location> -Dobpm.home=<obpm home>

Parameters

Property Required Description
env No Environment to use to install OBPM
config No Configuration file to use to install OBPM

Properties used

Property Required Description
obpm.install.file Yes File to use to install OBPM
obpm.home Yes Location to install OBPM to
password.prompt No Whether to prompt for database passwords if not supplied
global.jdbc.password.value Yes Password to set for OBPM database users

Example output

os_prompt> ./ConfigNOW.sh install_obpm local soa11g -Dobpm.install.file=/media/Work/OracleBPMEnterpriseWL103200_lin_jvm32.bin -Dobpm.home=/opt/obpm10g -Dglobal.jdbc.password.value=password

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command install_obpm as ant target in build file: core/commands/ant/build-obpm.xml

validate.obpm.install:

install_obpm:

[echo] Installing Oracle BPM with the following settings:

[echo] ================================================

[echo] OBPM Home: /opt/obpm10g

[echo] ================================================

[echo] Please be patient the silent installer may take several minutes to run.

[exec] Preparing to install...

[exec] Extracting the JRE from the installer archive...

[exec] Unpacking the JRE...

[exec] Extracting the installation resources from the installer archive...

[exec] Configuring the installer for this system's environment...

[exec] Launching installer...

[exec] Preparing SILENT Mode Installation...

[exec] ===============================================================================

[exec] Oracle BPM Enterprise for Oracle WebLogic 10.3(created with InstallAnywhere by Macrovision)

[exec] -------------------------------------------------------------------------------------------

[exec] ===============================================================================

[exec] Installing...

[exec] -------------

[exec] [==================|==================|==================|==================]

[exec] [------------------|------------------|------------------|------------------]

[exec] Installation Complete.

[echo] ================================================

[echo] ================================================

[echo] Oracle BPM Install Finished

[echo] ================================================

[echo] ================================================

INFO Command completed.

BUILD SUCCESS

install_osb

install_osb creates a new Oracle Service Bus (11g or higher) installation non-interactively.

Command

ConfigNOW install_osb <env> <config> -Dosb.install.zip=<install file location>

Parameters

Property Required Description
env Yes Environment to use while installing OSB
config Yes Configuration file to use to guide OSB installation
osb_install_zip Yes (unless property is specified in configuration properties) The location of the OSB install file.

Properties used

Property Required Description
osb.install.zip Yes (unless osb.install.dir is set)

The location of the OSB install file. Tested install files include:

  • ofm_osb_generic_11.1.1.4.0_disk1_1of1.zip

  • ofm_osb_generic_11.1.1.3.0_disk1_1of1.zip

osb.install.dir Yes (unless osb.install.zip is set) The location of the Disk1 directory of the extract zip file.
wls.oracle.home Yes The full path of the existing Fusion Middleware (WebLogic) install home
wls.name Yes The name of the existing WebLogic home directory. For all 10.3.x versions of WebLogic this is typically ‘wlserver_10.3’
osb.name Yes The desired name of the OSB home directory.
wls.domain.javahome Yes The java instance to use for the installation
osb.install.tmp.dir No The temporary directory to extract the install files to when osb.install.zip property is set. Use this property to change from the default temp directory.
oui.inventory.directory Yes (when running on unix) The directory to create the OUI inventory at
oui.install.group Yes (when running on unix) The unix group to use for the install (e.g. oinstall)
oui.inventory.loc Yes (when running on unix) The location to create the oraInst.loc file

Example output

os_prompt> ./ConfigNOW.sh install_osb local osb11g

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/osb11g.properties

INFO WLST support: True

INFO Running command install_osb as ant target in build file: core/commands/ant/build-osb.xml

validate.osb.install:

populate.osb.rsp:

[copy] Copying 1 file to /home/kevinpowe/programming/ConfigNOW/core/commands/ant/tmp

unzip.osb.install.file:

install_osb:

[echo] Installing OSB with the following settings:

[echo] ================================================

[echo] Middleware Home: /u02/app/oracle/product/fmw/11.1.1

[echo] OSB Home: /u02/app/oracle/product/fmw/11.1.1/Oracle_OSB1

[echo] WL Home: /u02/app/oracle/product/fmw/11.1.1/wlserver_10.3

[echo] ================================================

generic.oui.install:

[echo] Please be patient the silent installer may take several minutes to run.

[exec] Starting Oracle Universal Installer...

[exec] Checking if CPU speed is above 300 MHz. Actual 2768 MHz Passed

[exec] Checking Temp space: must be greater than 150 MB. Actual 7542 MB Passed

[exec] Checking swap space: must be greater than 512 MB. Actual 1725 MB Passed

[exec] Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-05-06_04-34-16PM. Please wait ...Log: /opt/oracle/oraInventory/logs/install2011-05-06_04-34-16PM.log

[exec] Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.

[exec] Reading response file..

[exec] sh: /bin/rpm: not found

[exec] sh: /bin/rpm: not found

[exec] Warning: Check:CertifiedVersions failed.

[exec] Expected result: One of enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11

[exec] Actual Result: (Unknown OS version)

[exec] Check complete. The overall result of this check is: Failed <<<<

[exec] Problem: This Oracle software is not certified on the current operating system.

[exec] Recommendation: Make sure you are installing the software on the correct platform.

[exec] Check complete. The overall result of this check is: Failed <<<<

[exec] Problem: Some recommended packages are missing (see above).

[exec] Recommendation: You may actually have installed packages which have obsoleted these, in which case you can successfully continue with the install. If you have not, it is recommended that you do not continue. Refer to the product release notes to find out how to get the missing packages and update the system.

[exec] Expected result: 1024MB

[exec] Actual Result: 2012MB

[exec] Check complete. The overall result of this check is: Passed

[exec] Warning: Check:GLIBC failed.

[exec] TotalMemory Check: Success.

[exec] Verifying data......

[exec] Copying Files...

[exec] -----------20%----------40%----------60%----------80%--------100%

[exec] The installation of Oracle AS Common Toplevel Component, Oracle Service Bus completed successfully.

[delete] Deleting: /home/kevinpowe/programming/ConfigNOW/core/commands/ant/tmp/osb_Oracle_OSB1.rsp

[echo] ================================================

[echo] ================================================

[echo] OSB Install Finished

[echo] ================================================

[echo] ================================================

INFO Command completed.

BUILD SUCCESS

install_osb10g

install_osb10g creates a new Oracle Service Bus installation non-interactively.

Command

ConfigNOW install_osb10g <env> <config> -Dosb.install.file=<install file location>

Parameters

Property Required Description
env Yes Environment to use while installing OSB
config Yes Configuration file to use to guide OSB installation
osb_install_file Yes (unless property is specified in configuration properties) The location of the OSB install binary.

Properties used

Property Required Description
osb.install.file Yes The location of the OSB install binary.
wls.bea.home Yes The full path of the existing Fusion Middleware (WebLogic) install home
wls.name Yes The name of the existing WebLogic home directory. For all 10.3.x versions of WebLogic this is typically ‘wlserver_10.3’
osb.name Yes The desired name of the OSB home directory.
wls.nodemanager.port Yes Port to be used by default nodemanager configuration created on install

Example output

os_prompt> ConfigNOW install_osb10g dev osb10g

INFO Loading configuration from file: config\environments\dev\osb10g.properties

INFO WLST support: False

INFO Running command install_osb10g as ant target in build file: core\commands\ant\build-osb10g.xml

validate.osb.install:

populate.silent.xml:

[copy] Copying 1 file to C:\programming\projects\work\ConfigNOW\core\commands\ant\tmp

install_osb10g:

[echo] Temporary folder location: C:\Users\kpowe\AppData\Local\Temp\

[echo] Please be patient the silent installer may take several minutes to run.

[exec] Extracting .................................................................................................

... Done

[delete] Deleting: C:\programming\projects\work\ConfigNOW\core\commands\ant\tmp\silent_osb.x

ml

INFO Command completed.

BUILD SUCCESS

install_soa_suite

install_soa_suite creates a new SOA Suite installation non-interactively.

Command

ConfigNOW install_soa_suite <env> <config> [-Dsoa.suite.install.part1.zip=<install file location>]

Parameters

Property Required Description
env Yes Environment to use to install SOA Suite
config Yes Configuration file to use to guide SOA Suite installation
soa.suite.install.part1.zip Yes (unless property is specified in configuration properties, or soa.suite.install.zip or soa.suite.install.dir are specified) Location of the primary SOA Suite install file.
soa.suite.install.part2.zip Yes (unless property is specified in configuration properties, or soa.suite.install.zip or soa.suite.install.dir are specified) Location of the second part of the SOA Suite install file.

Properties used

Property Required Description
wls.oracle.home Yes The full path of the existing Fusion Middleware (WebLogic) install home
soa.name Yes The desired name of the SOA home directory
wls.domain.javahome Yes The Java instance to use for the installation
soa.install.tmp.dir No The temporary directory to extract the install files to when soa.suite.install.zip, soa.suite.install.part1.zip or soa.suite.install.part2.zip properties are set. Use this property to change from the default temp directory.
oui.inventory.directory Yes (when running on Unix) The directory to create the OUI inventory in
oui.install.group Yes (when running on Unix) The unix group to use for the install (e.g. oinstall)
oui.inventory.loc Yes (when running on Unix) The location to create the oraInst.loc file

Example output

os_prompt>./ConfigNOW.sh install_soa_suite local soa11g -Dsoa.suite.install.part1.zip=/home/kevinpowe/Downloads/ofm_soa_generic_11.1.1.5.0_disk1_1of2.zip -Dsoa.suite.install.part2.zip=/home/kevinpowe/Downloads/ofm_soa_generic_11.1.1.5.0_disk1_2of2.zip

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command install_soa_suite as ant target in build file: core/commands/ant/build-soasuite.xml

validate.soa.suite.install:

populate.soa.suite.rsp:

[copy] Copying 1 file to /home/kevinpowe/programming/work/ConfigNOW/core/commands/ant/tmp

unzip.install.files:

remove.soa.install.tmp.dir:

[unzip] Expanding: /home/kevinpowe/Downloads/ofm_soa_generic_11.1.1.5.0_disk1_1of2.zip into /tmp/soa-suite

[unzip] Expanding: /home/kevinpowe/Downloads/ofm_soa_generic_11.1.1.5.0_disk1_2of2.zip into /tmp/soa-suite

install_soa_suite:

[echo] Installing SOA Suite with the following settings:

[echo] ================================================

[echo] Middleware Home: /opt/wls1035_native

[echo] SOA Home: /opt/wls1035_native/soa

[echo] ================================================

generic.oui.install:

[echo] Please be patient the silent installer may take several minutes to run.

[exec] Starting Oracle Universal Installer...

[exec] Checking if CPU speed is above 300 MHz. Actual 2763 MHz Passed

[exec] Checking Temp space: must be greater than 150 MB. Actual 30269 MB Passed

[exec] Checking swap space: must be greater than 512 MB. Actual 3376 MB Passed

[exec] Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-08-31_03-48-53PM. Please wait ...Log: /home/kevinpowe/oraInventory/logs/install2011-08-31_03-48-53PM.log

[exec] Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.

[exec] Reading response file..

[exec] sh: /bin/rpm: not found

[exec] sh: /bin/rpm: not found

[exec] Expected result: One of enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11

[exec] Actual Result: (Unknown

[exec] Check complete. The overall result of this check is: Failed <<<<

[exec] Problem: This Oracle software is not certified on the current operating system.

[exec] Recommendation: Make sure you are installing the software on the correct platform.

[exec] Warning: Check:CertifiedVersions failed.

[exec] Check complete. The overall result of this check is: Failed <<<<

[exec] Problem: Some recommended packages are missing (see above).

[exec] Recommendation: You may actually have installed packages which have obsoleted these, in which case you can successfully continue with the install. If you have not, it is recommended that you do not continue. Refer to the product release notes to find out how to get the missing packages and update the system.

[exec] Warning: Check:GLIBC failed.

[exec] Expected result: 1024MB

[exec] Actual Result: 3024MB

[exec] Check complete. The overall result of this check is: Passed

[exec] TotalMemory Check: Success.

[exec] Verifying data......

[exec] Copying Files...

[exec] -----------20%----------40%----------60%----------80%--------100%

[exec] The installation of Oracle AS Common Toplevel Component, Oracle SOA Suite 11g completed successfully.

[delete] Deleting: /home/kevinpowe/programming/work/ConfigNOW/core/commands/ant/tmp/soaSuite_soa.rsp

[echo] ================================================

[echo] ================================================

[echo] SOA Suite Install Finished

[echo] ================================================

[echo] ================================================

INFO Command completed.

BUILD SUCCESS

install_weblogic

install_weblogic creates a new WebLogic Server installation non-interactively.

Command

ConfigNOW install_weblogic <env> <config> -Dwls.install.file=<install file location>

Parameters

Property Required Description
env Yes Environment to perform installation for
config Yes Configuration file to use to install WebLogic Server

Properties used

Property Required Description
wls.install.file Yes The location of the WebLogic install binary.
wls.oracle.home Yes The full path of the Fusion Middleware home that will be created as part of installing WebLogic Server
wls.name Yes The name of the WebLogic home directory that will be created.
wls.nodemanager.port Yes Port to be used by default nodemanager configuration created on install

Example configuration

wls.oracle.home=/opt/wls1035

wls.name=wlserver_10.3

wls.domain.javahome=/opt/jdk1.6.0_25

Example output

os_prompt> ./ConfigNOW.sh install_weblogic local wls1035 -Dwls.install.file=/home/kevinpowe/Downloads/wls1035_generic.jar

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/wls1035.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command install_weblogic as ant target in build file: core/commands/ant/build-weblogic.xml

validate.weblogic.install:

populate.silent.xml:

[copy] Copying 1 file to /home/kevinpowe/programming/work/RECTBETA2/core/commands/ant/tmp

install_weblogic:

[echo] Temporary folder location: /tmp

[echo] Installing WebLogic with the following settings:

[echo] ================================================

[echo] BEA/Oracle Home: /opt/wls1035

[echo] WebLogic Home: /opt/wls1035/wlserver_10.3

[echo] Node Manager Port: 5556

[echo] ================================================

[echo] Please be patient the silent installer may take several minutes to run.

[echo] Performing install from jar file.

[delete] Deleting: /home/kevinpowe/programming/work/RECTBETA2/core/commands/ant/tmp/silent_weblogic.xml

[echo] ================================================

[echo] ================================================

[echo] WebLogic Install Finished

[echo] ================================================

[echo] ================================================

INFO Command completed.

BUILD SUCCESS

list_composites

list_composites lists metadata for all composites deployed in a SOA Suite domain.

Command

ConfigNOW list_composites <env> <config>

Parameters

Property Required Description
Env Yes Environment to list composites for
Config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

Example output

os_prompt> ./ConfigNOW.sh list_composites local soa11g

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command list_composites as ant target in build file: core/commands/ant/composite-mgmt.xml

list_composites:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

listDeployedComposites:

[input] skipping input as property host has already been set.

[input] skipping input as property port has already been set.

[input] skipping input as property user has already been set.

[secure-input] skipping secure-input as property password has already been set.

INFO skipping secure-input as property password has already been set.

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

compositeMgrTask:

[java] Connecting to: service:jmx:t3://brother-eye:8001/jndi/weblogic.management.mbeanservers.runtime

[java] connection initiated

[java] Following 2 composites are currently deployed to the platform:

[java] 1. SimpleApproval[1.0], partition=default, mode=active, state=on, isDefault=true, deployedTime=2011-11-02T12:37:16.311+11:00

[java] 2. schema-restriction[01.00.00], partition=default, mode=active, state=on, isDefault=true, deployedTime=2011-11-02T14:15:32.261+11:00

INFO Command completed.

opatch_XXX

opatch_apply,opatch_lsinventory , opatch_rollback command applies oracle patches to offline domain. It’s based on Oracle’s opatch utility.

Command

ConfigNOW opatch_apply <env> <config>

ConfigNOW opatch_lsinventory <env> <config>

ConfigNOW opatch_rollback <env> <config>

Parameters

Property Required Description
Env Yes Environment to apply the patch for
Config Yes Configuration file to use to pickup details like Oracle_Home , patch directory etc

Properties used

Property Required Description
opatch.patchesdir Yes The directory that contains the Patch zip file
opatch.patchname Yes Name of the patch file
opatch.patchid Yes Patch ID as specified by Oracle

Example output

OS Prompt>ConfigNOW opatch_lsinventory local soa12c

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup

port was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO =========================================================================

INFO ConfigNOW 4.1.7

INFO The latest releases of ConfigNOW are available at our website at:

INFO http://www.integraltech.com.au

INFO =========================================================================

INFO Loading configuration from file: config\environments\local\soa12c.properti

es

INFO setenv file verified.

INFO WLST support: True

INFO Running command opatch_lsinventory as ant target in build file: core\comma

nds\ant\opatch.xml

opatch_lsinventory:

[echo] Applying an Oracle Patch using oPatch and the following settings:

[echo] =================================================================

[echo] Middleware Home: C:/Oracle12c

[echo] =================================================================

generic.opatch.run:

[echo] Please be patient the oPatch tools may take several minutes to run.

[echo] IMPORTANT: Please note that on Windows oPatch commands may need to b

e run as Administrator

[echo] IMPORTANT: If you are receiving message about a locked inventory or

OPatch is throwing

[echo] IMPORTANT: Null pointers, then this is likely your issue

[exec] Oracle Interim Patch Installer version 13.2.0.0.0

[exec] Copyright (c) 2014, Oracle Corporation. All rights reserved.

[exec]

[exec]

[exec] Oracle Home : C:/Oracle12c

[exec] Central Inventory : C:\Program Files (x86)\Oracle\Inventory

[exec] from : n/a

[exec] OPatch version : 13.2.0.0.0

[exec] OUI version : 13.2.0.0.0

[exec] Log file location : C:/Oracle12c\cfgtoollogs\opatch\opatch2016-07-01

_09-41-59AM_1.log

[exec]

[exec]

[exec] OPatch detects the Middleware Home as "C:\Oracle12c"

[exec]

[exec] Jul 01, 2016 9:43:17 AM oracle.sysman.oii.oiii.OiiiInstallAreaContro

l initAreaControl

[exec] INFO: Install area Control created with access level 0

[exec] Lsinventory Output file location : C:/Oracle12c\cfgtoollogs\opatch\l

sinv\lsinventory2016-07-01_09-41-59AM.txt

[exec]

[exec] --------------------------------------------------------------------

------------

[exec]

[exec] There are no Interim patches installed in this Oracle Home.

[exec]

[exec]INFO Command completed.

BUILD SUCCESS

Validate_config

Validate_config command verifies for the completeness and correctness of the properties in the supplied properties file. This command is useful when you are first building up the config files for a specific environment to ensure the requirements of property inheritance are covered.

Command

ConfigNOW validate_config <env> <config>

Parameters

Property Required Description
Env Yes Environment name
Config Yes Configuration file to validate the properties of

Properties used

No specific propert is required as long as you supply the name of the properties file whose config need to validated.

Example output

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO =========================================================================

INFO ConfigNOW 4.2

INFO The latest releases of ConfigNOW are available at our website at:

INFO http://www.integraltech.com.au

INFO =========================================================================

1.8.0_91

INFO Loading configuration from file: config\environments\local\simple12c.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core\commands\validate_config.py

INFO Validating Configuration

INFO Command completed.

BUILD SUCCESS

password_encrypter

password_encrypter encrypts all password properties (any property ending in .password) in the properties files identified by command parameters, and writes the encrypted password values back to the properties file.

Command

ConfigNOW password_encrypter <env> <config>

Parameters

Property Required Description
Env Yes Environment to encrypt passwords for
Config Yes Configuration file to use to encrypt passwords in chain of files

Properties used

None

Example output

os_prompt> ConfigNOW password_encrypter dev soa11g

INFO Loading configuration from file: config\environments\dev\soa11g.properties

INFO WLST support: False

INFO Running command from jython file: core\commands\password_encrypter.py

INFO config file location :config\environments\dev\soa11g

INFO Encrypting Passwords in config file

INFO Command completed.

BUILD SUCCESS

run_rcu

run_rcu runs the repository creation utility to create database schemas for Fusion products.

Command

ConfigNOW run_rcu <env> <config> [-Ddrop.rcu.schemas=true]

Parameters

Property Required Description
env Yes Environment to run RCU for
config Yes Configuration file to use to run RCU
drop.rcu.schemas No Indicates RCU should drop the configured schemas

Properties used

Property Required Description
rcu.home Yes The RCU home directory. Under this directory ‘bin/rcu.bat’ or ‘bin/rcu’ can be found.
soa.sys.db.url Yes JDBC URL to access the database instance used by RCU
soa.schema.prefix Yes Database prefix to use when creating/dropping database tables. This allows multiple instances of a product to co-exist in the same database schema.
rcu.db.sys.password No SYS password used to connect to database as an administrative user. If this is not set, run_rcu will prompt the user for the SYS password.

Example configuration

rcu.home=/home/batman/rcuTemp/rcuHome

soa.sys.db.url=jdbc:oracle:thin:@localhost:1521:xe

soa.schema.prefix=DEV

Example output

os_prompt>confignow run_rcu local soa11g -Ddrop.rcu.schemas=true

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config\environments\local\soa11g.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: core\commands\run_rcu.py

INFO Executing RCU

[Enter the sys database password]

I got this:

C:/Oracle/Middleware/rcuHome\bin\rcu.bat -silent -dropRepository -databaseType ORACLE -connectString jdbc:oracle:thin:@l

ocalhost:1521:xe -dbUser sys -dbRole sysdba -schemaPrefix DEV -component MDS -component SOAINFRA -component BAM -compone

nt ORASDPM -f < C:\Users\kpowe\AppData\Local\Temp\tmp19

Processing command line ....

Repository Creation Utility - Checking Prerequisites

Checking Global Prerequisites

Repository Creation Utility - Checking Prerequisites

Checking Component Prerequisites

Repository Creation Utility - Drop

Repository Drop in progress.

Percent Complete: 5

Percent Complete: 5

Percent Complete: 10

Percent Complete: 30

Percent Complete: 45

Percent Complete: 45

Percent Complete: 48

Percent Complete: 54

Percent Complete: 69

Percent Complete: 69

Percent Complete: 72

Percent Complete: 78

Percent Complete: 81

Percent Complete: 81

Percent Complete: 84

Percent Complete: 87

Percent Complete: 97

Percent Complete: 100

Repository Creation Utility: Drop - Completion Summary

Database details:

Connect Descriptor : jdbc:oracle:thin:@localhost:1521:xe

Connected As : sys

Prefix for (prefixable) Schema Owners : DEV

RCU Logfile : C:\Oracle\Middleware\rcuHome\rcu\log\logdir.2012-10-10_14-38\rcu.log

Component schemas dropped:

Component Status Logfile

Metadata Services Success C:\Oracle\Middleware\rcuHome\rcu\log\logdir.2012-10-10_14-38\mds.log

SOA Infrastructure Success C:\Oracle\Middleware\rcuHome\rcu\log\logdir.2012-10-10_14-38\soainfra.log

Business Activity Monitoring Success C:\Oracle\Middleware\rcuHome\rcu\log\logdir.2012-10-10_14-38\bam.log

User Messaging Service Success C:\Oracle\Middleware\rcuHome\rcu\log\logdir.2012-10-10_14-38\orasdpm.log

Repository Creation Utility - Drop : Operation Completed

INFO Command completed.

BUILD SUCCESS

set_default_composite

set_default_composite sets the default revision number for a particular composite.

Command

ConfigNOW set_default_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.name Yes Name of composite to set default revision for
composite.revision Yes Revision to set as default for composite

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.name=HelloWorld

composite.revision=1.0

Example output

os_prompt> ./ConfigNOW.sh set_default_composite local soa11g -Dcomposite.name=HelloWorld -Dcomposite.revision=1.0

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command set_default_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

set_default_composite:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

assignDefaultComposite:

[input] skipping input as property host has already been set.

[input] skipping input as property port has already been set.

[input] skipping input as property user has already been set.

[secure-input] skipping secure-input as property password has already been set.

INFO skipping secure-input as property password has already been set.

[input] skipping input as property compositeName has already been set.

[input] skipping input as property revision has already been set.

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

compositeMgrTask:

[java] Connecting to: service:jmx:t3://localhost:8001/jndi/weblogic.management.mbeanservers.runtime

[java] connection initiated

[java] Composite (default/HelloWorld!1.0) is successfully set as default composite.

INFO Command completed.

BUILD SUCCESS

setup_oer_reports

setup_oer_reports packages and deploys Oracle Enterprise Repository reports into a Business Intelligence Publisher domain.

Command

ConfigNOW setup_oer_reports <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
oer.name Yes Subdirectory underneath Oracle Home for OER installation
INSTALL_PATH Yes Directory for Oracle home
wls.domain.dir Yes Root directory of WebLogic Server domain
bi.publisher.app.location Yes Directory to use to create packaged application
bi.publisher.oer.xmlp.zip Yes Location of Business Intelligence reports to package
bi.publisher.manual.dir Yes Directory under which deployable reports applications can be found
bi.publisher.wls.target Yes Target servers in domain to deploy application to

Example configuration

oer.name=repository111

INSTALL_PATH=/opt/wls1035_osb11115

wls.domain.dir=${INSTALL_PATH}/admin

bi.publisher.app.location=${wls.domain.dir}/apps/xmlpserver

bi.publisher.oer.xmlp.zip=${wls.oracle.home}/${oer.name}/core/tools/solutions/reports/BIP-Oracle.zip

bi.publisher.manual.dir=/home/kevinpowe/Downloads/bi/Oracle_Business_Intelligence_Publisher_Standalone/manual

bi.publisher.wls.target=AdminServer

Example output

os_prompt> ./ConfigNOW.sh setup_oer_reports local oer_simple

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/oer_simple.properties

INFO setenv file verified.

INFO WLST support: True

INFO running global pre command plugin: custom/plugins/setup_oer_reports_pre.py

INFO Running command setup_oer_reports as ant target in build file: core/commands/ant/build-bi-publisher.xml

validate.oer.reports.properties:

setup_oer_reports:

[unzip] Expanding: /opt/wls1035_osb11115/repository111/core/tools/solutions/reports/BIP-Oracle.zip into /opt/wls1035_osb11115/admin/apps/xmlpserver

[move] Moving 251 files to /opt/wls1035_osb11115/admin/apps/xmlpserver

validate.bi.deploy.properties:

deploy_bipublisher10_weblogic:

[unzip] Expanding: /home/kevinpowe/Downloads/bi/Oracle_Business_Intelligence_Publisher_Standalone/manual/generic/xmlpserver.war into /opt/wls1035_osb11115/admin/apps/xmlpserver

[java] weblogic.Deployer invoked with options: -adminurl t3://brother-eye:7001 -username weblogic -name xmlpserver -deploy -targets AdminServer -verbose /opt/wls1035_osb11115/admin/apps/xmlpserver

[java] <23/02/2012 6:49:24 PM EST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, xmlpserver [archive: /opt/wls1035_osb11115/admin/apps/xmlpserver], to AdminServer .>

[java] Task 0 initiated: [Deployer:149026]deploy application xmlpserver on AdminServer.

[java] Task 0 completed: [Deployer:149026]deploy application xmlpserver on AdminServer.

[java] Target state: deploy completed on Server AdminServer

[java] Target Assignments:

[java] + xmlpserver AdminServer

INFO Command completed.

BUILD SUCCESS

show_config

show_config shows the properties used by ConfigNOW at runtime for a particular environment and configuration file combination, with any property references fully resolved. Any password properties will be displayed as masked ‘****’

Command

ConfigNOW show_config <env> <config>

Parameters

Property Required Description
env Yes Environment to show configuration properties for
config Yes Configuration file to use to show configuration properties

Properties used

None

Examples

os_prompt> ConfigNOW show_config local simple

INFO Loading configuration from file: config\environments\local\simple.properties

INFO WLST support: False

INFO Running command from jython file: core\commands\show_config.py

Configuration properties are:

config_file_location=config\environments\local\simple.properties

nodemanager.arguments=

nodemanager.crashrecovery=true

nodemanager.logcount=10

nodemanager.loglimit=10000

nodemanager.password=****

nodemanager.username=weblogic

redback.version=N/A

validation=on

wl.host=localhost

wls.admin.listener.address=localhost

wls.admin.listener.port=7001

wls.admin.name=as

wls.admin.password=****

wls.admin.startup.timeout=20

wls.admin.username=weblogic

wls.admin.vmarguments=-Xms512m -Xmx1024m

wls.bea.home=c:/oracle/middleware

wls.domain.dir=c:/oracle/middleware/domains

wls.domain.javahome=c:/oracle/middleware/jdk160_18

wls.domain.machine.machine1.name=machine1

wls.domain.machine.machine1.nodemanager.address=localhost

wls.domain.machine.machine1.nodemanager.port=5002

wls.domain.machine.machine1.nodemanager.type=Plain

wls.domain.machine.machine1.postBindGID=nobody

wls.domain.machine.machine1.postBindGIDEnabled=false

wls.domain.machine.machine1.postBindUID=nobody

wls.domain.machine.machine1.postBindUIDEnabled=false

wls.domain.machine.machine1.type=UnixMachine

wls.domain.machines=machine1

wls.domain.mode=prod

wls.domain.name=my_domain

wls.name=wlserver_10.3

wls.oracle.home=c:/oracle/middleware

wls.server.as.enableHostnameVerification=false

wls.server.as.listener.address=localhost

wls.server.as.machine=machine1

wls.server.as.name=as

wls.servers=as

wls.templates=

INFO Command completed.

BUILD SUCCESS


show_config_lineage

show_config_lineage shows the properties used by ConfigNOW at runtime for a particular environment including the data linage of how the property was established and where the value has been inherited from. Any property references are fully resolved and any password properties will be displayed as masked ‘****’

Command

ConfigNOW show_config_lineage <env> <config>

Parameters

Property Required Description
env Yes Environment to show configuration properties for
config Yes Configuration file to use to show configuration properties

Properties used

None

Examples

os_prompt> ConfigNOW show_config_lineage local simple_inherit

INFO Loading configuration from file: config\environments\local\simple_inherit.properties

INFO decrypting passwords in base file first: config/templates/wl_as_template_stripped.properties

INFO WLST support: False

INFO Running command from jython file: core\commands\show_config_linage.py

Data linage for this configuration is:

[base.wls.domain.machine.name]

Defined In : config\environments\local\simple_inherit.properties [Value=machine1] -->

Inherited From : config/templates/wl_as_template_stripped.properties [Value=machine1]

[base.wls.domain.machine.nodemanager.address]

Defined In : config\environments\local\simple_inherit.properties [Value=${wl.host}] -->

Inherited From : config/templates/wl_as_template_stripped.properties [Value=${wl.host}]

[base.wls.domain.machine.nodemanager.port]

Defined In : config\environments\local\simple_inherit.properties [Value=5002] -->

Inherited From : config/templates/wl_as_template_stripped.properties [Value=5002]

[base.wls.domain.machine.nodemanager.type]

Defined In : config\environments\local\simple_inherit.properties [Value=Plain] -->

Inherited From : config/templates/wl_as_template_stripped.properties [Value=Plain]

[=========================================]

[SOME TEXT REMOVED HERE TO SHORTEN EXAMPLE]

[=========================================]

INFO Command completed.

BUILD SUCCESS


shutdown_all_servers

shutdown_all_servers stops all running servers in a domain, via contacting the admin server. This command will not perform correctly if the administration server for a domain is currently down.

Command

ConfigNOW shutdown_all_servers <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate domain
config Yes Configuration file to use to locate domain to stop all servers for

Properties used

Property Required Description
wls.servers Yes Comma-separated list of server IDs to shut down.
wls.server.<server>.name Yes Actual name of server to shut down
wls.server.AdminServer.name Yes Name of administration server. Used to ensure admin server is shut down last.

Example configuration

wls.servers=AdminServer,soa_server1

wls.server.AdminServer.name=as

wls.server.soa_server1.name=soa_server1

Example output

os_prompt> ./ConfigNOW.sh shutdown_all_servers local soa11g

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO =========================================================================

INFO This version of ConfigNOW 4.1 is a Release Candidate and as such will

INFO expire on the 3rd of August 2012. At this time a subsequent Release

INFO Candidate or the final release will be available on our website at:

INFO http://www.integraltech.com.au

INFO =========================================================================

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command from jython file: custom/commands/shutdown_all_servers.py

INFO Establishing connection to Admin Server at URL [t3://localhost:7002], attempt #1

Connecting to t3://localhost:7002 with userid weblogic ...

Successfully connected to Admin Server 'soa_as' that belongs to domain 'soa_domain'.

Warning: An insecure protocol was used to connect to the

server. To ensure on-the-wire security, the SSL port or

Admin port should be used instead.

Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.

For more help, use help(domainRuntime)

INFO Sending shutdown command to server 'soa_server1'

Shutting down the server soa_server1 with force=true while connected to soa_as ...

..................................INFO ..not sending shutdown command to server 'bam_server1' due to state of 'SHUTDOWN'

INFO ..not sending shutdown command to server 'wsm_server1' due to state of 'SHUTDOWN'

INFO Sending shutdown command to admin server 'soa_as'

Shutting down the server soa_as with force=true while connected to soa_as ...

.Disconnected from weblogic server: soa_as

Disconnected from weblogic server:

INFO Command completed.

BUILD SUCCESS

start_composite

start_composite starts a previously stopped composite, allowing it to resume processing.

Command

ConfigNOW start_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.name Yes Name of composite to start
composite.revision Yes Revision of composite to start

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.name=HelloWorld

composite.revision=1.0

Example output

os_prompt> ./ConfigNOW.sh start_composite local soa11g -Dcomposite.name=HelloWorld -Dcomposite.revision=1.0

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command start_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

start_composite:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

startComposite:

[input] skipping input as property host has already been set.

[input] skipping input as property port has already been set.

[input] skipping input as property user has already been set.

[secure-input] skipping secure-input as property password has already been set.

INFO skipping secure-input as property password has already been set.

[input] skipping input as property compositeName has already been set.

[input] skipping input as property revision has already been set.

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

compositeMgrTask:

[java] Connecting to: service:jmx:t3://localhost:8001/jndi/weblogic.management.mbeanservers.runtime

[java] connection initiated

[java] Composite (default/HelloWorld!1.0) is successfully started.

INFO Command completed.

BUILD SUCCESS

start_wls_admin

start_wls_admin starts the administration server for a WebLogic Server domain, using the domain’s startWebLogic.sh or startWebLogic.cmd start script. Output from the server starting is displayed to screen, but the terminal used to run the command can be safely closed without interrupting the administration server.

Command

ConfigNOW start_wls_admin <env> <config>

Parameters

Property Required Description
Env Yes Environment to use to start WebLogic admin server
Config Yes Configuration file to use to locate WebLogic admin server to start

Properties used

Property Required Description
wls.admin.listener.address Yes Host name administration server is configured to listen on
wls.admin.listener.port Yes Port administration server is configured to bind to for receiving network requests
wls.admin.name Yes Name of administration server
wls.domain.dir Yes Parent directory domain is installed under
wls.domain.name Yes Name of domain
wls.admin.startup.timeout Yes Number of minutes ConfigNOW will wait for administration server to boot successfully

Examples

os_prompt> ./ConfigNOW.sh start_wls_admin local wls1035

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/wls1035.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command start_wls_admin as ant target in build file: core/commands/ant/weblogic-common.xml

validate.admin.config:

[echo] WebLogic Domain Name: simple_domain

[echo] WebLogic Domain Directory: /opt/wls1035/domains

[echo] WebLogic Admin Server Name: as

[echo] WebLogic Admin Listener Address: localhost

[echo] WebLogic Admin Listener Port: 7001

start_wls_admin:

start-server:

[echo] Starting server as

[echo] Waiting for server to start... Will wait 20 minutes

[exec] .

[exec] .

[exec] JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=128m

[exec] .

[exec] WLS Start Mode=Production

[exec] .

[exec] CLASSPATH=/opt/wls1034/patch_wls1034/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/jdk1.6.0_25/lib/tools.jar:/opt/wls1034/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/wls1034/wlserver_10.3/server/lib/weblogic.jar:/opt/wls1034/modules/features/weblogic.server.modules_10.3.4.0.jar:/opt/wls1034/wlserver_10.3/server/lib/webservices.jar:/opt/wls1034/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/wls1034/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/wls1034/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/wls1034/wlserver_10.3/server/lib/xqrl.jar:/opt/wls1034/patch_wls1034/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/jdk1.6.0_25/lib/tools.jar:/opt/wls1034/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/wls1034/wlserver_10.3/server/lib/weblogic.jar:/opt/wls1034/modules/features/weblogic.server.modules_10.3.4.0.jar:/opt/wls1034/wlserver_10.3/server/lib/webservices.jar:/opt/wls1034/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/opt/wls1034/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/opt/wls1034/wlserver_10.3/server/lib/weblogic.jar

[exec] .

[exec] PATH=/opt/wls1034/wlserver_10.3/server/bin:/opt/wls1034/modules/org.apache.ant_1.7.1/bin:/opt/jdk1.6.0_25/jre/bin:/opt/jdk1.6.0_25/bin:/opt/wls1034/wlserver_10.3/server/bin:/opt/wls1034/modules/org.apache.ant_1.7.1/bin:/opt/jdk1.6.0_25/jre/bin:/opt/jdk1.6.0_25/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/jdk1.6.0_25/bin

[exec] .

[exec] ***************************************************

[exec] * To start WebLogic Server, use a username and *

[exec] * password assigned to an admin-level user. For *

[exec] * server administration, use the WebLogic Server *

[exec] * console at http://hostname:port/console *

[exec] ***************************************************

[exec] starting weblogic with Java version:

[exec] java version "1.6.0_25"

[exec] Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

[exec] Java HotSpot(TM) Server VM (build 20.0-b11, mixed mode)

[exec] Starting WLS with line:

[exec] /opt/jdk1.6.0_25/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dweblogic.Name=as -Djava.security.policy=/opt/wls1034/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -Xverify:none -da -Dplatform.home=/opt/wls1034/wlserver_10.3 -Dwls.home=/opt/wls1034/wlserver_10.3/server -Dweblogic.home=/opt/wls1034/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/opt/wls1034/patch_wls1034/profiles/default/sysext_manifest_classpath weblogic.Server

[exec] <20/07/2011 2:33:13 PM EST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>

[exec] <20/07/2011 2:33:13 PM EST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>

[exec] <20/07/2011 2:33:13 PM EST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM Version 20.0-b11 from Sun Microsystems Inc.>

[exec] <20/07/2011 2:33:14 PM EST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 >

[exec] <20/07/2011 2:33:16 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>

[exec] <20/07/2011 2:33:16 PM EST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>

[exec] <20/07/2011 2:33:16 PM EST> <Notice> <Log Management> <BEA-170019> <The server log file /opt/wls1035/domains/simple_domain/servers/as/logs/as.log is opened. All server side log events will be written to this file.>

[exec] <20/07/2011 2:33:20 PM EST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>

[exec] <20/07/2011 2:33:20 PM EST> <Notice> <Security> <BEA-090083> <Storing boot identity in the file: /opt/wls1035/domains/simple_domain/servers/as/security/boot.properties>

[exec] <20/07/2011 2:33:23 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>

[exec] <20/07/2011 2:33:23 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>

[exec] 20/07/2011 2:33:29 PM com.sun.faces.config.ConfigureListener contextInitialized

[exec] INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'

[exec] 20/07/2011 2:33:29 PM com.sun.faces.config.ConfigureListener contextInitialized

[exec] INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'

[exec] <20/07/2011 2:33:30 PM EST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>

[exec] <20/07/2011 2:33:31 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>

[exec] <20/07/2011 2:33:31 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>

[exec] <20/07/2011 2:33:31 PM EST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>

[exec] <20/07/2011 2:33:31 PM EST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "as" for domain "simple_domain" running in Production Mode>

[echo] Server started listening at port [7001] or [7001].

INFO Command completed.

BUILD SUCCESS

start_composite

start_composite stops a running composite, keeping it deployed but not actively processing requests

Command

ConfigNOW start_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.name Yes Name of composite to stop
composite.revision Yes Revision of composite to stop

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.name=HelloWorld

composite.revision=1.0

Example output

os_prompt> ./ConfigNOW.sh start_composite local soa11g -Dcomposite.name=HelloWorld -Dcomposite.revision=1.0

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO =========================================================================

INFO This version of ConfigNOW 4.1 is a Release Candidate and as such will

INFO expire on the 3rd of August 2012. At this time a subsequent Release

INFO Candidate or the final release will be available on our website at:

INFO http://www.integraltech.com.au

INFO =========================================================================

INFO Loading configuration from file: config/environments/local/soa11g.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command start_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

start_composite:

[echo] oracle.home = /opt/wls1035/soa/bin/..

startComposite:

[input] skipping input as property host has already been set.

[input] skipping input as property port has already been set.

[input] skipping input as property user has already been set.

[secure-input] skipping secure-input as property password has already been set.

INFO skipping secure-input as property password has already been set.

[input] skipping input as property compositeName has already been set.

[input] skipping input as property revision has already been set.

[echo] oracle.home = /opt/wls1035/soa/bin/..

compositeMgrTask:

[java] Connecting to: service:jmx:t3://localhost:8051/jndi/weblogic.management.mbeanservers.runtime

[java] connection initiated

[java] Composite (default/HelloWorld!1.0) is successfully started.

INFO Command completed.

BUILD SUCCESS

stop_wls_admin

stop_wls_admin stops the administration server for a domain if it is running currently.

Command

ConfigNOW stop_wls_admin <env> <config>

Parameters

Property Required Description
env Yes Environment to show configuration properties for
config Yes Configuration file to use to show configuration properties

Properties used

Property Required Description
wls.admin.listener.address Yes Host name administration server is configured to listen on
wls.admin.listener.port Yes Port administration server is configured to bind to for receiving network requests
wls.admin.name Yes Name of administration server
wls.domain.dir Yes Parent directory domain is installed under
wls.domain.name Yes Name of domain

Example output

os_prompt> ./ConfigNOW.sh stop_wls_admin local wls1035

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/wls1035.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command stop_wls_admin as ant target in build file: core/commands/ant/weblogic-common.xml

validate.admin.config:

[echo] WebLogic Domain Name: simple_domain

[echo] WebLogic Domain Directory: /opt/wls1035/domains

[echo] WebLogic Admin Server Name: as

[echo] WebLogic Admin Listener Address: localhost

[echo] WebLogic Admin Listener Port: 7001

stop_wls_admin:

stop-server:

[echo] Stopping server as

[echo] Waiting for admin server to stop.. Will wait 2 minutes

[exec] Stopping Weblogic Server...

[exec] Initializing WebLogic Scripting Tool (WLST) ...

[exec] Welcome to WebLogic Server Administration Scripting Shell

[exec] Type help() for help on available commands

[exec] Connecting to t3://localhost:7001 with userid weblogic ...

[exec] Successfully connected to Admin Server 'as' that belongs to domain 'simple_domain'.

[exec] Warning: An insecure protocol was used to connect to the

[exec] server. To ensure on-the-wire security, the SSL port or

[exec] Admin port should be used instead.

[exec] Shutting down the server as with force=false while connected to as ...

[echo] WebLogic admin server has been stopped.

INFO Command completed.

BUILD SUCCESS

undeploy_composite

undeploy_composite undeploys an SCA composite from a SOA Suite domain.

Command

ConfigNOW undeploy_composite <env> <config>

Parameters

Property Required Description
env Yes Environment to use to locate SOA Suite domain
config Yes Configuration file to use to locate SOA Suite domain

Properties used

Property Required Description
soa.host Yes Hostname used to locate SOA Suite server
wls.server.soa_server1.listener.port Yes Port SOA Suite server (named ‘soa_server1’ by default) is listening on
wls.admin.username Yes Administration user used to connect to domain
wls.admin.password Yes Password for administration user
composite.name Yes Name of composite to undeploy
composite.revision Yes Specific revision of composite to undeploy

Example configuration

soa.host=localhost

wls.server.soa_server1.listener.port=8001

wls.admin.username=weblogic

wls.admin.password={AES}AHphcSZJOITrczv/9889iw==dw25kxa86GAb9gRukVf2eg==

composite.name=HelloWorld

composite.revision=2.0

Example output

os_prompt> ./ConfigNOW.sh undeploy_composite local composites_example -Dcomposite.name=HelloWorld -Dcomposite.revision=2.0

found setenv.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

INFO Loading configuration from file: config/environments/local/composites_example.properties

INFO decrypting passwords in base file first: config/environments/local/soa11g.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/simple/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO decrypting passwords in base file first: config/templates/soa11g_template.properties

INFO setenv file verified.

INFO WLST support: True

INFO Running command undeploy_composite as ant target in build file: core/commands/ant/composite-mgmt.xml

undeploy_composite:

[echo] oracle.home = /opt/wls1035_native/soa/bin/..

undeploy:

[input] skipping input as property serverURL has already been set.

[input] skipping input as property compositeName has already been set.

[input] skipping input as property revision has already been set.

setting user/password..., user=weblogic

compositeDN =default/HelloWorld!2.0

INFO: Creating HTTP connection to host:localhost, port:8001

INFO: Received HTTP response from the server, response code=200

---->Undeploy composite success.

INFO Command completed.

BUILD SUCCESS

Clone this wiki locally